rroonga 5.0.4-x64-mingw32 → 5.0.5-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -2
- data/example/measure-data-column-disk-usage.rb +124 -0
- data/example/measure-index-column-disk-usage.rb +81 -0
- data/example/measure-table-disk-usage.rb +100 -0
- data/ext/groonga/rb-grn-database.c +31 -0
- data/ext/groonga/rb-grn-double-array-trie.c +1 -8
- data/ext/groonga/rb-grn-logger.c +45 -0
- data/ext/groonga/rb-grn-object.c +29 -1
- data/ext/groonga/rb-grn-patricia-trie.c +1 -8
- data/ext/groonga/rb-grn-table-cursor.c +8 -3
- data/ext/groonga/rb-grn-table.c +10 -5
- data/ext/groonga/rb-grn-thread.c +160 -0
- data/ext/groonga/rb-grn-windows-event-logger.c +79 -0
- data/ext/groonga/rb-grn.h +3 -1
- data/ext/groonga/rb-groonga.c +3 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/groonga/dumper.rb +6 -1
- data/rroonga-build.rb +4 -4
- data/test/groonga-test-utils.rb +5 -1
- data/test/test-database.rb +11 -0
- data/test/test-logger.rb +6 -0
- data/test/test-operator.rb +6 -6
- data/test/test-procedure.rb +15 -0
- data/test/test-table-dumper.rb +170 -1
- data/test/test-thread.rb +42 -0
- data/test/test-windows-event-logger.rb +28 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-4.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/libwinpthread-1.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onig-config +1 -1
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/etc/groonga/windows_event_log/provider.man +38 -0
- data/vendor/local/include/groonga/groonga.h +2 -0
- data/vendor/local/include/groonga/groonga/command.h +2 -0
- data/vendor/local/include/groonga/groonga/groonga.h +5 -0
- data/vendor/local/include/groonga/groonga/obj.h +1 -0
- data/vendor/local/include/groonga/groonga/portability.h +16 -0
- data/vendor/local/include/groonga/groonga/thread.h +42 -0
- data/vendor/local/include/groonga/groonga/windows_event_logger.h +33 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.la +2 -2
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
- data/vendor/local/lib/groonga/plugins/sharding.rb +5 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +43 -6
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +32 -25
- data/vendor/local/lib/groonga/plugins/sharding/logical_parameters.rb +44 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +217 -49
- data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +507 -45
- data/vendor/local/lib/groonga/plugins/sharding/logical_shard_list.rb +28 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +11 -6
- data/vendor/local/lib/groonga/plugins/sharding/parameters.rb +10 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/groonga/scripts/ruby/command.rb +31 -1
- data/vendor/local/lib/groonga/scripts/ruby/context.rb +18 -2
- data/vendor/local/lib/groonga/scripts/ruby/database.rb +12 -4
- data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +31 -28
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger/level.rb +4 -2
- data/vendor/local/lib/groonga/scripts/ruby/query_logger.rb +9 -0
- data/vendor/local/lib/groonga/scripts/ruby/query_logger/flag.rb +39 -0
- data/vendor/local/lib/groonga/scripts/ruby/record.rb +12 -0
- data/vendor/local/lib/groonga/scripts/ruby/table.rb +35 -1
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +2 -2
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +2 -2
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +2 -2
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
- data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
- data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development.txt +3 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build.txt +19 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/unix_autotools.txt +101 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/unix_cmake.txt +94 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/windows_cmake.txt +93 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +16 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +7 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/test.txt +4 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +319 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_db.txt +23 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_thread.txt +122 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_copy.txt +381 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_list.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +3 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/database_unmap.txt +85 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/io_flush.txt +218 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +1 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +3 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_parameters.txt +138 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +97 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +745 -23
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_shard_list.txt +107 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_table_remove.txt +3 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +2 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalizer_list.txt +1 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_exist.txt +90 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_register.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_unregister.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +1 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +240 -56
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +33 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_rename.txt +90 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/thread_limit.txt +110 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenizer_list.txt +1 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +3 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +0 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +0 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +34 -14
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/regular_expression.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scoring_note.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/sharding.txt +108 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +0 -21
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +24 -18
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +19 -19
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +68 -6
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +27 -2
- data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +10308 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -9404
- data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +999 -0
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +31 -1415
- data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/client.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/community.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution.html +78 -70
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +30 -27
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +146 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +237 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +227 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +231 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +37 -35
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +54 -52
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +80 -78
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +135 -122
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +38 -34
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +58 -54
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +30 -28
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/development.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +30 -28
- data/vendor/local/share/doc/groonga/en/html/genindex.html +48 -20
- data/vendor/local/share/doc/groonga/en/html/index.html +123 -105
- data/vendor/local/share/doc/groonga/en/html/install.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +32 -30
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +31 -29
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/install/others.html +92 -90
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +29 -28
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +34 -32
- data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/news.html +509 -142
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +34 -32
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +110 -108
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +73 -71
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +111 -109
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +111 -94
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +55 -52
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +51 -49
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +63 -61
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +84 -82
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +41 -39
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +89 -87
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +88 -50
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +83 -81
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +45 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +45 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +44 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +93 -91
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +79 -77
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +69 -67
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +296 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +45 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +38 -36
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +51 -49
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +60 -58
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +28 -26
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +72 -70
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +70 -61
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +59 -57
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +28 -26
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +100 -98
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +44 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +49 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +796 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +62 -60
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +96 -94
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +67 -64
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +236 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +62 -60
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +59 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +63 -61
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +281 -54
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +66 -64
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +53 -52
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +78 -75
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +283 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +160 -85
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +2071 -83
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +287 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +71 -68
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +86 -84
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +52 -50
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +227 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +57 -55
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +53 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +56 -54
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +75 -74
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +59 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +59 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +898 -647
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +50 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +87 -85
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +175 -152
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +327 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +77 -75
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +241 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +108 -106
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +56 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +56 -55
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +41 -39
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +28 -26
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +83 -81
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +84 -82
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +47 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +85 -83
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +36 -34
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +66 -64
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +54 -52
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +35 -33
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +34 -32
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +49 -47
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +45 -43
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +244 -242
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +327 -325
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +35 -29
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +49 -47
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +36 -34
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +62 -60
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +107 -103
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +50 -40
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +41 -31
- data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +241 -0
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +30 -28
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +56 -54
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +41 -39
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +341 -289
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +68 -66
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/server/http.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +37 -35
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/server/package.html +39 -37
- data/vendor/local/share/doc/groonga/en/html/spec.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +129 -127
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +29 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +35 -33
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +46 -39
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +65 -63
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +37 -35
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development.txt +3 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build.txt +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/unix_autotools.txt +101 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/unix_cmake.txt +94 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/windows_cmake.txt +93 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +16 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +7 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/test.txt +4 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +319 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_db.txt +23 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_thread.txt +122 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_copy.txt +381 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_list.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +3 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/database_unmap.txt +85 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/io_flush.txt +218 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +1 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +3 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_parameters.txt +138 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +97 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +745 -23
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_shard_list.txt +107 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_table_remove.txt +3 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +2 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalizer_list.txt +1 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_exist.txt +90 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_register.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_unregister.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +1 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +240 -56
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +33 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_rename.txt +90 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/thread_limit.txt +110 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenizer_list.txt +1 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +3 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +0 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +0 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +34 -14
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/regular_expression.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scoring_note.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/sharding.txt +108 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +0 -21
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +24 -18
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +19 -19
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +68 -6
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +27 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +10308 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -9404
- data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +999 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +31 -1415
- data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/client.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/community.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +77 -69
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +30 -27
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +144 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +226 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +215 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +229 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +36 -34
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +53 -51
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +79 -77
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +134 -121
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +57 -53
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +30 -28
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/development.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +48 -20
- data/vendor/local/share/doc/groonga/ja/html/index.html +122 -104
- data/vendor/local/share/doc/groonga/ja/html/install.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +35 -33
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +30 -28
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +83 -81
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +30 -29
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/news.html +460 -126
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +34 -32
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +102 -100
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +66 -64
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +91 -89
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +111 -94
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +55 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +51 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +58 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +84 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +41 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +85 -83
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +88 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +78 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +45 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +45 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +44 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +93 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +43 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +79 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +69 -67
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +286 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +45 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +38 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +60 -58
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +28 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +61 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +70 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +49 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +28 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +99 -97
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +41 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +49 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +781 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +62 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +88 -86
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +66 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +229 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +62 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +58 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +63 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +266 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +59 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +53 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +78 -75
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +276 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +158 -85
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +2008 -80
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +285 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +71 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +82 -79
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +52 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +220 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +53 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +51 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +43 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +43 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +52 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +68 -67
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +59 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +59 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +680 -448
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +43 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +84 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +146 -126
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +55 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +322 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +73 -70
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +229 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +94 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +56 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +56 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +39 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +28 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +73 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +84 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +69 -67
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +36 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +56 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +45 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +34 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +35 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +35 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +37 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +143 -141
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +236 -234
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +34 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +43 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +39 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +32 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +42 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +91 -88
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +50 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +41 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +223 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +38 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +303 -243
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +62 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +42 -40
- data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +31 -29
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +38 -36
- data/vendor/local/share/doc/groonga/ja/html/spec.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +128 -126
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +29 -23
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +34 -32
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +46 -39
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +66 -64
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +52 -50
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +35 -33
- data/vendor/local/share/license/groonga/README.md +6 -0
- data/vendor/local/share/license/mruby/AUTHORS +1 -0
- data/vendor/local/share/license/mruby/MITL +1 -1
- data/vendor/local/share/license/mruby/README.md +6 -5
- data/vendor/local/share/license/msgpack/README +219 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +23512 -15126
- data/vendor/local/share/man/man1/groonga.1 +26542 -17745
- metadata +77 -3
- data/vendor/local/share/license/msgpack/AUTHORS +0 -0
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>7.12.2. Script syntax — Groonga v5.0.
|
10
|
+
<title>7.12.2. Script syntax — Groonga v5.0.6-226-gd7da7e7 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.6-226-gd7da7e7',
|
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.
|
28
|
+
<link rel="top" title="Groonga v5.0.6-226-gd7da7e7 documentation" href="../../index.html" />
|
29
29
|
<link rel="up" title="7.12. grn_expr" href="../grn_expr.html" />
|
30
30
|
<link rel="next" title="7.13. Regular expression" href="../regular_expression.html" />
|
31
31
|
<link rel="prev" title="7.12.1. Query syntax" href="query_syntax.html" />
|
32
32
|
</head>
|
33
|
-
<body>
|
33
|
+
<body role="document">
|
34
34
|
<div class="header">
|
35
35
|
<h1 class="title">
|
36
36
|
<a id="top-link" href="../../index.html">
|
@@ -48,7 +48,7 @@
|
|
48
48
|
</div>
|
49
49
|
|
50
50
|
|
51
|
-
<div class="related">
|
51
|
+
<div class="related" role="navigation" aria-label="related navigation">
|
52
52
|
<h3>Navigation</h3>
|
53
53
|
<ul>
|
54
54
|
<li class="right" style="margin-right: 10px">
|
@@ -60,28 +60,28 @@
|
|
60
60
|
<li class="right" >
|
61
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.
|
64
|
-
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
65
|
-
<li><a href="../grn_expr.html" accesskey="U">7.12. grn_expr</a> »</li>
|
63
|
+
<li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7 documentation</a> »</li>
|
64
|
+
<li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
|
65
|
+
<li class="nav-item nav-item-2"><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" role="main">
|
73
73
|
|
74
74
|
<div class="section" id="script-syntax">
|
75
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, <code class="docutils literal"><span class="pre">_key</span> <span class="pre">==</span> <span class="pre">"book"</span></code> means that
|
78
|
+
groonga searches records that <code class="docutils literal"><span class="pre">_key</span></code> value is <code class="docutils literal"><span class="pre">"book"</span></code>. 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, <code class="docutils literal"><span class="pre">"book"</span></code> is string, <code class="docutils literal"><span class="pre">1</span></code> is integer,
|
81
|
+
<code class="docutils literal"><span class="pre">TokenBigram</span></code> is the object whose name is <code class="docutils literal"><span class="pre">TokenBigram</span></code> 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 <code class="docutils literal"><span class="pre">if</span></code> control
|
84
|
+
statement, <code class="docutils literal"><span class="pre">for</span></code> 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>
|
@@ -101,13 +101,13 @@ select_options = {
|
|
101
101
|
groonga_client.select(select_options)
|
102
102
|
</pre></div>
|
103
103
|
</div>
|
104
|
-
<p><
|
105
|
-
here is the constructed <a class="reference internal" href="../commands/select.html#select-filter"><
|
104
|
+
<p><code class="docutils literal"><span class="pre">user_input</span></code> is an input from user. If the input is <code class="docutils literal"><span class="pre">query</span></code>,
|
105
|
+
here is the constructed <a class="reference internal" href="../commands/select.html#select-filter"><span>filter</span></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 <
|
110
|
-
|
109
|
+
<p>If the input is <code 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></code>, here is the constructed
|
110
|
+
<a class="reference internal" href="../commands/select.html#select-filter"><span>filter</span></a> parameter:</p>
|
111
111
|
<div class="highlight-none"><div class="highlight"><pre>column @ "x" || true || ""
|
112
112
|
</pre></div>
|
113
113
|
</div>
|
@@ -115,20 +115,20 @@ 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
|
+
<code class="docutils literal"><span class="pre">@</span></code> and <code class="docutils literal"><span class="pre">&&</span></code>. 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 <a class="reference internal" href="#script-syntax-literal-integer"><
|
126
|
-
or <a class="reference internal" href="#script-syntax-literal-float"><
|
127
|
-
<
|
128
|
-
<li>String value: Replace <
|
123
|
+
<li>True value: Convert it to <code class="docutils literal"><span class="pre">true</span></code>.</li>
|
124
|
+
<li>False value: Convert it to <code class="docutils literal"><span class="pre">false</span></code>.</li>
|
125
|
+
<li>Numerical value: Convert it to <a class="reference internal" href="#script-syntax-literal-integer"><span>Integer</span></a>
|
126
|
+
or <a class="reference internal" href="#script-syntax-literal-float"><span>Float</span></a>. For example, <code class="docutils literal"><span class="pre">1.2</span></code>,
|
127
|
+
<code class="docutils literal"><span class="pre">-10</span></code>, <code class="docutils literal"><span class="pre">314e-2</span></code> and so on.</li>
|
128
|
+
<li>String value: Replace <code class="docutils literal"><span class="pre">"</span></code> with <code class="docutils literal"><span class="pre">\"</span></code> and <code class="docutils literal"><span class="pre">\</span></code> with <code class="docutils literal"><span class="pre">\\</span></code> in
|
129
129
|
the string value and surround substituted string value by
|
130
|
-
<
|
131
|
-
converted to <
|
130
|
+
<code class="docutils literal"><span class="pre">"</span></code>. For example, <code 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></code> should be
|
131
|
+
converted to <code 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></code>.</li>
|
132
132
|
</ul>
|
133
133
|
</div></blockquote>
|
134
134
|
</div>
|
@@ -142,7 +142,7 @@ column_create Entries content COLUMN_SCALAR Text
|
|
142
142
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
143
143
|
column_create Entries n_likes COLUMN_SCALAR UInt32
|
144
144
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
145
|
-
table_create Terms TABLE_PAT_KEY
|
145
|
+
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
|
146
146
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
147
147
|
column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
148
148
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
@@ -154,10 +154,10 @@ load --table Entries
|
|
154
154
|
"content": "Welcome! This is my first post!",
|
155
155
|
"n_likes": 5},
|
156
156
|
{"_key": "Groonga",
|
157
|
-
"content": "I started to use
|
157
|
+
"content": "I started to use Groonga. It's very fast!",
|
158
158
|
"n_likes": 10},
|
159
159
|
{"_key": "Mroonga",
|
160
|
-
"content": "I also started to use
|
160
|
+
"content": "I also started to use Mroonga. It's also very fast! Really fast!",
|
161
161
|
"n_likes": 15},
|
162
162
|
{"_key": "Good-bye Senna",
|
163
163
|
"content": "I migrated all Senna system!",
|
@@ -169,53 +169,53 @@ load --table Entries
|
|
169
169
|
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
170
170
|
</pre></div>
|
171
171
|
</div>
|
172
|
-
<p>There is a table, <
|
172
|
+
<p>There is a table, <code class="docutils literal"><span class="pre">Entries</span></code>, for blog entries. An entry has title,
|
173
173
|
content and the number of likes for the entry. Title is key of
|
174
|
-
<
|
175
|
-
number of likes is value of <
|
176
|
-
<p><
|
177
|
-
using <
|
178
|
-
<
|
174
|
+
<code class="docutils literal"><span class="pre">Entries</span></code>. Content is value of <code class="docutils literal"><span class="pre">Entries.content</span></code> column. The
|
175
|
+
number of likes is value of <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> column.</p>
|
176
|
+
<p><code class="docutils literal"><span class="pre">Entries._key</span></code> column and <code class="docutils literal"><span class="pre">Entries.content</span></code> column are indexed
|
177
|
+
using <code class="docutils literal"><span class="pre">TokenBigram</span></code> tokenizer. So both <code class="docutils literal"><span class="pre">Entries._key</span></code> and
|
178
|
+
<code class="docutils literal"><span class="pre">Entries.content</span></code> are fulltext search ready.</p>
|
179
179
|
<p>OK. The schema and data for examples are ready.</p>
|
180
180
|
</div>
|
181
181
|
<div class="section" id="literals">
|
182
182
|
<span id="script-syntax-literals"></span><h2>7.12.2.3. Literals<a class="headerlink" href="#literals" title="Permalink to this headline">¶</a></h2>
|
183
183
|
<div class="section" id="integer">
|
184
184
|
<span id="script-syntax-literal-integer"></span><h3>7.12.2.3.1. Integer<a class="headerlink" href="#integer" title="Permalink to this headline">¶</a></h3>
|
185
|
-
<p>Integer literal is sequence of <
|
186
|
-
<
|
187
|
-
<
|
185
|
+
<p>Integer literal is sequence of <code class="docutils literal"><span class="pre">0</span></code> to <code class="docutils literal"><span class="pre">9</span></code> such as
|
186
|
+
<code class="docutils literal"><span class="pre">1234567890</span></code>. <code class="docutils literal"><span class="pre">+</span></code> or <code class="docutils literal"><span class="pre">-</span></code> can be prepended as sign such as
|
187
|
+
<code class="docutils literal"><span class="pre">+29</span></code> and <code class="docutils literal"><span class="pre">-29</span></code>. Integer literal must be decimal. Octal notation,
|
188
188
|
hex and so on can't be used.</p>
|
189
|
-
<p>The maximum value of integer literal is <
|
190
|
-
<span class="pre">**</span> <span class="pre">63</span> <span class="pre">-</span> <span class="pre">1</span></
|
191
|
-
<
|
189
|
+
<p>The maximum value of integer literal is <code class="docutils literal"><span class="pre">9223372036854775807</span></code> (<code class="docutils literal"><span class="pre">=</span> <span class="pre">2</span>
|
190
|
+
<span class="pre">**</span> <span class="pre">63</span> <span class="pre">-</span> <span class="pre">1</span></code>). The minimum value of integer literal is
|
191
|
+
<code class="docutils literal"><span class="pre">-9223372036854775808</span></code> (<code class="docutils literal"><span class="pre">=</span> <span class="pre">-(2</span> <span class="pre">**</span> <span class="pre">63)</span></code>).</p>
|
192
192
|
</div>
|
193
193
|
<div class="section" id="float">
|
194
194
|
<span id="script-syntax-literal-float"></span><h3>7.12.2.3.2. Float<a class="headerlink" href="#float" title="Permalink to this headline">¶</a></h3>
|
195
|
-
<p>Float literal is sequence of <
|
196
|
-
such as <
|
197
|
-
<
|
198
|
-
<
|
199
|
-
<
|
195
|
+
<p>Float literal is sequence of <code class="docutils literal"><span class="pre">0</span></code> to <code class="docutils literal"><span class="pre">9</span></code>, <code class="docutils literal"><span class="pre">.</span></code> and <code class="docutils literal"><span class="pre">0</span></code> to <code class="docutils literal"><span class="pre">9</span></code>
|
196
|
+
such as <code class="docutils literal"><span class="pre">3.14</span></code>. <code class="docutils literal"><span class="pre">+</span></code> or <code class="docutils literal"><span class="pre">-</span></code> can be prepended as sign such as
|
197
|
+
<code class="docutils literal"><span class="pre">+3.14</span></code> and <code class="docutils literal"><span class="pre">-3.14</span></code>. <code class="docutils literal"><span class="pre">${RADIX}e${EXPORNENTIAL}</span></code> and
|
198
|
+
<code class="docutils literal"><span class="pre">${RADIX}E${EXPORNENTIAL}</span></code> formats are also supported. For example,
|
199
|
+
<code class="docutils literal"><span class="pre">314e-2</span></code> is the same as <code class="docutils literal"><span class="pre">3.14</span></code>.</p>
|
200
200
|
</div>
|
201
201
|
<div class="section" id="string">
|
202
202
|
<span id="script-syntax-literal-string"></span><h3>7.12.2.3.3. String<a class="headerlink" href="#string" title="Permalink to this headline">¶</a></h3>
|
203
|
-
<p>String literal is <
|
204
|
-
prepending <
|
205
|
-
a literal for <
|
203
|
+
<p>String literal is <code class="docutils literal"><span class="pre">"..."</span></code>. You need to escape <code class="docutils literal"><span class="pre">"</span></code> in literal by
|
204
|
+
prepending <code class="docutils literal"><span class="pre">\\''</span> <span class="pre">such</span> <span class="pre">as</span> <span class="pre">``\"</span></code>. For example, <code class="docutils literal"><span class="pre">"Say</span> <span class="pre">\"Hello!\"."</span></code> is
|
205
|
+
a literal for <code class="docutils literal"><span class="pre">Say</span> <span class="pre">"Hello!".</span></code> string.</p>
|
206
206
|
<p>String encoding must be the same as encoding of database. The default
|
207
|
-
encoding is UTF-8. It can be changed by <
|
208
|
-
configure option, <
|
207
|
+
encoding is UTF-8. It can be changed by <code class="docutils literal"><span class="pre">--with-default-encoding</span></code>
|
208
|
+
configure option, <code class="docutils literal"><span class="pre">--encodiong</span></code> <a class="reference internal" href="../executables/groonga.html"><em>groonga executable file</em></a> option
|
209
209
|
and so on.</p>
|
210
210
|
</div>
|
211
211
|
<div class="section" id="boolean">
|
212
212
|
<span id="script-syntax-literal-boolean"></span><h3>7.12.2.3.4. Boolean<a class="headerlink" href="#boolean" title="Permalink to this headline">¶</a></h3>
|
213
|
-
<p>Boolean literal is <
|
214
|
-
<
|
213
|
+
<p>Boolean literal is <code class="docutils literal"><span class="pre">true</span></code> and <code class="docutils literal"><span class="pre">false</span></code>. <code class="docutils literal"><span class="pre">true</span></code> means true and
|
214
|
+
<code class="docutils literal"><span class="pre">false</span></code> means false.</p>
|
215
215
|
</div>
|
216
216
|
<div class="section" id="null">
|
217
217
|
<span id="script-syntax-literal-null"></span><h3>7.12.2.3.5. Null<a class="headerlink" href="#null" title="Permalink to this headline">¶</a></h3>
|
218
|
-
<p>Null literal is <
|
218
|
+
<p>Null literal is <code class="docutils literal"><span class="pre">null</span></code>. Groonga doesn't support null value but null
|
219
219
|
literal is supported.</p>
|
220
220
|
</div>
|
221
221
|
<div class="section" id="time">
|
@@ -226,18 +226,18 @@ literal is supported.</p>
|
|
226
226
|
</div>
|
227
227
|
<p>Time literal doesn't exit. There are string time notation, integer
|
228
228
|
time notation and float time notation.</p>
|
229
|
-
<p>String time notation is <
|
230
|
-
<
|
231
|
-
<
|
232
|
-
<
|
233
|
-
<
|
229
|
+
<p>String time notation is <code class="docutils literal"><span class="pre">"YYYY/MM/DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></code> or
|
230
|
+
<code class="docutils literal"><span class="pre">"YYYY-MM-DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></code>. <code class="docutils literal"><span class="pre">YYYY</span></code> is year, <code class="docutils literal"><span class="pre">MM</span></code> is month,
|
231
|
+
<code class="docutils literal"><span class="pre">DD</span></code> is day, <code class="docutils literal"><span class="pre">hh</span></code> is hour, <code class="docutils literal"><span class="pre">mm</span></code> is minute, <code class="docutils literal"><span class="pre">ss</span></code> is second and
|
232
|
+
<code class="docutils literal"><span class="pre">uuuuuu</span></code> is micro second. It is local time. For example,
|
233
|
+
<code class="docutils literal"><span class="pre">"2012/07/23</span> <span class="pre">02:41:10.436218"</span></code> is <code class="docutils literal"><span class="pre">2012-07-23T02:41:10.436218</span></code> in
|
234
234
|
ISO 8601 format.</p>
|
235
235
|
<p>Integer time notation is the number of seconds that have elapsed since
|
236
236
|
midnight UTC, January 1, 1970. It is also known as POSIX time. For
|
237
|
-
example, <
|
237
|
+
example, <code class="docutils literal"><span class="pre">1343011270</span></code> is <code class="docutils literal"><span class="pre">2012-07-23T02:41:10Z</span></code> in ISO 8601 format.</p>
|
238
238
|
<p>Float time notation is the number of seconds and micro seconds that
|
239
239
|
have elapsed since midnight UTC, January 1, 1970. For example,
|
240
|
-
<
|
240
|
+
<code class="docutils literal"><span class="pre">1343011270.436218</span></code> is <code class="docutils literal"><span class="pre">2012-07-23T02:41:10.436218Z</span></code> in ISO 8601
|
241
241
|
format.</p>
|
242
242
|
</div>
|
243
243
|
<div class="section" id="geo-point">
|
@@ -250,31 +250,31 @@ format.</p>
|
|
250
250
|
<p>String geo point notation has the following patterns:</p>
|
251
251
|
<blockquote>
|
252
252
|
<div><ul class="simple">
|
253
|
-
<li><
|
254
|
-
<li><
|
255
|
-
<li><
|
256
|
-
<li><
|
253
|
+
<li><code class="docutils literal"><span class="pre">"LATITUDE_IN_MSECxLONGITUDE_IN_MSEC"</span></code></li>
|
254
|
+
<li><code class="docutils literal"><span class="pre">"LATITUDE_IN_MSEC,LONGITUDE_IN_MSEC"</span></code></li>
|
255
|
+
<li><code class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREExLONGITUDE_IN_DEGREE"</span></code></li>
|
256
|
+
<li><code class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREE,LONGITUDE_IN_DEGREE"</span></code></li>
|
257
257
|
</ul>
|
258
258
|
</div></blockquote>
|
259
|
-
<p><
|
259
|
+
<p><code class="docutils literal"><span class="pre">x</span></code> and <code class="docutils literal"><span class="pre">,</span></code> can be used for separator. Latitude and longitude can
|
260
260
|
be represented in milliseconds or degree.</p>
|
261
261
|
</div>
|
262
262
|
<div class="section" id="array">
|
263
263
|
<span id="script-syntax-literal-array"></span><h3>7.12.2.3.8. Array<a class="headerlink" href="#array" title="Permalink to this headline">¶</a></h3>
|
264
|
-
<p>Array literal is <
|
264
|
+
<p>Array literal is <code class="docutils literal"><span class="pre">[element1,</span> <span class="pre">element2,</span> <span class="pre">...]</span></code>.</p>
|
265
265
|
</div>
|
266
266
|
<div class="section" id="object-literal">
|
267
267
|
<span id="script-syntax-literal-object"></span><h3>7.12.2.3.9. Object literal<a class="headerlink" href="#object-literal" title="Permalink to this headline">¶</a></h3>
|
268
|
-
<p>Object literal is <
|
268
|
+
<p>Object literal is <code 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></code>. Groonga
|
269
269
|
doesn't support object literal yet.</p>
|
270
270
|
</div>
|
271
271
|
</div>
|
272
272
|
<div class="section" id="control-syntaxes">
|
273
273
|
<h2>7.12.2.4. Control syntaxes<a class="headerlink" href="#control-syntaxes" title="Permalink to this headline">¶</a></h2>
|
274
274
|
<p>Script syntax doesn't support statement. So you cannot use control
|
275
|
-
statement such as <
|
275
|
+
statement such as <code class="docutils literal"><span class="pre">if</span></code>. You can only use <code 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></code> expression as
|
276
276
|
control syntax.</p>
|
277
|
-
<p><
|
277
|
+
<p><code 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></code> returns <code class="docutils literal"><span class="pre">B</span></code> if <code class="docutils literal"><span class="pre">A</span></code> is true, <code class="docutils literal"><span class="pre">C</span></code> otherwise.</p>
|
278
278
|
<p>Here is a simple example.</p>
|
279
279
|
<p>Execution example:</p>
|
280
280
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (_id == 1 ? 5 : 3)'
|
@@ -330,17 +330,17 @@ control syntax.</p>
|
|
330
330
|
# ]
|
331
331
|
</pre></div>
|
332
332
|
</div>
|
333
|
-
<p>The expression matches records that <
|
334
|
-
and <
|
335
|
-
not equal to 1 and <
|
333
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">_id</span></code> column value is equal to <code class="docutils literal"><span class="pre">1</span></code>
|
334
|
+
and <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal to <code class="docutils literal"><span class="pre">5</span></code> or <code class="docutils literal"><span class="pre">_id</span></code> column value is
|
335
|
+
not equal to 1 and <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal to <code class="docutils literal"><span class="pre">3</span></code>.</p>
|
336
336
|
</div>
|
337
337
|
<div class="section" id="grouping">
|
338
338
|
<h2>7.12.2.5. Grouping<a class="headerlink" href="#grouping" title="Permalink to this headline">¶</a></h2>
|
339
|
-
<p>Its syntax is <
|
340
|
-
<p><
|
341
|
-
an expression. <
|
342
|
-
or <
|
343
|
-
<
|
339
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">(...)</span></code>. <code class="docutils literal"><span class="pre">...</span></code> is comma separated expression list.</p>
|
340
|
+
<p><code class="docutils literal"><span class="pre">(...)</span></code> groups one ore more expressions and they can be processed as
|
341
|
+
an expression. <code 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></code> means that <code class="docutils literal"><span class="pre">a</span></code> and <code class="docutils literal"><span class="pre">b</span></code> are matched
|
342
|
+
or <code class="docutils literal"><span class="pre">c</span></code> is matched. <code 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></code> means that <code class="docutils literal"><span class="pre">a</span></code> and one of
|
343
|
+
<code class="docutils literal"><span class="pre">b</span></code> and <code class="docutils literal"><span class="pre">c</span></code> are matched.</p>
|
344
344
|
<p>Here is a simple example.</p>
|
345
345
|
<p>Execution example:</p>
|
346
346
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 5 && content @ "senna" || content @ "fast"'
|
@@ -382,13 +382,13 @@ or <tt class="docutils literal"><span class="pre">c</span></tt> is matched. <tt
|
|
382
382
|
# [
|
383
383
|
# 2,
|
384
384
|
# "Groonga",
|
385
|
-
# "I started to use
|
385
|
+
# "I started to use Groonga. It's very fast!",
|
386
386
|
# 10
|
387
387
|
# ],
|
388
388
|
# [
|
389
389
|
# 3,
|
390
390
|
# "Mroonga",
|
391
|
-
# "I also started to use
|
391
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
392
392
|
# 15
|
393
393
|
# ]
|
394
394
|
# ]
|
@@ -436,17 +436,17 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
436
436
|
</pre></div>
|
437
437
|
</div>
|
438
438
|
<p>The first expression doesn't use grouping. It matches records that
|
439
|
-
<
|
440
|
-
<
|
441
|
-
<p>The second expression uses grouping. It matches records that <
|
442
|
-
<span class="pre"><</span> <span class="pre">5</span></
|
439
|
+
<code class="docutils literal"><span class="pre">n_likes</span> <span class="pre"><</span> <span class="pre">5</span></code> and <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> are matched or
|
440
|
+
<code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> is matched.</p>
|
441
|
+
<p>The second expression uses grouping. It matches records that <code class="docutils literal"><span class="pre">n_likes</span>
|
442
|
+
<span class="pre"><</span> <span class="pre">5</span></code> and one of <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> or <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> are
|
443
443
|
matched.</p>
|
444
444
|
</div>
|
445
445
|
<div class="section" id="function-call">
|
446
446
|
<h2>7.12.2.6. Function call<a class="headerlink" href="#function-call" title="Permalink to this headline">¶</a></h2>
|
447
|
-
<p>Its syntax is <
|
448
|
-
<p><
|
449
|
-
<
|
447
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">name(arugment1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code>.</p>
|
448
|
+
<p><code class="docutils literal"><span class="pre">name(argument1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code> calls a function that is named
|
449
|
+
<code class="docutils literal"><span class="pre">name</span></code> with arguments <code class="docutils literal"><span class="pre">argument1</span></code>, <code class="docutils literal"><span class="pre">argument2</span></code> and <code class="docutils literal"><span class="pre">...</span></code>.</p>
|
450
450
|
<p>See <a class="reference internal" href="../function.html"><em>Function</em></a> for available functin list.</p>
|
451
451
|
<p>Here is a simple example.</p>
|
452
452
|
<p>Execution example:</p>
|
@@ -483,13 +483,13 @@ matched.</p>
|
|
483
483
|
# [
|
484
484
|
# 2,
|
485
485
|
# "Groonga",
|
486
|
-
# "I started to use
|
486
|
+
# "I started to use Groonga. It's very fast!",
|
487
487
|
# 10
|
488
488
|
# ],
|
489
489
|
# [
|
490
490
|
# 3,
|
491
491
|
# "Mroonga",
|
492
|
-
# "I also started to use
|
492
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
493
493
|
# 15
|
494
494
|
# ]
|
495
495
|
# ]
|
@@ -498,10 +498,10 @@ matched.</p>
|
|
498
498
|
</pre></div>
|
499
499
|
</div>
|
500
500
|
<p>The expression uses <a class="reference internal" href="../functions/edit_distance.html"><em>edit_distance</em></a>. It
|
501
|
-
matches records that <
|
502
|
-
<
|
501
|
+
matches records that <code class="docutils literal"><span class="pre">_key</span></code> column value is similar to
|
502
|
+
<code class="docutils literal"><span class="pre">"Groonga"</span></code>. Similality of <code class="docutils literal"><span class="pre">"Groonga"</span></code> is computed as edit
|
503
503
|
distance. If edit distance is less than or equal to 1, the value is
|
504
|
-
treated as similar. In this case, <
|
504
|
+
treated as similar. In this case, <code class="docutils literal"><span class="pre">"Groonga"</span></code> and <code class="docutils literal"><span class="pre">"Mroonga"</span></code> are
|
505
505
|
treated as similar.</p>
|
506
506
|
</div>
|
507
507
|
<div class="section" id="basic-operators">
|
@@ -512,8 +512,8 @@ treated as similar.</p>
|
|
512
512
|
<p>Here are arithmetic operators.</p>
|
513
513
|
<div class="section" id="addition-operator">
|
514
514
|
<h4>7.12.2.7.1.1. Addition operator<a class="headerlink" href="#addition-operator" title="Permalink to this headline">¶</a></h4>
|
515
|
-
<p>Its syntax is <
|
516
|
-
<p>The operator adds <
|
515
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">+</span> <span class="pre">number2</span></code>.</p>
|
516
|
+
<p>The operator adds <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code> and returns the result.</p>
|
517
517
|
<p>Here is a simple example.</p>
|
518
518
|
<p>Execution example:</p>
|
519
519
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 10 + 5'
|
@@ -549,7 +549,7 @@ treated as similar.</p>
|
|
549
549
|
# [
|
550
550
|
# 3,
|
551
551
|
# "Mroonga",
|
552
|
-
# "I also started to use
|
552
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
553
553
|
# 15
|
554
554
|
# ]
|
555
555
|
# ]
|
@@ -557,13 +557,13 @@ treated as similar.</p>
|
|
557
557
|
# ]
|
558
558
|
</pre></div>
|
559
559
|
</div>
|
560
|
-
<p>The expression matches records that <
|
561
|
-
to <
|
560
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
561
|
+
to <code class="docutils literal"><span class="pre">15</span></code> (= <code class="docutils literal"><span class="pre">10</span> <span class="pre">+</span> <span class="pre">5</span></code>).</p>
|
562
562
|
</div>
|
563
563
|
<div class="section" id="subtraction-operator">
|
564
564
|
<h4>7.12.2.7.1.2. Subtraction operator<a class="headerlink" href="#subtraction-operator" title="Permalink to this headline">¶</a></h4>
|
565
|
-
<p>Its syntax is <
|
566
|
-
<p>The operator subtracts <
|
565
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">-</span> <span class="pre">number2</span></code>.</p>
|
566
|
+
<p>The operator subtracts <code class="docutils literal"><span class="pre">number2</span></code> from <code class="docutils literal"><span class="pre">number1</span></code> and returns the result.</p>
|
567
567
|
<p>Here is a simple example.</p>
|
568
568
|
<p>Execution example:</p>
|
569
569
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 20 - 5'
|
@@ -599,7 +599,7 @@ to <tt class="docutils literal"><span class="pre">15</span></tt> (= <tt class="d
|
|
599
599
|
# [
|
600
600
|
# 3,
|
601
601
|
# "Mroonga",
|
602
|
-
# "I also started to use
|
602
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
603
603
|
# 15
|
604
604
|
# ]
|
605
605
|
# ]
|
@@ -607,13 +607,13 @@ to <tt class="docutils literal"><span class="pre">15</span></tt> (= <tt class="d
|
|
607
607
|
# ]
|
608
608
|
</pre></div>
|
609
609
|
</div>
|
610
|
-
<p>The expression matches records that <
|
611
|
-
to <
|
610
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
611
|
+
to <code class="docutils literal"><span class="pre">15</span></code> (= <code class="docutils literal"><span class="pre">20</span> <span class="pre">-</span> <span class="pre">5</span></code>).</p>
|
612
612
|
</div>
|
613
613
|
<div class="section" id="multiplication-operator">
|
614
614
|
<h4>7.12.2.7.1.3. Multiplication operator<a class="headerlink" href="#multiplication-operator" title="Permalink to this headline">¶</a></h4>
|
615
|
-
<p>Its syntax is <
|
616
|
-
<p>The operator multiplies <
|
615
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">*</span> <span class="pre">number2</span></code>.</p>
|
616
|
+
<p>The operator multiplies <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code> and returns the result.</p>
|
617
617
|
<p>Here is a simple example.</p>
|
618
618
|
<p>Execution example:</p>
|
619
619
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 3 * 5'
|
@@ -649,7 +649,7 @@ to <tt class="docutils literal"><span class="pre">15</span></tt> (= <tt class="d
|
|
649
649
|
# [
|
650
650
|
# 3,
|
651
651
|
# "Mroonga",
|
652
|
-
# "I also started to use
|
652
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
653
653
|
# 15
|
654
654
|
# ]
|
655
655
|
# ]
|
@@ -657,14 +657,14 @@ to <tt class="docutils literal"><span class="pre">15</span></tt> (= <tt class="d
|
|
657
657
|
# ]
|
658
658
|
</pre></div>
|
659
659
|
</div>
|
660
|
-
<p>The expression matches records that <
|
661
|
-
to <
|
660
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
661
|
+
to <code class="docutils literal"><span class="pre">15</span></code> (= <code class="docutils literal"><span class="pre">3</span> <span class="pre">*</span> <span class="pre">5</span></code>).</p>
|
662
662
|
</div>
|
663
663
|
<div class="section" id="division-operator">
|
664
664
|
<h4>7.12.2.7.1.4. Division operator<a class="headerlink" href="#division-operator" title="Permalink to this headline">¶</a></h4>
|
665
|
-
<p>Its syntax is <
|
666
|
-
<p>The operator divides <
|
667
|
-
quotient of result. <
|
665
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">/</span> <span class="pre">number2</span></code> and <code class="docutils literal"><span class="pre">number1</span> <span class="pre">%</span> <span class="pre">number2</span></code>.</p>
|
666
|
+
<p>The operator divides <code class="docutils literal"><span class="pre">number2</span></code> by <code class="docutils literal"><span class="pre">number1</span></code>. <code class="docutils literal"><span class="pre">/</span></code> returns the
|
667
|
+
quotient of result. <code class="docutils literal"><span class="pre">%</span></code> returns the remainder of result.</p>
|
668
668
|
<p>Here is simple examples.</p>
|
669
669
|
<p>Execution example:</p>
|
670
670
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 / 7'
|
@@ -714,8 +714,8 @@ quotient of result. <tt class="docutils literal"><span class="pre">%</span></tt>
|
|
714
714
|
# ]
|
715
715
|
</pre></div>
|
716
716
|
</div>
|
717
|
-
<p>The expression matches records that <
|
718
|
-
to <
|
717
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
718
|
+
to <code class="docutils literal"><span class="pre">3</span></code> (= <code class="docutils literal"><span class="pre">26</span> <span class="pre">/</span> <span class="pre">7</span></code>).</p>
|
719
719
|
<p>Execution example:</p>
|
720
720
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 % 7'
|
721
721
|
# [
|
@@ -758,8 +758,8 @@ to <tt class="docutils literal"><span class="pre">3</span></tt> (= <tt class="do
|
|
758
758
|
# ]
|
759
759
|
</pre></div>
|
760
760
|
</div>
|
761
|
-
<p>The expression matches records that <
|
762
|
-
to <
|
761
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
762
|
+
to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">26</span> <span class="pre">%</span> <span class="pre">7</span></code>).</p>
|
763
763
|
</div>
|
764
764
|
</div>
|
765
765
|
<div class="section" id="logical-operators">
|
@@ -767,8 +767,8 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="do
|
|
767
767
|
<p>Here are logical operators.</p>
|
768
768
|
<div class="section" id="logical-not-operator">
|
769
769
|
<h4>7.12.2.7.2.1. Logical NOT operator<a class="headerlink" href="#logical-not-operator" title="Permalink to this headline">¶</a></h4>
|
770
|
-
<p>Its syntax is <
|
771
|
-
<p>The operator inverts boolean value of <
|
770
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">!condition</span></code>.</p>
|
771
|
+
<p>The operator inverts boolean value of <code class="docutils literal"><span class="pre">condition</span></code>.</p>
|
772
772
|
<p>Here is a simple example.</p>
|
773
773
|
<p>Execution example:</p>
|
774
774
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '!(n_likes == 5)'
|
@@ -816,13 +816,13 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="do
|
|
816
816
|
# [
|
817
817
|
# 2,
|
818
818
|
# "Groonga",
|
819
|
-
# "I started to use
|
819
|
+
# "I started to use Groonga. It's very fast!",
|
820
820
|
# 10
|
821
821
|
# ],
|
822
822
|
# [
|
823
823
|
# 3,
|
824
824
|
# "Mroonga",
|
825
|
-
# "I also started to use
|
825
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
826
826
|
# 15
|
827
827
|
# ]
|
828
828
|
# ]
|
@@ -830,14 +830,14 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="do
|
|
830
830
|
# ]
|
831
831
|
</pre></div>
|
832
832
|
</div>
|
833
|
-
<p>The expression matches records that <
|
834
|
-
equal to <
|
833
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is not
|
834
|
+
equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
835
835
|
</div>
|
836
836
|
<div class="section" id="logical-and-operator">
|
837
837
|
<h4>7.12.2.7.2.2. Logical AND operator<a class="headerlink" href="#logical-and-operator" title="Permalink to this headline">¶</a></h4>
|
838
|
-
<p>Its syntax is <
|
839
|
-
<p>The operator returns true if both of <
|
840
|
-
<
|
838
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">&&</span> <span class="pre">condition2</span></code>.</p>
|
839
|
+
<p>The operator returns true if both of <code class="docutils literal"><span class="pre">condition1</span></code> and
|
840
|
+
<code class="docutils literal"><span class="pre">condition2</span></code> are true, false otherwise.</p>
|
841
841
|
<p>Here is a simple example.</p>
|
842
842
|
<p>Execution example:</p>
|
843
843
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && n_likes >= 10'
|
@@ -873,13 +873,13 @@ equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
|
873
873
|
# [
|
874
874
|
# 2,
|
875
875
|
# "Groonga",
|
876
|
-
# "I started to use
|
876
|
+
# "I started to use Groonga. It's very fast!",
|
877
877
|
# 10
|
878
878
|
# ],
|
879
879
|
# [
|
880
880
|
# 3,
|
881
881
|
# "Mroonga",
|
882
|
-
# "I also started to use
|
882
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
883
883
|
# 15
|
884
884
|
# ]
|
885
885
|
# ]
|
@@ -887,14 +887,14 @@ equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
|
887
887
|
# ]
|
888
888
|
</pre></div>
|
889
889
|
</div>
|
890
|
-
<p>The expression matches records that <
|
891
|
-
word <
|
892
|
-
<
|
890
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">content</span></code> column value has the
|
891
|
+
word <code class="docutils literal"><span class="pre">fast</span></code> and <code class="docutils literal"><span class="pre">n_likes</span></code> column value is greater or equal to
|
892
|
+
<code class="docutils literal"><span class="pre">10</span></code>.</p>
|
893
893
|
</div>
|
894
894
|
<div class="section" id="logical-or-operator">
|
895
895
|
<h4>7.12.2.7.2.3. Logical OR operator<a class="headerlink" href="#logical-or-operator" title="Permalink to this headline">¶</a></h4>
|
896
|
-
<p>Its syntax is <
|
897
|
-
<p>The operator returns true if either <
|
896
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">||</span> <span class="pre">condition2</span></code>.</p>
|
897
|
+
<p>The operator returns true if either <code class="docutils literal"><span class="pre">condition1</span></code> or <code class="docutils literal"><span class="pre">condition2</span></code> is
|
898
898
|
true, false otherwise.</p>
|
899
899
|
<p>Here is a simple example.</p>
|
900
900
|
<p>Execution example:</p>
|
@@ -937,7 +937,7 @@ true, false otherwise.</p>
|
|
937
937
|
# [
|
938
938
|
# 2,
|
939
939
|
# "Groonga",
|
940
|
-
# "I started to use
|
940
|
+
# "I started to use Groonga. It's very fast!",
|
941
941
|
# 10
|
942
942
|
# ]
|
943
943
|
# ]
|
@@ -945,13 +945,13 @@ true, false otherwise.</p>
|
|
945
945
|
# ]
|
946
946
|
</pre></div>
|
947
947
|
</div>
|
948
|
-
<p>The expression matches records that <
|
949
|
-
to <
|
948
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
949
|
+
to <code class="docutils literal"><span class="pre">5</span></code> or <code class="docutils literal"><span class="pre">10</span></code>.</p>
|
950
950
|
</div>
|
951
951
|
<div class="section" id="logical-and-not-operator">
|
952
952
|
<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>
|
953
|
-
<p>Its syntax is <
|
954
|
-
<p>The operator returns true if <
|
953
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">&!</span> <span class="pre">condition2</span></code>.</p>
|
954
|
+
<p>The operator returns true if <code class="docutils literal"><span class="pre">condition1</span></code> is true but <code class="docutils literal"><span class="pre">condition2</span></code>
|
955
955
|
is false, false otherwise. It returns difference set.</p>
|
956
956
|
<p>Here is a simple example.</p>
|
957
957
|
<p>Execution example:</p>
|
@@ -988,7 +988,7 @@ is false, false otherwise. It returns difference set.</p>
|
|
988
988
|
# [
|
989
989
|
# 2,
|
990
990
|
# "Groonga",
|
991
|
-
# "I started to use
|
991
|
+
# "I started to use Groonga. It's very fast!",
|
992
992
|
# 10
|
993
993
|
# ]
|
994
994
|
# ]
|
@@ -996,17 +996,17 @@ is false, false otherwise. It returns difference set.</p>
|
|
996
996
|
# ]
|
997
997
|
</pre></div>
|
998
998
|
</div>
|
999
|
-
<p>The expression matches records that <
|
1000
|
-
word <
|
999
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">content</span></code> column value has the
|
1000
|
+
word <code class="docutils literal"><span class="pre">fast</span></code> but doesn't have the word <code class="docutils literal"><span class="pre">mroonga</span></code>.</p>
|
1001
1001
|
</div>
|
1002
1002
|
</div>
|
1003
1003
|
<div class="section" id="bitwise-operators">
|
1004
|
-
<h3>7.12.2.7.3. Bitwise operators<a class="headerlink" href="#bitwise-operators" title="Permalink to this headline">¶</a></h3>
|
1004
|
+
<span id="script-syntax-bitwise-operators"></span><h3>7.12.2.7.3. Bitwise operators<a class="headerlink" href="#bitwise-operators" title="Permalink to this headline">¶</a></h3>
|
1005
1005
|
<p>Here are bitwise operators.</p>
|
1006
1006
|
<div class="section" id="bitwise-not-operator">
|
1007
|
-
<h4>7.12.2.7.3.1. Bitwise NOT operator<a class="headerlink" href="#bitwise-not-operator" title="Permalink to this headline">¶</a></h4>
|
1008
|
-
<p>Its syntax is <
|
1009
|
-
<p>The operator returns bitwise NOT of <
|
1007
|
+
<span id="script-syntax-bitwise-not"></span><h4>7.12.2.7.3.1. Bitwise NOT operator<a class="headerlink" href="#bitwise-not-operator" title="Permalink to this headline">¶</a></h4>
|
1008
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">~number</span></code>.</p>
|
1009
|
+
<p>The operator returns bitwise NOT of <code class="docutils literal"><span class="pre">number</span></code>.</p>
|
1010
1010
|
<p>Here is a simple example.</p>
|
1011
1011
|
<p>Execution example:</p>
|
1012
1012
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '~n_likes == -6'
|
@@ -1050,13 +1050,13 @@ word <tt class="docutils literal"><span class="pre">fast</span></tt> but doesn't
|
|
1050
1050
|
# ]
|
1051
1051
|
</pre></div>
|
1052
1052
|
</div>
|
1053
|
-
<p>The expression matches records that <
|
1054
|
-
to <
|
1053
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
1054
|
+
to <code class="docutils literal"><span class="pre">5</span></code> because bitwise NOT of <code class="docutils literal"><span class="pre">5</span></code> is equal to <code class="docutils literal"><span class="pre">-6</span></code>.</p>
|
1055
1055
|
</div>
|
1056
1056
|
<div class="section" id="bitwise-and-operator">
|
1057
|
-
<h4>7.12.2.7.3.2. Bitwise AND operator<a class="headerlink" href="#bitwise-and-operator" title="Permalink to this headline">¶</a></h4>
|
1058
|
-
<p>Its syntax is <
|
1059
|
-
<p>The operator returns bitwise AND between <
|
1057
|
+
<span id="script-syntax-bitwise-and"></span><h4>7.12.2.7.3.2. Bitwise AND operator<a class="headerlink" href="#bitwise-and-operator" title="Permalink to this headline">¶</a></h4>
|
1058
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">&</span> <span class="pre">number2</span></code>.</p>
|
1059
|
+
<p>The operator returns bitwise AND between <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code>.</p>
|
1060
1060
|
<p>Here is a simple example.</p>
|
1061
1061
|
<p>Execution example:</p>
|
1062
1062
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '(n_likes & 1) == 1'
|
@@ -1104,7 +1104,7 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> because bitwise
|
|
1104
1104
|
# [
|
1105
1105
|
# 3,
|
1106
1106
|
# "Mroonga",
|
1107
|
-
# "I also started to use
|
1107
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
1108
1108
|
# 15
|
1109
1109
|
# ],
|
1110
1110
|
# [
|
@@ -1118,16 +1118,16 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> because bitwise
|
|
1118
1118
|
# ]
|
1119
1119
|
</pre></div>
|
1120
1120
|
</div>
|
1121
|
-
<p>The expression matches records that <
|
1122
|
-
number because bitwise AND between an even number and <
|
1123
|
-
to <
|
1124
|
-
<
|
1121
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is even
|
1122
|
+
number because bitwise AND between an even number and <code class="docutils literal"><span class="pre">1</span></code> is equal
|
1123
|
+
to <code class="docutils literal"><span class="pre">1</span></code> and bitwise AND between an odd number and <code class="docutils literal"><span class="pre">1</span></code> is equal to
|
1124
|
+
<code class="docutils literal"><span class="pre">0</span></code>.</p>
|
1125
1125
|
</div>
|
1126
1126
|
</div>
|
1127
1127
|
<div class="section" id="bitwise-or-operator">
|
1128
|
-
<h3>7.12.2.7.4. Bitwise OR operator<a class="headerlink" href="#bitwise-or-operator" title="Permalink to this headline">¶</a></h3>
|
1129
|
-
<p>Its syntax is <
|
1130
|
-
<p>The operator returns bitwise OR between <
|
1128
|
+
<span id="script-syntax-bitwise-or"></span><h3>7.12.2.7.4. Bitwise OR operator<a class="headerlink" href="#bitwise-or-operator" title="Permalink to this headline">¶</a></h3>
|
1129
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">|</span> <span class="pre">number2</span></code>.</p>
|
1130
|
+
<p>The operator returns bitwise OR between <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code>.</p>
|
1131
1131
|
<p>Here is a simple example.</p>
|
1132
1132
|
<p>Execution example:</p>
|
1133
1133
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (1 | 4)'
|
@@ -1171,13 +1171,13 @@ to <tt class="docutils literal"><span class="pre">1</span></tt> and bitwise AND
|
|
1171
1171
|
# ]
|
1172
1172
|
</pre></div>
|
1173
1173
|
</div>
|
1174
|
-
<p>The expression matches records that <
|
1175
|
-
to <
|
1174
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
1175
|
+
to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">4</span></code>).</p>
|
1176
1176
|
</div>
|
1177
1177
|
<div class="section" id="bitwise-xor-operator">
|
1178
|
-
<h3>7.12.2.7.5. Bitwise XOR operator<a class="headerlink" href="#bitwise-xor-operator" title="Permalink to this headline">¶</a></h3>
|
1179
|
-
<p>Its syntax is <
|
1180
|
-
<p>The operator returns bitwise XOR between <
|
1178
|
+
<span id="script-syntax-bitwise-xor"></span><h3>7.12.2.7.5. Bitwise XOR operator<a class="headerlink" href="#bitwise-xor-operator" title="Permalink to this headline">¶</a></h3>
|
1179
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">^</span> <span class="pre">number2</span></code>.</p>
|
1180
|
+
<p>The operator returns bitwise XOR between <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code>.</p>
|
1181
1181
|
<p>Here is a simple example.</p>
|
1182
1182
|
<p>Execution example:</p>
|
1183
1183
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (10 ^ 15)'
|
@@ -1221,17 +1221,17 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="do
|
|
1221
1221
|
# ]
|
1222
1222
|
</pre></div>
|
1223
1223
|
</div>
|
1224
|
-
<p>The expression matches records that <
|
1225
|
-
to <
|
1224
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
1225
|
+
to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">10</span> <span class="pre">^</span> <span class="pre">15</span></code>).</p>
|
1226
1226
|
</div>
|
1227
1227
|
<div class="section" id="shift-operators">
|
1228
|
-
<h3>7.12.2.7.6. Shift operators<a class="headerlink" href="#shift-operators" title="Permalink to this headline">¶</a></h3>
|
1228
|
+
<span id="script-syntax-shift-operators"></span><h3>7.12.2.7.6. Shift operators<a class="headerlink" href="#shift-operators" title="Permalink to this headline">¶</a></h3>
|
1229
1229
|
<p>Here are shift operators.</p>
|
1230
1230
|
<div class="section" id="left-shift-operator">
|
1231
|
-
<h4>7.12.2.7.6.1. Left shift operator<a class="headerlink" href="#left-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1232
|
-
<p>Its syntax is <
|
1233
|
-
<p>The operator performs a bitwise left shift operation on <
|
1234
|
-
<
|
1231
|
+
<span id="script-syntax-shift-left"></span><h4>7.12.2.7.6.1. Left shift operator<a class="headerlink" href="#left-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1232
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre"><<</span> <span class="pre">number2</span></code>.</p>
|
1233
|
+
<p>The operator performs a bitwise left shift operation on <code class="docutils literal"><span class="pre">number1</span></code> by
|
1234
|
+
<code class="docutils literal"><span class="pre">number2</span></code>.</p>
|
1235
1235
|
<p>Here is a simple example.</p>
|
1236
1236
|
<p>Execution example:</p>
|
1237
1237
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (5 << 1)'
|
@@ -1267,7 +1267,7 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="do
|
|
1267
1267
|
# [
|
1268
1268
|
# 2,
|
1269
1269
|
# "Groonga",
|
1270
|
-
# "I started to use
|
1270
|
+
# "I started to use Groonga. It's very fast!",
|
1271
1271
|
# 10
|
1272
1272
|
# ]
|
1273
1273
|
# ]
|
@@ -1275,14 +1275,14 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="do
|
|
1275
1275
|
# ]
|
1276
1276
|
</pre></div>
|
1277
1277
|
</div>
|
1278
|
-
<p>The expression matches records that <
|
1279
|
-
to <
|
1278
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
1279
|
+
to <code class="docutils literal"><span class="pre">10</span></code> (= <code class="docutils literal"><span class="pre">5</span> <span class="pre"><<</span> <span class="pre">1</span></code>).</p>
|
1280
1280
|
</div>
|
1281
1281
|
<div class="section" id="signed-right-shift-operator">
|
1282
|
-
<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>
|
1283
|
-
<p>Its syntax is <
|
1284
|
-
<p>The operator shifts bits of <
|
1285
|
-
of the result is the same as <
|
1282
|
+
<span id="script-syntax-shift-signed-right"></span><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>
|
1283
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">>></span> <span class="pre">number2</span></code>.</p>
|
1284
|
+
<p>The operator shifts bits of <code class="docutils literal"><span class="pre">number1</span></code> to right by <code class="docutils literal"><span class="pre">number2</span></code>. The sign
|
1285
|
+
of the result is the same as <code class="docutils literal"><span class="pre">number1</span></code>.</p>
|
1286
1286
|
<p>Here is a simple example.</p>
|
1287
1287
|
<p>Execution example:</p>
|
1288
1288
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == -(-10 >> 1)'
|
@@ -1326,14 +1326,14 @@ of the result is the same as <tt class="docutils literal"><span class="pre">numb
|
|
1326
1326
|
# ]
|
1327
1327
|
</pre></div>
|
1328
1328
|
</div>
|
1329
|
-
<p>The expression matches records that <
|
1330
|
-
to <
|
1329
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
1330
|
+
to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">-(-10</span> <span class="pre">>></span> <span class="pre">1)</span></code> = <code class="docutils literal"><span class="pre">-(-5)</span></code>).</p>
|
1331
1331
|
</div>
|
1332
1332
|
<div class="section" id="unsigned-right-shift-operator">
|
1333
|
-
<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>
|
1334
|
-
<p>Its syntax is <
|
1335
|
-
<p>The operator shifts bits of <
|
1336
|
-
leftmost <
|
1333
|
+
<span id="script-syntax-shift-unsigned-right"></span><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>
|
1334
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">>>></span> <span class="pre">number2</span></code>.</p>
|
1335
|
+
<p>The operator shifts bits of <code class="docutils literal"><span class="pre">number1</span></code> to right by <code class="docutils literal"><span class="pre">number2</span></code>. The
|
1336
|
+
leftmost <code class="docutils literal"><span class="pre">number2</span></code> bits are filled by <code class="docutils literal"><span class="pre">0</span></code>.</p>
|
1337
1337
|
<p>Here is a simple example.</p>
|
1338
1338
|
<p>Execution example:</p>
|
1339
1339
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (2147483648 - (-10 >>> 1))'
|
@@ -1377,8 +1377,8 @@ leftmost <tt class="docutils literal"><span class="pre">number2</span></tt> bits
|
|
1377
1377
|
# ]
|
1378
1378
|
</pre></div>
|
1379
1379
|
</div>
|
1380
|
-
<p>The expression matches records that <
|
1381
|
-
to <
|
1380
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
1381
|
+
to <code class="docutils literal"><span class="pre">5</span></code> (= <code 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></code> = <code class="docutils literal"><span class="pre">2147483648</span> <span class="pre">-</span> <span class="pre">2147483643</span></code>).</p>
|
1382
1382
|
</div>
|
1383
1383
|
</div>
|
1384
1384
|
<div class="section" id="comparison-operators">
|
@@ -1386,8 +1386,8 @@ to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="do
|
|
1386
1386
|
<p>Here are comparison operators.</p>
|
1387
1387
|
<div class="section" id="equal-operator">
|
1388
1388
|
<h4>7.12.2.7.7.1. Equal operator<a class="headerlink" href="#equal-operator" title="Permalink to this headline">¶</a></h4>
|
1389
|
-
<p>Its syntax is <
|
1390
|
-
<p>The operator returns true if <
|
1389
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">object1</span> <span class="pre">==</span> <span class="pre">object2</span></code>.</p>
|
1390
|
+
<p>The operator returns true if <code class="docutils literal"><span class="pre">object1</span></code> equals to <code class="docutils literal"><span class="pre">object2</span></code>, false
|
1391
1391
|
otherwise.</p>
|
1392
1392
|
<p>Here is a simple example.</p>
|
1393
1393
|
<p>Execution example:</p>
|
@@ -1432,14 +1432,14 @@ otherwise.</p>
|
|
1432
1432
|
# ]
|
1433
1433
|
</pre></div>
|
1434
1434
|
</div>
|
1435
|
-
<p>The expression matches records that <
|
1436
|
-
to <
|
1435
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
|
1436
|
+
to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
1437
1437
|
</div>
|
1438
1438
|
<div class="section" id="not-equal-operator">
|
1439
1439
|
<h4>7.12.2.7.7.2. Not equal operator<a class="headerlink" href="#not-equal-operator" title="Permalink to this headline">¶</a></h4>
|
1440
|
-
<p>Its syntax is <
|
1441
|
-
<p>The operator returns true if <
|
1442
|
-
<
|
1440
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">object1</span> <span class="pre">!=</span> <span class="pre">object2</span></code>.</p>
|
1441
|
+
<p>The operator returns true if <code class="docutils literal"><span class="pre">object1</span></code> does not equal to
|
1442
|
+
<code class="docutils literal"><span class="pre">object2</span></code>, false otherwise.</p>
|
1443
1443
|
<p>Here is a simple example.</p>
|
1444
1444
|
<p>Execution example:</p>
|
1445
1445
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes != 5'
|
@@ -1487,13 +1487,13 @@ to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
|
1487
1487
|
# [
|
1488
1488
|
# 2,
|
1489
1489
|
# "Groonga",
|
1490
|
-
# "I started to use
|
1490
|
+
# "I started to use Groonga. It's very fast!",
|
1491
1491
|
# 10
|
1492
1492
|
# ],
|
1493
1493
|
# [
|
1494
1494
|
# 3,
|
1495
1495
|
# "Mroonga",
|
1496
|
-
# "I also started to use
|
1496
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
1497
1497
|
# 15
|
1498
1498
|
# ]
|
1499
1499
|
# ]
|
@@ -1501,8 +1501,8 @@ to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
|
1501
1501
|
# ]
|
1502
1502
|
</pre></div>
|
1503
1503
|
</div>
|
1504
|
-
<p>The expression matches records that <
|
1505
|
-
equal to <
|
1504
|
+
<p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is not
|
1505
|
+
equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
1506
1506
|
</div>
|
1507
1507
|
<div class="section" id="less-than-operator">
|
1508
1508
|
<h4>7.12.2.7.7.3. Less than operator<a class="headerlink" href="#less-than-operator" title="Permalink to this headline">¶</a></h4>
|
@@ -1526,7 +1526,7 @@ equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
|
1526
1526
|
<h2>7.12.2.8. Assignment operators<a class="headerlink" href="#assignment-operators" title="Permalink to this headline">¶</a></h2>
|
1527
1527
|
<div class="section" id="addition-assignment-operator">
|
1528
1528
|
<h3>7.12.2.8.1. Addition assignment operator<a class="headerlink" href="#addition-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1529
|
-
<p>Its syntax is <
|
1529
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">+=</span> <span class="pre">column2</span></code>.</p>
|
1530
1530
|
<p>The operator performs addition assginment operation on column1 by column2.</p>
|
1531
1531
|
<p>Execution example:</p>
|
1532
1532
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score += n_likes'
|
@@ -1585,15 +1585,15 @@ equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
|
1585
1585
|
# ]
|
1586
1586
|
</pre></div>
|
1587
1587
|
</div>
|
1588
|
-
<p>The value of <
|
1588
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
1589
1589
|
then performs addition assignment operation such as '_score = _score + n_likes' for each records.</p>
|
1590
|
-
<p>For example, the value of <
|
1590
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Good-bye Senna" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
1591
1591
|
is 3.</p>
|
1592
|
-
<p>So the expression <
|
1592
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
1593
1593
|
</div>
|
1594
1594
|
<div class="section" id="subtraction-assignment-operator">
|
1595
1595
|
<h3>7.12.2.8.2. Subtraction assignment operator<a class="headerlink" href="#subtraction-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1596
|
-
<p>Its syntax is <
|
1596
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">-=</span> <span class="pre">column2</span></code>.</p>
|
1597
1597
|
<p>The operator performs subtraction assginment operation on column1 by column2.</p>
|
1598
1598
|
<p>Execution example:</p>
|
1599
1599
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score -= n_likes'
|
@@ -1652,15 +1652,15 @@ is 3.</p>
|
|
1652
1652
|
# ]
|
1653
1653
|
</pre></div>
|
1654
1654
|
</div>
|
1655
|
-
<p>The value of <
|
1655
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
1656
1656
|
then performs subtraction assignment operation such as '_score = _score - n_likes' for each records.</p>
|
1657
|
-
<p>For example, the value of <
|
1657
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Good-bye Senna" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
1658
1658
|
is 3.</p>
|
1659
|
-
<p>So the expression <
|
1659
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">-</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
1660
1660
|
</div>
|
1661
1661
|
<div class="section" id="multiplication-assignment-operator">
|
1662
1662
|
<h3>7.12.2.8.3. Multiplication assignment operator<a class="headerlink" href="#multiplication-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1663
|
-
<p>Its syntax is <
|
1663
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">*=</span> <span class="pre">column2</span></code>.</p>
|
1664
1664
|
<p>The operator performs multiplication assginment operation on column1 by column2.</p>
|
1665
1665
|
<p>Execution example:</p>
|
1666
1666
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score *= n_likes'
|
@@ -1719,15 +1719,15 @@ is 3.</p>
|
|
1719
1719
|
# ]
|
1720
1720
|
</pre></div>
|
1721
1721
|
</div>
|
1722
|
-
<p>The value of <
|
1722
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
1723
1723
|
then performs subtraction assignment operation such as '_score = _score * n_likes' for each records.</p>
|
1724
|
-
<p>For example, the value of <
|
1724
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Good-bye Senna" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
1725
1725
|
is 3.</p>
|
1726
|
-
<p>So the expression <
|
1726
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">*</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
1727
1727
|
</div>
|
1728
1728
|
<div class="section" id="division-assignment-operator">
|
1729
1729
|
<h3>7.12.2.8.4. Division assignment operator<a class="headerlink" href="#division-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1730
|
-
<p>Its syntax is <
|
1730
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">/=</span> <span class="pre">column2</span></code>.</p>
|
1731
1731
|
<p>The operator performs division assginment operation on column1 by column2.</p>
|
1732
1732
|
<p>Execution example:</p>
|
1733
1733
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score /= n_likes'
|
@@ -1786,15 +1786,15 @@ is 3.</p>
|
|
1786
1786
|
# ]
|
1787
1787
|
</pre></div>
|
1788
1788
|
</div>
|
1789
|
-
<p>The value of <
|
1789
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
1790
1790
|
then performs subtraction assignment operation such as '_score = _score / n_likes' for each records.</p>
|
1791
|
-
<p>For example, the value of <
|
1791
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Good-bye Senna" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
1792
1792
|
is 3.</p>
|
1793
|
-
<p>So the expression <
|
1793
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">/</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
1794
1794
|
</div>
|
1795
1795
|
<div class="section" id="modulo-assignment-operator">
|
1796
1796
|
<h3>7.12.2.8.5. Modulo assignment operator<a class="headerlink" href="#modulo-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1797
|
-
<p>Its syntax is <
|
1797
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">%=</span> <span class="pre">column2</span></code>.</p>
|
1798
1798
|
<p>The operator performs modulo assginment operation on column1 by column2.</p>
|
1799
1799
|
<p>Execution example:</p>
|
1800
1800
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score %= n_likes'
|
@@ -1853,15 +1853,15 @@ is 3.</p>
|
|
1853
1853
|
# ]
|
1854
1854
|
</pre></div>
|
1855
1855
|
</div>
|
1856
|
-
<p>The value of <
|
1856
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
1857
1857
|
then performs subtraction assignment operation such as '_score = _score % n_likes' for each records.</p>
|
1858
|
-
<p>For example, the value of <
|
1858
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Good-bye Senna" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
1859
1859
|
is 3.</p>
|
1860
|
-
<p>So the expression <
|
1860
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">%</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
1861
1861
|
</div>
|
1862
1862
|
<div class="section" id="bitwise-left-shift-assignment-operator">
|
1863
1863
|
<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>
|
1864
|
-
<p>Its syntax is <
|
1864
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre"><<=</span> <span class="pre">column2</span></code>.</p>
|
1865
1865
|
<p>The operator performs left shift assginment operation on column1 by column2.</p>
|
1866
1866
|
<p>Execution example:</p>
|
1867
1867
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score <<= n_likes'
|
@@ -1920,25 +1920,25 @@ is 3.</p>
|
|
1920
1920
|
# ]
|
1921
1921
|
</pre></div>
|
1922
1922
|
</div>
|
1923
|
-
<p>The value of <
|
1923
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
1924
1924
|
then performs subtraction assignment operation such as '_score = _score << n_likes' for each records.</p>
|
1925
|
-
<p>For example, the value of <
|
1925
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Good-bye Senna" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
1926
1926
|
is 3.</p>
|
1927
|
-
<p>So the expression <
|
1927
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre"><<</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
1928
1928
|
</div>
|
1929
1929
|
<div class="section" id="bitwise-signed-right-shift-assignment-operator">
|
1930
1930
|
<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>
|
1931
|
-
<p>Its syntax is <
|
1931
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column2</span> <span class="pre">>>=</span> <span class="pre">column2</span></code>.</p>
|
1932
1932
|
<p>The operator performs signed right shift assginment operation on column1 by column2.</p>
|
1933
1933
|
</div>
|
1934
1934
|
<div class="section" id="bitwise-unsigned-right-shift-assignment-operator">
|
1935
1935
|
<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>
|
1936
|
-
<p>Its syntax is <
|
1936
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">>>>=</span> <span class="pre">column2</span></code>.</p>
|
1937
1937
|
<p>The operator performs unsigned right shift assginment operation on column1 by column2.</p>
|
1938
1938
|
</div>
|
1939
1939
|
<div class="section" id="bitwise-and-assignment-operator">
|
1940
1940
|
<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>
|
1941
|
-
<p>Its syntax is <
|
1941
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">&=</span> <span class="pre">column2</span></code>.</p>
|
1942
1942
|
<p>The operator performs bitwise AND assignment operation on column1 by column2.</p>
|
1943
1943
|
<p>Execution example:</p>
|
1944
1944
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score &= n_likes'
|
@@ -1997,15 +1997,15 @@ is 3.</p>
|
|
1997
1997
|
# ]
|
1998
1998
|
</pre></div>
|
1999
1999
|
</div>
|
2000
|
-
<p>The value of <
|
2000
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
2001
2001
|
then performs subtraction assignment operation such as '_score = _score & n_likes' for each records.</p>
|
2002
|
-
<p>For example, the value of <
|
2002
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Groonga" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
2003
2003
|
is 10.</p>
|
2004
|
-
<p>So the expression <
|
2004
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">&</span> <span class="pre">10</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
2005
2005
|
</div>
|
2006
2006
|
<div class="section" id="bitwise-or-assignment-operator">
|
2007
|
-
<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>
|
2008
|
-
<p>Its syntax is <
|
2007
|
+
<span id="script-syntax-bitwise-or-assign"></span><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>
|
2008
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">|=</span> <span class="pre">column2</span></code>.</p>
|
2009
2009
|
<p>The operator performs bitwise OR assignment operation on column1 by column2.</p>
|
2010
2010
|
<p>Execution example:</p>
|
2011
2011
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score |= n_likes'
|
@@ -2064,15 +2064,15 @@ is 10.</p>
|
|
2064
2064
|
# ]
|
2065
2065
|
</pre></div>
|
2066
2066
|
</div>
|
2067
|
-
<p>The value of <
|
2067
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
2068
2068
|
then performs subtraction assignment operation such as '_score = _score | n_likes' for each records.</p>
|
2069
|
-
<p>For example, the value of <
|
2069
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Groonga" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
2070
2070
|
is 10.</p>
|
2071
|
-
<p>So the expression <
|
2071
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">10</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
2072
2072
|
</div>
|
2073
2073
|
<div class="section" id="bitwise-xor-assignment-operator">
|
2074
2074
|
<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>
|
2075
|
-
<p>Its syntax is <
|
2075
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">^=</span> <span class="pre">column2</span></code>.</p>
|
2076
2076
|
<p>The operator performs bitwise XOR assginment operation on column1 by column2.</p>
|
2077
2077
|
<p>Execution example:</p>
|
2078
2078
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score ^= n_likes'
|
@@ -2131,22 +2131,22 @@ is 10.</p>
|
|
2131
2131
|
# ]
|
2132
2132
|
</pre></div>
|
2133
2133
|
</div>
|
2134
|
-
<p>The value of <
|
2134
|
+
<p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
|
2135
2135
|
then performs subtraction assignment operation such as '_score = _score ^ n_likes' for each records.</p>
|
2136
|
-
<p>For example, the value of <
|
2136
|
+
<p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores "Good-bye Senna" as the <code class="docutils literal"><span class="pre">_key</span></code>
|
2137
2137
|
is 3.</p>
|
2138
|
-
<p>So the expression <
|
2138
|
+
<p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">^</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
|
2139
2139
|
</div>
|
2140
2140
|
</div>
|
2141
2141
|
<div class="section" id="original-operators">
|
2142
2142
|
<h2>7.12.2.9. Original operators<a class="headerlink" href="#original-operators" title="Permalink to this headline">¶</a></h2>
|
2143
2143
|
<p>Script syntax adds the original binary opearators to ECMAScript
|
2144
2144
|
syntax. They operate search specific operations. They are starts with
|
2145
|
-
<
|
2145
|
+
<code class="docutils literal"><span class="pre">@</span></code> or <code class="docutils literal"><span class="pre">*</span></code>.</p>
|
2146
2146
|
<div class="section" id="match-operator">
|
2147
|
-
<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>
|
2148
|
-
<p>Its syntax is <
|
2149
|
-
<p>The operator searches <
|
2147
|
+
<span id="script-syntax-match-oeprator"></span><h3>7.12.2.9.1. Match operator<a class="headerlink" href="#match-operator" title="Permalink to this headline">¶</a></h3>
|
2148
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@</span> <span class="pre">value</span></code>.</p>
|
2149
|
+
<p>The operator searches <code class="docutils literal"><span class="pre">value</span></code> by inverted index of <code class="docutils literal"><span class="pre">column</span></code>.
|
2150
2150
|
Normally, full text search is operated but tag search can be operated.
|
2151
2151
|
Because tag search is also implemented by inverted index.</p>
|
2152
2152
|
<p><a class="reference internal" href="query_syntax.html"><em>Query syntax</em></a> uses this operator by default.</p>
|
@@ -2171,30 +2171,30 @@ Because tag search is also implemented by inverted index.</p>
|
|
2171
2171
|
# ]
|
2172
2172
|
# ],
|
2173
2173
|
# [
|
2174
|
-
# "I started to use
|
2174
|
+
# "I started to use Groonga. It's very fast!"
|
2175
2175
|
# ],
|
2176
2176
|
# [
|
2177
|
-
# "I also started to use
|
2177
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!"
|
2178
2178
|
# ]
|
2179
2179
|
# ]
|
2180
2180
|
# ]
|
2181
2181
|
# ]
|
2182
2182
|
</pre></div>
|
2183
2183
|
</div>
|
2184
|
-
<p>The expression matches records that contain a word <
|
2185
|
-
<
|
2184
|
+
<p>The expression matches records that contain a word <code class="docutils literal"><span class="pre">fast</span></code> in
|
2185
|
+
<code class="docutils literal"><span class="pre">content</span></code> column value.</p>
|
2186
2186
|
</div>
|
2187
2187
|
<div class="section" id="prefix-search-operator">
|
2188
|
-
<span id="
|
2189
|
-
<p>Its syntax is <
|
2190
|
-
<p>The operator does prefix search with <
|
2191
|
-
records that contain a word that starts with <
|
2188
|
+
<span id="script-syntax-prefix-search-operator"></span><h3>7.12.2.9.2. Prefix search operator<a class="headerlink" href="#prefix-search-operator" title="Permalink to this headline">¶</a></h3>
|
2189
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@^</span> <span class="pre">value</span></code>.</p>
|
2190
|
+
<p>The operator does prefix search with <code class="docutils literal"><span class="pre">value</span></code>. Prefix search searches
|
2191
|
+
records that contain a word that starts with <code class="docutils literal"><span class="pre">value</span></code>.</p>
|
2192
2192
|
<p>You can use fast prefix search against a column. The column must be
|
2193
2193
|
indexed and index table must be patricia trie table
|
2194
|
-
(<
|
2195
|
-
(<
|
2196
|
-
<
|
2197
|
-
table. You don't need to index <
|
2194
|
+
(<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) or double array trie table
|
2195
|
+
(<code class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></code>). You can also use fast prefix search against
|
2196
|
+
<code class="docutils literal"><span class="pre">_key</span></code> pseudo column of patricia trie table or double array trie
|
2197
|
+
table. You don't need to index <code class="docutils literal"><span class="pre">_key</span></code>.</p>
|
2198
2198
|
<p>Prefix search can be used with other table types but it causes all
|
2199
2199
|
records scan. It's not problem for small records but it spends more
|
2200
2200
|
time for large records.</p>
|
@@ -2230,21 +2230,21 @@ time for large records.</p>
|
|
2230
2230
|
</pre></div>
|
2231
2231
|
</div>
|
2232
2232
|
<p>The expression matches records that contain a word that starts with
|
2233
|
-
<
|
2234
|
-
<
|
2233
|
+
<code class="docutils literal"><span class="pre">Goo</span></code> in <code class="docutils literal"><span class="pre">_key</span></code> pseudo column value. <code class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Senna</span></code> and
|
2234
|
+
<code class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Tritonn</span></code> are matched with the expression.</p>
|
2235
2235
|
</div>
|
2236
2236
|
<div class="section" id="suffix-search-operator">
|
2237
|
-
<span id="
|
2238
|
-
<p>Its syntax is <
|
2239
|
-
<p>This operator does suffix search with <
|
2240
|
-
searches records that contain a word that ends with <
|
2237
|
+
<span id="script-syntax-suffix-search-operator"></span><h3>7.12.2.9.3. Suffix search operator<a class="headerlink" href="#suffix-search-operator" title="Permalink to this headline">¶</a></h3>
|
2238
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@$</span> <span class="pre">value</span></code>.</p>
|
2239
|
+
<p>This operator does suffix search with <code class="docutils literal"><span class="pre">value</span></code>. Suffix search
|
2240
|
+
searches records that contain a word that ends with <code class="docutils literal"><span class="pre">value</span></code>.</p>
|
2241
2241
|
<p>You can use fast suffix search against a column. The column must be
|
2242
2242
|
indexed and index table must be patricia trie table
|
2243
|
-
(<
|
2244
|
-
suffix search against <
|
2245
|
-
(<
|
2246
|
-
index <
|
2247
|
-
suffix search instead of <
|
2243
|
+
(<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) with <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> flag. You can also use fast
|
2244
|
+
suffix search against <code class="docutils literal"><span class="pre">_key</span></code> pseudo column of patricia trie table
|
2245
|
+
(<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) with <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> flag. You don't need to
|
2246
|
+
index <code class="docutils literal"><span class="pre">_key</span></code>. We recommended that you use index column based fast
|
2247
|
+
suffix search instead of <code class="docutils literal"><span class="pre">_key</span></code> based fast suffix search. <code class="docutils literal"><span class="pre">_key</span></code>
|
2248
2248
|
based fast suffix search returns automatically registered
|
2249
2249
|
substrings. (TODO: write document about suffix search and link to it
|
2250
2250
|
from here.)</p>
|
@@ -2255,7 +2255,7 @@ as hiragana in Japanese. You cannot use fast suffix search for
|
|
2255
2255
|
ASCII character.</p>
|
2256
2256
|
</div>
|
2257
2257
|
<p>Suffix search can be used with other table types or patricia trie
|
2258
|
-
table without <
|
2258
|
+
table without <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> flag but it causes all records
|
2259
2259
|
scan. It's not problem for small records but it spends more time for
|
2260
2260
|
large records.</p>
|
2261
2261
|
<p>Here is a simple example. It uses fast suffix search for hiragana in
|
@@ -2312,25 +2312,25 @@ select Titles --query 'content:$んが'
|
|
2312
2312
|
# ]
|
2313
2313
|
</pre></div>
|
2314
2314
|
</div>
|
2315
|
-
<p>The expression matches records that have value that ends with <
|
2316
|
-
in <
|
2315
|
+
<p>The expression matches records that have value that ends with <code class="docutils literal"><span class="pre">んが</span></code>
|
2316
|
+
in <code class="docutils literal"><span class="pre">content</span></code> column value. <code class="docutils literal"><span class="pre">ぐるんが</span></code> and <code class="docutils literal"><span class="pre">むるんが</span></code> are matched
|
2317
2317
|
with the expression.</p>
|
2318
2318
|
</div>
|
2319
2319
|
<div class="section" id="near-search-operator">
|
2320
|
-
<span id="
|
2321
|
-
<p>Its syntax is <
|
2322
|
-
<p>The operator does near search with words <
|
2320
|
+
<span id="script-syntax-near-search-operator"></span><h3>7.12.2.9.4. Near search operator<a class="headerlink" href="#near-search-operator" title="Permalink to this headline">¶</a></h3>
|
2321
|
+
<p>Its syntax is <code 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></code>.</p>
|
2322
|
+
<p>The operator does near search with words <code class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span> <span class="pre">...</span></code>. Near
|
2323
2323
|
search searches records that contain the words and the words are
|
2324
|
-
appeared in the near distance. Near distance is always <
|
2324
|
+
appeared in the near distance. Near distance is always <code class="docutils literal"><span class="pre">10</span></code> for
|
2325
2325
|
now. The unit of near distance is the number of characters in N-gram
|
2326
2326
|
family tokenizers and the number of words in morphological analysis
|
2327
2327
|
family tokenizers.</p>
|
2328
|
-
<p>(TODO: Add a description about <
|
2328
|
+
<p>(TODO: Add a description about <code class="docutils literal"><span class="pre">TokenBigram</span></code> doesn't split ASCII
|
2329
2329
|
only word into tokens. So the unit for ASCII words with
|
2330
|
-
<
|
2330
|
+
<code class="docutils literal"><span class="pre">TokenBigram</span></code> is the number of words even if <code class="docutils literal"><span class="pre">TokenBigram</span></code> is a
|
2331
2331
|
N-gram family tokenizer.)</p>
|
2332
2332
|
<p>Note that an index column for full text search must be defined for
|
2333
|
-
<
|
2333
|
+
<code class="docutils literal"><span class="pre">column</span></code>.</p>
|
2334
2334
|
<p>Here is a simple example.</p>
|
2335
2335
|
<p>Execution example:</p>
|
2336
2336
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *N "I fast"' --output_columns content
|
@@ -2352,7 +2352,7 @@ N-gram family tokenizer.)</p>
|
|
2352
2352
|
# ]
|
2353
2353
|
# ],
|
2354
2354
|
# [
|
2355
|
-
# "I started to use
|
2355
|
+
# "I started to use Groonga. It's very fast!"
|
2356
2356
|
# ]
|
2357
2357
|
# ]
|
2358
2358
|
# ]
|
@@ -2378,37 +2378,37 @@ select Entries --filter 'content *N "also Really"' --output_co
|
|
2378
2378
|
# ]
|
2379
2379
|
# ],
|
2380
2380
|
# [
|
2381
|
-
# "I also started to use
|
2381
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!"
|
2382
2382
|
# ]
|
2383
2383
|
# ]
|
2384
2384
|
# ]
|
2385
2385
|
# ]
|
2386
2386
|
</pre></div>
|
2387
2387
|
</div>
|
2388
|
-
<p>The first expression matches records that contain <
|
2388
|
+
<p>The first expression matches records that contain <code class="docutils literal"><span class="pre">I</span></code> and <code class="docutils literal"><span class="pre">fast</span></code>
|
2389
2389
|
and the near distance of those words are in 10 words. So the record
|
2390
|
-
that its content is <
|
2391
|
-
<span class="pre">fast!</span> <span class="pre">...</span></
|
2390
|
+
that its content is <code 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>
|
2391
|
+
<span class="pre">fast!</span> <span class="pre">...</span></code> is matched. The number of words between <code class="docutils literal"><span class="pre">I</span></code> and <code class="docutils literal"><span class="pre">fast</span></code>
|
2392
2392
|
is just 10.</p>
|
2393
|
-
<p>The second expression matches records that contain <
|
2394
|
-
<
|
2395
|
-
the record that its content is <
|
2396
|
-
<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></
|
2397
|
-
<
|
2398
|
-
<p>The third expression matches records that contain <
|
2399
|
-
<
|
2400
|
-
the record that its content is <
|
2401
|
-
<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></
|
2402
|
-
<
|
2393
|
+
<p>The second expression matches records that contain <code class="docutils literal"><span class="pre">I</span></code> and
|
2394
|
+
<code class="docutils literal"><span class="pre">Really</span></code> and the near distance of those words are in 10 words. So
|
2395
|
+
the record that its content is <code 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>
|
2396
|
+
<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></code> is not matched. The number of words between
|
2397
|
+
<code class="docutils literal"><span class="pre">I</span></code> and <code class="docutils literal"><span class="pre">Really</span></code> is 11.</p>
|
2398
|
+
<p>The third expression matches records that contain <code class="docutils literal"><span class="pre">also</span></code> and
|
2399
|
+
<code class="docutils literal"><span class="pre">Really</span></code> and the near distance of those words are in 10 words. So
|
2400
|
+
the record that its content is <code 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>
|
2401
|
+
<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></code> is matched. The number of words between
|
2402
|
+
<code class="docutils literal"><span class="pre">also</span></code> and <code class="docutils literal"><span class="pre">Really</span></code> is 10.</p>
|
2403
2403
|
</div>
|
2404
2404
|
<div class="section" id="similar-search">
|
2405
|
-
<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>
|
2406
|
-
<p>Its syntax is <
|
2407
|
-
<p>The operator does similar search with document <
|
2405
|
+
<span id="script-syntax-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>
|
2406
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">*S</span> <span class="pre">"document"</span></code>.</p>
|
2407
|
+
<p>The operator does similar search with document <code class="docutils literal"><span class="pre">document</span></code>. Similar
|
2408
2408
|
search searches records that have similar content to
|
2409
|
-
<
|
2409
|
+
<code class="docutils literal"><span class="pre">document</span></code>.</p>
|
2410
2410
|
<p>Note that an index column for full text search must be defined for
|
2411
|
-
<
|
2411
|
+
<code class="docutils literal"><span class="pre">column</span></code>.</p>
|
2412
2412
|
<p>Here is a simple example.</p>
|
2413
2413
|
<p>Execution example:</p>
|
2414
2414
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *S "I migrated all Solr system!"' --output_columns content
|
@@ -2440,23 +2440,23 @@ search searches records that have similar content to
|
|
2440
2440
|
# ]
|
2441
2441
|
</pre></div>
|
2442
2442
|
</div>
|
2443
|
-
<p>The expression matches records that have similar content to <
|
2444
|
-
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></
|
2445
|
-
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">XXX</span> <span class="pre">system!</span></
|
2443
|
+
<p>The expression matches records that have similar content to <code class="docutils literal"><span class="pre">I</span>
|
2444
|
+
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></code>. In this case, records that have <code class="docutils literal"><span class="pre">I</span>
|
2445
|
+
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">XXX</span> <span class="pre">system!</span></code> content are matched.</p>
|
2446
2446
|
</div>
|
2447
2447
|
<div class="section" id="term-extract-operator">
|
2448
|
-
<span id="
|
2449
|
-
<p>Its syntax is <
|
2450
|
-
<p>The operator extracts terms from <
|
2451
|
-
registered as keys of the table of <
|
2452
|
-
<p>Note that the table must be patricia trie (<
|
2453
|
-
double array trie (<
|
2454
|
-
(<
|
2448
|
+
<span id="script-syntax-term-extract-operator"></span><h3>7.12.2.9.6. Term extract operator<a class="headerlink" href="#term-extract-operator" title="Permalink to this headline">¶</a></h3>
|
2449
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">_key</span> <span class="pre">*T</span> <span class="pre">"document"</span></code>.</p>
|
2450
|
+
<p>The operator extracts terms from <code class="docutils literal"><span class="pre">document</span></code>. Terms must be
|
2451
|
+
registered as keys of the table of <code class="docutils literal"><span class="pre">_key</span></code>.</p>
|
2452
|
+
<p>Note that the table must be patricia trie (<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) or
|
2453
|
+
double array trie (<code class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></code>). You can't use hash table
|
2454
|
+
(<code class="docutils literal"><span class="pre">TABLE_HASH_KEY</span></code>) and array (<code class="docutils literal"><span class="pre">TABLE_NO_KEY</span></code>) because they don't
|
2455
2455
|
support longest common prefix search. Longest common prefix search is
|
2456
2456
|
used to implement the operator.</p>
|
2457
2457
|
<p>Here is a simple example.</p>
|
2458
2458
|
<p>Execution example:</p>
|
2459
|
-
<div class="highlight-none"><div class="highlight"><pre>table_create Words TABLE_PAT_KEY
|
2459
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Words TABLE_PAT_KEY ShortText --normalizer NormalizerAuto
|
2460
2460
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
2461
2461
|
load --table Words
|
2462
2462
|
[
|
@@ -2495,26 +2495,26 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2495
2495
|
# ]
|
2496
2496
|
</pre></div>
|
2497
2497
|
</div>
|
2498
|
-
<p>The expression extrcts terms that included in document <
|
2499
|
-
<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></
|
2500
|
-
|
2501
|
-
if it is loaded as <
|
2502
|
-
are also normalized.</p>
|
2498
|
+
<p>The expression extrcts terms that included in document <code class="docutils literal"><span class="pre">Groonga</span> <span class="pre">is</span>
|
2499
|
+
<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></code>. In this case, <code class="docutils literal"><span class="pre">NormalizerAuto</span></code>
|
2500
|
+
normalizer is specified to <code class="docutils literal"><span class="pre">Words</span></code>. So <code class="docutils literal"><span class="pre">Groonga</span></code> can be extracted
|
2501
|
+
even if it is loaded as <code class="docutils literal"><span class="pre">groonga</span></code> into <code class="docutils literal"><span class="pre">Words</span></code>. All of extracted
|
2502
|
+
terms are also normalized.</p>
|
2503
2503
|
</div>
|
2504
2504
|
<div class="section" id="regular-expression-operator">
|
2505
|
-
<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
|
+
<span id="script-syntax-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>
|
2506
2506
|
<div class="versionadded">
|
2507
2507
|
<p><span class="versionmodified">New in version 5.0.1.</span></p>
|
2508
2508
|
</div>
|
2509
|
-
<p>Its syntax is <
|
2509
|
+
<p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@~</span> <span class="pre">"pattern"</span></code>.</p>
|
2510
2510
|
<p>The operator searches records by the regular expression
|
2511
|
-
<
|
2511
|
+
<code class="docutils literal"><span class="pre">pattern</span></code>. If a record's <code class="docutils literal"><span class="pre">column</span></code> value is matched to <code class="docutils literal"><span class="pre">pattern</span></code>,
|
2512
2512
|
the record is matched.</p>
|
2513
|
-
<p><
|
2513
|
+
<p><code class="docutils literal"><span class="pre">pattern</span></code> must be valid regular expression syntax. See
|
2514
2514
|
<a class="reference internal" href="../regular_expression.html"><em>Regular expression</em></a> about regular expression syntax
|
2515
2515
|
details.</p>
|
2516
|
-
<p>The following example uses <
|
2517
|
-
<
|
2516
|
+
<p>The following example uses <code class="docutils literal"><span class="pre">.roonga</span></code> as pattern. It matches
|
2517
|
+
<code class="docutils literal"><span class="pre">Groonga</span></code>, <code class="docutils literal"><span class="pre">Mroonga</span></code> and so on.</p>
|
2518
2518
|
<p>Execution example:</p>
|
2519
2519
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @~ ".roonga"'
|
2520
2520
|
# [
|
@@ -2575,7 +2575,7 @@ very fast. See <a class="reference internal" href="../regular_expression.html"><
|
|
2575
2575
|
</div>
|
2576
2576
|
</div>
|
2577
2577
|
</div>
|
2578
|
-
<div class="sphinxsidebar">
|
2578
|
+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
2579
2579
|
<div class="sphinxsidebarwrapper">
|
2580
2580
|
<h3><a href="../../index.html">Table Of Contents</a></h3>
|
2581
2581
|
<ul>
|
@@ -2670,12 +2670,14 @@ very fast. See <a class="reference internal" href="../regular_expression.html"><
|
|
2670
2670
|
<h4>Next topic</h4>
|
2671
2671
|
<p class="topless"><a href="../regular_expression.html"
|
2672
2672
|
title="next chapter">7.13. Regular expression</a></p>
|
2673
|
-
<
|
2674
|
-
|
2675
|
-
<
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2673
|
+
<div role="note" aria-label="source link">
|
2674
|
+
<h3>This Page</h3>
|
2675
|
+
<ul class="this-page-menu">
|
2676
|
+
<li><a href="../../_sources/reference/grn_expr/script_syntax.txt"
|
2677
|
+
rel="nofollow">Show Source</a></li>
|
2678
|
+
</ul>
|
2679
|
+
</div>
|
2680
|
+
<div id="searchbox" style="display: none" role="search">
|
2679
2681
|
<h3>Quick search</h3>
|
2680
2682
|
<form class="search" action="../../search.html" method="get">
|
2681
2683
|
<input type="text" name="q" />
|
@@ -2692,7 +2694,7 @@ very fast. See <a class="reference internal" href="../regular_expression.html"><
|
|
2692
2694
|
</div>
|
2693
2695
|
<div class="clearer"></div>
|
2694
2696
|
</div>
|
2695
|
-
<div class="related">
|
2697
|
+
<div class="related" role="navigation" aria-label="related navigation">
|
2696
2698
|
<h3>Navigation</h3>
|
2697
2699
|
<ul>
|
2698
2700
|
<li class="right" style="margin-right: 10px">
|
@@ -2704,12 +2706,12 @@ very fast. See <a class="reference internal" href="../regular_expression.html"><
|
|
2704
2706
|
<li class="right" >
|
2705
2707
|
<a href="query_syntax.html" title="7.12.1. Query syntax"
|
2706
2708
|
>previous</a> |</li>
|
2707
|
-
<li><a href="../../index.html">Groonga v5.0.
|
2708
|
-
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
2709
|
-
<li><a href="../grn_expr.html" >7.12. grn_expr</a> »</li>
|
2709
|
+
<li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7 documentation</a> »</li>
|
2710
|
+
<li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
|
2711
|
+
<li class="nav-item nav-item-2"><a href="../grn_expr.html" >7.12. grn_expr</a> »</li>
|
2710
2712
|
</ul>
|
2711
2713
|
</div>
|
2712
|
-
<div class="footer">
|
2714
|
+
<div class="footer" role="contentinfo">
|
2713
2715
|
© Copyright 2009-2015, Brazil, Inc.
|
2714
2716
|
</div>
|
2715
2717
|
</body>
|