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. スクリプト構文 — Groonga v5.0.
|
10
|
+
<title>7.12.2. スクリプト構文 — Groonga v5.0.6-226-gd7da7e7ドキュメント</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
|
@@ -26,12 +26,12 @@
|
|
26
26
|
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
27
27
|
<script type="text/javascript" src="../../_static/translations.js"></script>
|
28
28
|
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
|
29
|
-
<link rel="top" title="Groonga v5.0.
|
29
|
+
<link rel="top" title="Groonga v5.0.6-226-gd7da7e7ドキュメント" href="../../index.html" />
|
30
30
|
<link rel="up" title="7.12. grn_expr" href="../grn_expr.html" />
|
31
31
|
<link rel="next" title="7.13. 正規表現" href="../regular_expression.html" />
|
32
32
|
<link rel="prev" title="7.12.1. クエリー構文" href="query_syntax.html" />
|
33
33
|
</head>
|
34
|
-
<body>
|
34
|
+
<body role="document">
|
35
35
|
<div class="header">
|
36
36
|
<h1 class="title">
|
37
37
|
<a id="top-link" href="../../index.html">
|
@@ -49,7 +49,7 @@
|
|
49
49
|
</div>
|
50
50
|
|
51
51
|
|
52
|
-
<div class="related">
|
52
|
+
<div class="related" role="navigation" aria-label="related navigation">
|
53
53
|
<h3>ナビゲーション</h3>
|
54
54
|
<ul>
|
55
55
|
<li class="right" style="margin-right: 10px">
|
@@ -61,21 +61,21 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="query_syntax.html" title="7.12.1. クエリー構文"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../../index.html">Groonga v5.0.
|
65
|
-
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
66
|
-
<li><a href="../grn_expr.html" accesskey="U">7.12. grn_expr</a> »</li>
|
64
|
+
<li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7ドキュメント</a> »</li>
|
65
|
+
<li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
66
|
+
<li class="nav-item nav-item-2"><a href="../grn_expr.html" accesskey="U">7.12. grn_expr</a> »</li>
|
67
67
|
</ul>
|
68
68
|
</div>
|
69
69
|
|
70
70
|
<div class="document">
|
71
71
|
<div class="documentwrapper">
|
72
72
|
<div class="bodywrapper">
|
73
|
-
<div class="body">
|
73
|
+
<div class="body" role="main">
|
74
74
|
|
75
75
|
<div class="section" id="script-syntax">
|
76
76
|
<h1>7.12.2. スクリプト構文<a class="headerlink" href="#script-syntax" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
|
-
<p>スクリプト構文は複雑な検索条件を指定するための構文です。この構文はECMAScriptに似ています。例えば、 <
|
78
|
-
<p>スクリプト構文はECMAScriptの構文と完全に互換性があるわけではありません。例えば、 <
|
77
|
+
<p>スクリプト構文は複雑な検索条件を指定するための構文です。この構文はECMAScriptに似ています。例えば、 <code class="docutils literal"><span class="pre">_key</span> <span class="pre">==</span> <span class="pre">"book"</span></code> は <code class="docutils literal"><span class="pre">_key</span></code> の値が <code class="docutils literal"><span class="pre">"book"</span></code> のレコードを検索するという意味です。 <a class="reference internal" href="query_syntax.html"><em>クエリー構文</em></a> ではすべての値は文字列でしたが、スクリプト構文では値に型があります。例えば、 <code class="docutils literal"><span class="pre">"book"</span></code> は文字列で <code class="docutils literal"><span class="pre">1</span></code> は整数で、 <code class="docutils literal"><span class="pre">TokenBigram</span></code> は <code class="docutils literal"><span class="pre">TokenBigram</span></code> という名前のオブジェクトです。</p>
|
78
|
+
<p>スクリプト構文はECMAScriptの構文と完全に互換性があるわけではありません。例えば、 <code class="docutils literal"><span class="pre">if</span></code> 制御文や <code class="docutils literal"><span class="pre">for</span></code> 繰り返し文や変数定義文といった文をサポートしていません。関数定義もサポートしていません。しかし、独自の演算子を追加しています。独自の演算子はECMAScriptの構文を説明した後に説明します。</p>
|
79
79
|
<div class="section" id="security">
|
80
80
|
<span id="script-syntax-security"></span><h2>7.12.2.1. セキュリティー<a class="headerlink" href="#security" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
81
81
|
<p>セキュリティーの観点からユーザーからの入力をそのままGroongaに渡すべきではありません。悪意のあるユーザーがそのユーザーには参照できてはいけないレコードを取得するクエリーを入力するかもしれないからです。</p>
|
@@ -89,26 +89,26 @@ select_options = {
|
|
89
89
|
groonga_client.select(select_options)
|
90
90
|
</pre></div>
|
91
91
|
</div>
|
92
|
-
<p><
|
92
|
+
<p><code class="docutils literal"><span class="pre">user_input</span></code> はユーザーからの入力です。入力が <code class="docutils literal"><span class="pre">query</span></code> だった場合は構築された <a class="reference internal" href="../commands/select.html#select-filter"><span>filter</span></a> 引数は次のようになります。:</p>
|
93
93
|
<div class="highlight-none"><div class="highlight"><pre>column @ "query"
|
94
94
|
</pre></div>
|
95
95
|
</div>
|
96
|
-
<p>もし、入力が <
|
96
|
+
<p>もし、入力が <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> だった場合は構築された <a class="reference internal" href="../commands/select.html#select-filter"><span>filter</span></a> 引数は次のようになります。:</p>
|
97
97
|
<div class="highlight-none"><div class="highlight"><pre>column @ "x" || true || ""
|
98
98
|
</pre></div>
|
99
99
|
</div>
|
100
100
|
<p>このクエリーはすべてのレコードにマッチします。このユーザーはデータベース中のすべてのレコードを取得するでしょう。このユーザーには悪意があったのかもしれません。</p>
|
101
|
-
<p>ユーザーからの入力では値だけを受け取るようにする方がよいです。これは、ユーザーからの入力には <
|
101
|
+
<p>ユーザーからの入力では値だけを受け取るようにする方がよいです。これは、ユーザーからの入力には <code class="docutils literal"><span class="pre">@</span></code> や <code class="docutils literal"><span class="pre">&&</span></code> のような演算子を受け付けないようにするということです。もし、演算子も受け付けるようにするなら、ユーザーは悪意のあるクエリーを作ることができます。</p>
|
102
102
|
<p>ユーザーの入力が値だけなら、入力された値をエスケープすることで悪意のあるクエリーを防ぐことができます。以下はユーザーの入力をどのようにエスケープすればよいかのリストです。</p>
|
103
103
|
<blockquote>
|
104
104
|
<div><ul class="simple">
|
105
|
-
<li><p class="first">真の値: <
|
105
|
+
<li><p class="first">真の値: <code class="docutils literal"><span class="pre">true</span></code> に変換してください。</p>
|
106
106
|
</li>
|
107
|
-
<li><p class="first">負の値: <
|
107
|
+
<li><p class="first">負の値: <code class="docutils literal"><span class="pre">false</span></code> に変換してください。</p>
|
108
108
|
</li>
|
109
|
-
<li><p class="first">数値: <a class="reference internal" href="#script-syntax-literal-integer"><
|
109
|
+
<li><p class="first">数値: <a class="reference internal" href="#script-syntax-literal-integer"><span>整数</span></a> または <a class="reference internal" href="#script-syntax-literal-float"><span>浮動小数点数</span></a> に変換してください。例えば、 <code class="docutils literal"><span class="pre">1.2</span></code> 、 <code class="docutils literal"><span class="pre">-10</span></code> 、 <code class="docutils literal"><span class="pre">314e-2</span></code> といった具合です。</p>
|
110
110
|
</li>
|
111
|
-
<li><p class="first">文字列:文字列中の <
|
111
|
+
<li><p class="first">文字列:文字列中の <code class="docutils literal"><span class="pre">"</span></code> を <code class="docutils literal"><span class="pre">\"</span></code> で、 <code class="docutils literal"><span class="pre">\</span></code> を <code class="docutils literal"><span class="pre">\\</span></code> で置換してください。その後、置換した文字列を <code class="docutils literal"><span class="pre">"</span></code> で囲んでください。例えば、 <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> は <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> に変換します。</p>
|
112
112
|
</li>
|
113
113
|
</ul>
|
114
114
|
</div></blockquote>
|
@@ -123,7 +123,7 @@ column_create Entries content COLUMN_SCALAR Text
|
|
123
123
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
124
124
|
column_create Entries n_likes COLUMN_SCALAR UInt32
|
125
125
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
126
|
-
table_create Terms TABLE_PAT_KEY
|
126
|
+
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
|
127
127
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
128
128
|
column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
129
129
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
@@ -135,10 +135,10 @@ load --table Entries
|
|
135
135
|
"content": "Welcome! This is my first post!",
|
136
136
|
"n_likes": 5},
|
137
137
|
{"_key": "Groonga",
|
138
|
-
"content": "I started to use
|
138
|
+
"content": "I started to use Groonga. It's very fast!",
|
139
139
|
"n_likes": 10},
|
140
140
|
{"_key": "Mroonga",
|
141
|
-
"content": "I also started to use
|
141
|
+
"content": "I also started to use Mroonga. It's also very fast! Really fast!",
|
142
142
|
"n_likes": 15},
|
143
143
|
{"_key": "Good-bye Senna",
|
144
144
|
"content": "I migrated all Senna system!",
|
@@ -150,33 +150,33 @@ load --table Entries
|
|
150
150
|
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
151
151
|
</pre></div>
|
152
152
|
</div>
|
153
|
-
<p>ブログエントリ用の <
|
154
|
-
<p><
|
153
|
+
<p>ブログエントリ用の <code class="docutils literal"><span class="pre">Entries</span></code> テーブルがあります。各エントリはタイトルと内容と「いいね!」数を持っています。タイトルは <code class="docutils literal"><span class="pre">Entries</span></code> のキーとします。内容は <code class="docutils literal"><span class="pre">Entries.content</span></code> カラムの値とします。「いいね!」数は <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> カラムの値とします。</p>
|
154
|
+
<p><code class="docutils literal"><span class="pre">Entries._key</span></code> カラムと <code class="docutils literal"><span class="pre">Entries.content</span></code> カラムには <code class="docutils literal"><span class="pre">TokenBigram</span></code> トークナイザーを使ったインデックスを作成します。そのため、 <code class="docutils literal"><span class="pre">Entries._key</span></code> と <code class="docutils literal"><span class="pre">Entries.content</span></code> は両方とも全文検索できます。</p>
|
155
155
|
<p>これで例を示すためのスキーマとデータの準備ができました。</p>
|
156
156
|
</div>
|
157
157
|
<div class="section" id="literals">
|
158
158
|
<span id="script-syntax-literals"></span><h2>7.12.2.3. リテラル<a class="headerlink" href="#literals" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
159
159
|
<div class="section" id="integer">
|
160
160
|
<span id="script-syntax-literal-integer"></span><h3>7.12.2.3.1. 整数<a class="headerlink" href="#integer" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
161
|
-
<p>整数リテラルは <
|
162
|
-
<p>整数リテラルの最大値は <
|
161
|
+
<p>整数リテラルは <code class="docutils literal"><span class="pre">1234567890</span></code> のような <code class="docutils literal"><span class="pre">0</span></code> から <code class="docutils literal"><span class="pre">9</span></code> の並びです。 <code class="docutils literal"><span class="pre">+29</span></code> や <code class="docutils literal"><span class="pre">-29</span></code> のように符号として最初に <code class="docutils literal"><span class="pre">+</span></code> または <code class="docutils literal"><span class="pre">-</span></code> をつけることができます。整数リテラルは10進数です。8進数や16進数などは使えません。</p>
|
162
|
+
<p>整数リテラルの最大値は <code class="docutils literal"><span class="pre">9223372036854775807</span></code> ( <code class="docutils literal"><span class="pre">=</span> <span class="pre">2</span> <span class="pre">**</span> <span class="pre">63</span> <span class="pre">-</span> <span class="pre">1</span></code> )です。最小値は <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>
|
163
163
|
</div>
|
164
164
|
<div class="section" id="float">
|
165
165
|
<span id="script-syntax-literal-float"></span><h3>7.12.2.3.2. 浮動小数点数<a class="headerlink" href="#float" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
166
|
-
<p>浮動小数点数リテラルは <
|
166
|
+
<p>浮動小数点数リテラルは <code class="docutils literal"><span class="pre">3.14</span></code> のように、まず <code class="docutils literal"><span class="pre">0</span></code> から <code class="docutils literal"><span class="pre">9</span></code> 、次に <code class="docutils literal"><span class="pre">.</span></code> 、最後に <code class="docutils literal"><span class="pre">0</span></code> から <code class="docutils literal"><span class="pre">9</span></code> という並びです。 <code class="docutils literal"><span class="pre">+3.14</span></code> や <code class="docutils literal"><span class="pre">-3.14</span></code> のように符号として最初に <code class="docutils literal"><span class="pre">+</span></code> または <code class="docutils literal"><span class="pre">-</span></code> をつけることができます。 <code class="docutils literal"><span class="pre">${基数}e${指数}</span></code> や <code class="docutils literal"><span class="pre">${基数}E${指数}</span></code> というフォーマットもサポートしています。例えば、 <code class="docutils literal"><span class="pre">314e-2</span></code> は <code class="docutils literal"><span class="pre">3.14</span></code> と同じです。</p>
|
167
167
|
</div>
|
168
168
|
<div class="section" id="string">
|
169
169
|
<span id="script-syntax-literal-string"></span><h3>7.12.2.3.3. 文字列<a class="headerlink" href="#string" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
170
|
-
<p>文字列リテラルは <
|
171
|
-
<p>文字列エンコーディングはデータベースのエンコーディングと合わせなければいけません。デフォルトのエンコーディングはUTF-8です。これは configure の <
|
170
|
+
<p>文字列リテラルは <code class="docutils literal"><span class="pre">"..."</span></code> です。リテラル中の <code class="docutils literal"><span class="pre">"</span></code> は <code class="docutils literal"><span class="pre">\"</span></code> というように <code class="docutils literal"><span class="pre">\</span></code> を前につけてエスケープします。例えば、 <code class="docutils literal"><span class="pre">"Say</span> <span class="pre">\"Hello!\"."</span></code> は <code class="docutils literal"><span class="pre">Say</span> <span class="pre">"Hello!".</span></code> という文字列のリテラルです。</p>
|
171
|
+
<p>文字列エンコーディングはデータベースのエンコーディングと合わせなければいけません。デフォルトのエンコーディングはUTF-8です。これは configure の <code class="docutils literal"><span class="pre">--with-default-encoding</span></code> オプションや <a class="reference internal" href="../executables/groonga.html"><em>groonga executable file</em></a> の <code class="docutils literal"><span class="pre">--encodiong</span></code> などで変更できます。</p>
|
172
172
|
</div>
|
173
173
|
<div class="section" id="boolean">
|
174
174
|
<span id="script-syntax-literal-boolean"></span><h3>7.12.2.3.4. 真偽値<a class="headerlink" href="#boolean" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
175
|
-
<p>真偽値のリテラルは <
|
175
|
+
<p>真偽値のリテラルは <code class="docutils literal"><span class="pre">true</span></code> と <code class="docutils literal"><span class="pre">false</span></code> です。 <code class="docutils literal"><span class="pre">true</span></code> は真という意味で、 <code class="docutils literal"><span class="pre">false</span></code> は偽という意味です。</p>
|
176
176
|
</div>
|
177
177
|
<div class="section" id="null">
|
178
178
|
<span id="script-syntax-literal-null"></span><h3>7.12.2.3.5. NULL<a class="headerlink" href="#null" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
179
|
-
<p>NULLのリテラルは <
|
179
|
+
<p>NULLのリテラルは <code class="docutils literal"><span class="pre">null</span></code> です。GroongaはNULL値をサポートしてませんが、NULLリテラルをサポートしています。</p>
|
180
180
|
</div>
|
181
181
|
<div class="section" id="time">
|
182
182
|
<span id="script-syntax-literal-time"></span><h3>7.12.2.3.6. 時間<a class="headerlink" href="#time" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
@@ -185,9 +185,9 @@ load --table Entries
|
|
185
185
|
<p class="last">これはgroonga独自の記法です。</p>
|
186
186
|
</div>
|
187
187
|
<p>時間のリテラルはありません。文字列での時間記法、整数での時間記法または浮動小数点数での時間記法を使ってください。</p>
|
188
|
-
<p>文字列での時間記法は <
|
189
|
-
<p>整数での時間記法はUTC時間で1970年1月1日0時0分0秒からの経過秒数を使います。この時間はPOSIX時間とも呼ばれています。例えば、 <
|
190
|
-
<p>浮動小数点数での時間記法はUTC時間で1970年1月1日0時0分0秒からの経過秒数と経過マイクロ秒数を使います。例えば、 <
|
188
|
+
<p>文字列での時間記法は <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-MM-DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></code> です。 <code class="docutils literal"><span class="pre">YYYY</span></code> は西暦、 <code class="docutils literal"><span class="pre">MM</span></code> は月、 <code class="docutils literal"><span class="pre">DD</span></code> は日、 <code class="docutils literal"><span class="pre">hh</span></code> は時、 <code class="docutils literal"><span class="pre">mm</span></code> は分、 <code class="docutils literal"><span class="pre">ss</span></code> は秒、 <code class="docutils literal"><span class="pre">uuuuuu</span></code> はマイクロ秒です。ローカル時間です。例えば、 <code class="docutils literal"><span class="pre">"2012/07/23</span> <span class="pre">02:41:10.436218"</span></code> はISO 8601形式では <code class="docutils literal"><span class="pre">2012-07-23T02:41:10.436218</span></code> になります。</p>
|
189
|
+
<p>整数での時間記法はUTC時間で1970年1月1日0時0分0秒からの経過秒数を使います。この時間はPOSIX時間とも呼ばれています。例えば、 <code class="docutils literal"><span class="pre">1343011270</span></code> はISO 8601形式では <code class="docutils literal"><span class="pre">2012-07-23T02:41:10Z</span></code> になります。</p>
|
190
|
+
<p>浮動小数点数での時間記法はUTC時間で1970年1月1日0時0分0秒からの経過秒数と経過マイクロ秒数を使います。例えば、 <code class="docutils literal"><span class="pre">1343011270.436218</span></code> はISO 8601形式では <code class="docutils literal"><span class="pre">2012-07-23T02:41:10.346218Z</span></code> になります。</p>
|
191
191
|
</div>
|
192
192
|
<div class="section" id="geo-point">
|
193
193
|
<span id="script-syntax-literal-geo-point"></span><h3>7.12.2.3.7. 座標値<a class="headerlink" href="#geo-point" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
@@ -199,31 +199,31 @@ load --table Entries
|
|
199
199
|
<p>文字列での座標値記法には以下のパターンがあります。</p>
|
200
200
|
<blockquote>
|
201
201
|
<div><ul class="simple">
|
202
|
-
<li><p class="first"><
|
202
|
+
<li><p class="first"><code class="docutils literal"><span class="pre">"ミリ秒表記の緯度xミリ秒表記の経度"</span></code></p>
|
203
203
|
</li>
|
204
|
-
<li><p class="first"><
|
204
|
+
<li><p class="first"><code class="docutils literal"><span class="pre">"ミリ秒表記の緯度,ミリ秒表記の経度"</span></code></p>
|
205
205
|
</li>
|
206
|
-
<li><p class="first"><
|
206
|
+
<li><p class="first"><code class="docutils literal"><span class="pre">"度数表記の緯度x度数表記の経度"</span></code></p>
|
207
207
|
</li>
|
208
|
-
<li><p class="first"><
|
208
|
+
<li><p class="first"><code class="docutils literal"><span class="pre">"度数表記の緯度,度数表記の経度"</span></code></p>
|
209
209
|
</li>
|
210
210
|
</ul>
|
211
211
|
</div></blockquote>
|
212
|
-
<p><
|
212
|
+
<p><code class="docutils literal"><span class="pre">x</span></code> と <code class="docutils literal"><span class="pre">,</span></code> のどちらも区切り文字として使えます。緯度と経度はミリ秒または度数で指定します。</p>
|
213
213
|
</div>
|
214
214
|
<div class="section" id="array">
|
215
215
|
<span id="script-syntax-literal-array"></span><h3>7.12.2.3.8. 配列<a class="headerlink" href="#array" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
216
|
-
<p>配列リテラルは <
|
216
|
+
<p>配列リテラルは <code class="docutils literal"><span class="pre">[element1,</span> <span class="pre">element2,</span> <span class="pre">...]</span></code> です。</p>
|
217
217
|
</div>
|
218
218
|
<div class="section" id="object-literal">
|
219
219
|
<span id="script-syntax-literal-object"></span><h3>7.12.2.3.9. オブジェクトリテラル<a class="headerlink" href="#object-literal" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
220
|
-
<p>オブジェクトのリテラルは <
|
220
|
+
<p>オブジェクトのリテラルは <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はまだオブジェクトリテラルをサポートしていません。</p>
|
221
221
|
</div>
|
222
222
|
</div>
|
223
223
|
<div class="section" id="control-syntaxes">
|
224
224
|
<h2>7.12.2.4. 制御構文<a class="headerlink" href="#control-syntaxes" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
225
|
-
<p>スクリプト構文は文をサポートしていません。そのため、 <
|
226
|
-
<p><
|
225
|
+
<p>スクリプト構文は文をサポートしていません。そのため、 <code class="docutils literal"><span class="pre">if</span></code> のような制御文を使うことはできません。制御用の構文は <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> 式だけ使うことができます。</p>
|
226
|
+
<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> は <code class="docutils literal"><span class="pre">A</span></code> が真なら <code class="docutils literal"><span class="pre">B</span></code> を返して、そうでなかったら <code class="docutils literal"><span class="pre">C</span></code> を返します。</p>
|
227
227
|
<p>以下は簡単な使用例です。</p>
|
228
228
|
<p>実行例:</p>
|
229
229
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (_id == 1 ? 5 : 3)'
|
@@ -279,12 +279,12 @@ load --table Entries
|
|
279
279
|
# ]
|
280
280
|
</pre></div>
|
281
281
|
</div>
|
282
|
-
<p>この式は <
|
282
|
+
<p>この式は <code class="docutils literal"><span class="pre">_id</span></code> カラムの値が <code class="docutils literal"><span class="pre">1</span></code> で <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">5</span></code> または <code class="docutils literal"><span class="pre">_id</span></code> カラムの値が <code class="docutils literal"><span class="pre">1</span></code> ではなく <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">3</span></code> のレコードにマッチします。</p>
|
283
283
|
</div>
|
284
284
|
<div class="section" id="grouping">
|
285
285
|
<h2>7.12.2.5. グループ化<a class="headerlink" href="#grouping" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
286
|
-
<p>構文は <
|
287
|
-
<p><
|
286
|
+
<p>構文は <code class="docutils literal"><span class="pre">(...)</span></code> です。 <code class="docutils literal"><span class="pre">...</span></code> はカンマ区切りの式のリストです。</p>
|
287
|
+
<p><code class="docutils literal"><span class="pre">(...)</span></code> は1つ以上の式をグループ化します。グループ化された式は1つの式として処理されます。 <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> は <code class="docutils literal"><span class="pre">a</span></code> と <code class="docutils literal"><span class="pre">b</span></code> の両方がマッチするか、 <code class="docutils literal"><span class="pre">c</span></code> がマッチすれば式全体がマッチする、という意味になります。 <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> は <code class="docutils literal"><span class="pre">a</span></code> がマッチして <code class="docutils literal"><span class="pre">b</span></code> と <code class="docutils literal"><span class="pre">c</span></code> はどちらか一方がマッチすれば式全体がマッチする、という意味になります。</p>
|
288
288
|
<p>以下は簡単な使用例です。</p>
|
289
289
|
<p>実行例:</p>
|
290
290
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 5 && content @ "senna" || content @ "fast"'
|
@@ -326,13 +326,13 @@ load --table Entries
|
|
326
326
|
# [
|
327
327
|
# 2,
|
328
328
|
# "Groonga",
|
329
|
-
# "I started to use
|
329
|
+
# "I started to use Groonga. It's very fast!",
|
330
330
|
# 10
|
331
331
|
# ],
|
332
332
|
# [
|
333
333
|
# 3,
|
334
334
|
# "Mroonga",
|
335
|
-
# "I also started to use
|
335
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
336
336
|
# 15
|
337
337
|
# ]
|
338
338
|
# ]
|
@@ -379,13 +379,13 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
379
379
|
# ]
|
380
380
|
</pre></div>
|
381
381
|
</div>
|
382
|
-
<p>最初の式はグループ化していません。この式は <
|
383
|
-
<p>2番目の式はグループ化しています。この式は <
|
382
|
+
<p>最初の式はグループ化していません。この式は <code class="docutils literal"><span class="pre">n_likes</span> <span class="pre"><</span> <span class="pre">5</span></code> と <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> の両方がマッチするか <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> がマッチするレコードにマッチします。</p>
|
383
|
+
<p>2番目の式はグループ化しています。この式は <code class="docutils literal"><span class="pre">n_likes</span> <span class="pre"><</span> <span class="pre">5</span></code> にマッチして、 <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> と <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> は少なくともどちらか一方にマッチするレコードにマッチします。</p>
|
384
384
|
</div>
|
385
385
|
<div class="section" id="function-call">
|
386
386
|
<h2>7.12.2.6. 関数呼び出し<a class="headerlink" href="#function-call" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
387
|
-
<p>構文は <
|
388
|
-
<p><
|
387
|
+
<p>構文は <code class="docutils literal"><span class="pre">name(arugment1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code> です。</p>
|
388
|
+
<p><code class="docutils literal"><span class="pre">name(argument1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code> は <code class="docutils literal"><span class="pre">name</span></code> という関数を引数 <code class="docutils literal"><span class="pre">argument1</span></code>, <code class="docutils literal"><span class="pre">argument2</span></code>, <code class="docutils literal"><span class="pre">...</span></code> で呼び出します。</p>
|
389
389
|
<p>利用可能な関数の一覧は <a class="reference internal" href="../function.html"><em>関数</em></a> を参照してください。</p>
|
390
390
|
<p>以下は簡単な使用例です。</p>
|
391
391
|
<p>実行例:</p>
|
@@ -422,13 +422,13 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
422
422
|
# [
|
423
423
|
# 2,
|
424
424
|
# "Groonga",
|
425
|
-
# "I started to use
|
425
|
+
# "I started to use Groonga. It's very fast!",
|
426
426
|
# 10
|
427
427
|
# ],
|
428
428
|
# [
|
429
429
|
# 3,
|
430
430
|
# "Mroonga",
|
431
|
-
# "I also started to use
|
431
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
432
432
|
# 15
|
433
433
|
# ]
|
434
434
|
# ]
|
@@ -436,7 +436,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
436
436
|
# ]
|
437
437
|
</pre></div>
|
438
438
|
</div>
|
439
|
-
<p>この式は <a class="reference internal" href="../functions/edit_distance.html"><em>edit_distance</em></a> を使っています。この式は <
|
439
|
+
<p>この式は <a class="reference internal" href="../functions/edit_distance.html"><em>edit_distance</em></a> を使っています。この式は <code class="docutils literal"><span class="pre">_key</span></code> カラムの値が <code class="docutils literal"><span class="pre">"Groonga"</span></code> に似ているレコードにマッチします。 <code class="docutils literal"><span class="pre">"Groonga"</span></code> との類似度は編集距離で計算します。編集距離が1文字以下なら似ているとします。この場合は <code class="docutils literal"><span class="pre">"Groonga"</span></code> と <code class="docutils literal"><span class="pre">"Mroonga"</span></code> が似ている値です。</p>
|
440
440
|
</div>
|
441
441
|
<div class="section" id="basic-operators">
|
442
442
|
<h2>7.12.2.7. 基本的な演算子<a class="headerlink" href="#basic-operators" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
@@ -446,8 +446,8 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
446
446
|
<p>以下は算術演算子の説明です。</p>
|
447
447
|
<div class="section" id="addition-operator">
|
448
448
|
<h4>7.12.2.7.1.1. 加算演算子<a class="headerlink" href="#addition-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
449
|
-
<p>構文は <
|
450
|
-
<p>この演算子は <
|
449
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">+</span> <span class="pre">number2</span></code> です。</p>
|
450
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> と <code class="docutils literal"><span class="pre">number2</span></code> を足した結果を返します。</p>
|
451
451
|
<p>以下は簡単な使用例です。</p>
|
452
452
|
<p>実行例:</p>
|
453
453
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 10 + 5'
|
@@ -483,7 +483,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
483
483
|
# [
|
484
484
|
# 3,
|
485
485
|
# "Mroonga",
|
486
|
-
# "I also started to use
|
486
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
487
487
|
# 15
|
488
488
|
# ]
|
489
489
|
# ]
|
@@ -491,12 +491,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
491
491
|
# ]
|
492
492
|
</pre></div>
|
493
493
|
</div>
|
494
|
-
<p>この式は <
|
494
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
495
495
|
</div>
|
496
496
|
<div class="section" id="subtraction-operator">
|
497
497
|
<h4>7.12.2.7.1.2. 減算演算子<a class="headerlink" href="#subtraction-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
498
|
-
<p>構文は <
|
499
|
-
<p>この演算子は <
|
498
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">-</span> <span class="pre">number2</span></code> です。</p>
|
499
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number2</span></code> から <code class="docutils literal"><span class="pre">number1</span></code> を引いた結果を返します。</p>
|
500
500
|
<p>以下は簡単な使用例です。</p>
|
501
501
|
<p>実行例:</p>
|
502
502
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 20 - 5'
|
@@ -532,7 +532,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
532
532
|
# [
|
533
533
|
# 3,
|
534
534
|
# "Mroonga",
|
535
|
-
# "I also started to use
|
535
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
536
536
|
# 15
|
537
537
|
# ]
|
538
538
|
# ]
|
@@ -540,12 +540,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
540
540
|
# ]
|
541
541
|
</pre></div>
|
542
542
|
</div>
|
543
|
-
<p>この式は <
|
543
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
544
544
|
</div>
|
545
545
|
<div class="section" id="multiplication-operator">
|
546
546
|
<h4>7.12.2.7.1.3. 乗算演算子<a class="headerlink" href="#multiplication-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
547
|
-
<p>構文は <
|
548
|
-
<p>この演算子は <
|
547
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">*</span> <span class="pre">number2</span></code> です。</p>
|
548
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> と <code class="docutils literal"><span class="pre">number2</span></code> を掛けた結果を返します。</p>
|
549
549
|
<p>以下は簡単な使用例です。</p>
|
550
550
|
<p>実行例:</p>
|
551
551
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 3 * 5'
|
@@ -581,7 +581,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
581
581
|
# [
|
582
582
|
# 3,
|
583
583
|
# "Mroonga",
|
584
|
-
# "I also started to use
|
584
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
585
585
|
# 15
|
586
586
|
# ]
|
587
587
|
# ]
|
@@ -589,12 +589,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
589
589
|
# ]
|
590
590
|
</pre></div>
|
591
591
|
</div>
|
592
|
-
<p>この式は <
|
592
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
593
593
|
</div>
|
594
594
|
<div class="section" id="division-operator">
|
595
595
|
<h4>7.12.2.7.1.4. 除算演算子<a class="headerlink" href="#division-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
596
|
-
<p>構文は <
|
597
|
-
<p>この演算子は <
|
596
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">/</span> <span class="pre">number2</span></code> と <code class="docutils literal"><span class="pre">number1</span> <span class="pre">%</span> <span class="pre">number2</span></code> です。</p>
|
597
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number2</span></code> を <code class="docutils literal"><span class="pre">number1</span></code> で割ります。 <code class="docutils literal"><span class="pre">/</span></code> は商を返します。 <code class="docutils literal"><span class="pre">%</span></code> は余りを返します。</p>
|
598
598
|
<p>以下は簡単な使用例です。</p>
|
599
599
|
<p>実行例:</p>
|
600
600
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 / 7'
|
@@ -644,7 +644,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
644
644
|
# ]
|
645
645
|
</pre></div>
|
646
646
|
</div>
|
647
|
-
<p>この式は <
|
647
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
648
648
|
<p>実行例:</p>
|
649
649
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 % 7'
|
650
650
|
# [
|
@@ -687,7 +687,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
687
687
|
# ]
|
688
688
|
</pre></div>
|
689
689
|
</div>
|
690
|
-
<p>この式は <
|
690
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
691
691
|
</div>
|
692
692
|
</div>
|
693
693
|
<div class="section" id="logical-operators">
|
@@ -695,8 +695,8 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
695
695
|
<p>以下は論理演算子の説明です。</p>
|
696
696
|
<div class="section" id="logical-not-operator">
|
697
697
|
<h4>7.12.2.7.2.1. 論理否定演算子<a class="headerlink" href="#logical-not-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
698
|
-
<p>構文は <
|
699
|
-
<p>この演算子は <
|
698
|
+
<p>構文は <code class="docutils literal"><span class="pre">!condition</span></code> です。</p>
|
699
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">condition</span></code> の真偽値を反転します。</p>
|
700
700
|
<p>以下は簡単な使用例です。</p>
|
701
701
|
<p>実行例:</p>
|
702
702
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '!(n_likes == 5)'
|
@@ -744,13 +744,13 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
744
744
|
# [
|
745
745
|
# 2,
|
746
746
|
# "Groonga",
|
747
|
-
# "I started to use
|
747
|
+
# "I started to use Groonga. It's very fast!",
|
748
748
|
# 10
|
749
749
|
# ],
|
750
750
|
# [
|
751
751
|
# 3,
|
752
752
|
# "Mroonga",
|
753
|
-
# "I also started to use
|
753
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
754
754
|
# 15
|
755
755
|
# ]
|
756
756
|
# ]
|
@@ -758,12 +758,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
758
758
|
# ]
|
759
759
|
</pre></div>
|
760
760
|
</div>
|
761
|
-
<p>この式は <
|
761
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">5</span></code> ではない式にマッチします。</p>
|
762
762
|
</div>
|
763
763
|
<div class="section" id="logical-and-operator">
|
764
764
|
<h4>7.12.2.7.2.2. 論理積演算子<a class="headerlink" href="#logical-and-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
765
|
-
<p>構文は <
|
766
|
-
<p>この演算子は <
|
765
|
+
<p>構文は <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">&&</span> <span class="pre">condition2</span></code> です。</p>
|
766
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">condition1</span></code> と <code class="docutils literal"><span class="pre">condition2</span></code> の両方が真のときに真を返し、そうでなければ偽を返します。</p>
|
767
767
|
<p>以下は簡単な使用例です。</p>
|
768
768
|
<p>実行例:</p>
|
769
769
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && n_likes >= 10'
|
@@ -799,13 +799,13 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
799
799
|
# [
|
800
800
|
# 2,
|
801
801
|
# "Groonga",
|
802
|
-
# "I started to use
|
802
|
+
# "I started to use Groonga. It's very fast!",
|
803
803
|
# 10
|
804
804
|
# ],
|
805
805
|
# [
|
806
806
|
# 3,
|
807
807
|
# "Mroonga",
|
808
|
-
# "I also started to use
|
808
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
809
809
|
# 15
|
810
810
|
# ]
|
811
811
|
# ]
|
@@ -813,12 +813,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
813
813
|
# ]
|
814
814
|
</pre></div>
|
815
815
|
</div>
|
816
|
-
<p>この式は <
|
816
|
+
<p>この式は <code class="docutils literal"><span class="pre">content</span></code> カラムの値が <code class="docutils literal"><span class="pre">fast</span></code> を含んでいて、 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">10</span></code> 以上のレコードにマッチします。</p>
|
817
817
|
</div>
|
818
818
|
<div class="section" id="logical-or-operator">
|
819
819
|
<h4>7.12.2.7.2.3. 論理和演算子<a class="headerlink" href="#logical-or-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
820
|
-
<p>構文は <
|
821
|
-
<p>この演算子は <
|
820
|
+
<p>構文は <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">||</span> <span class="pre">condition2</span></code> です。</p>
|
821
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">condition1</span></code> と <code class="docutils literal"><span class="pre">condition2</span></code> のどちらか一方が真のときに真を返し、そうでなければ偽を返します。</p>
|
822
822
|
<p>以下は簡単な使用例です。</p>
|
823
823
|
<p>実行例:</p>
|
824
824
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 5 || n_likes == 10'
|
@@ -860,7 +860,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
860
860
|
# [
|
861
861
|
# 2,
|
862
862
|
# "Groonga",
|
863
|
-
# "I started to use
|
863
|
+
# "I started to use Groonga. It's very fast!",
|
864
864
|
# 10
|
865
865
|
# ]
|
866
866
|
# ]
|
@@ -868,12 +868,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
868
868
|
# ]
|
869
869
|
</pre></div>
|
870
870
|
</div>
|
871
|
-
<p>この式は <
|
871
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">5</span></code> または <code class="docutils literal"><span class="pre">10</span></code> のレコードにマッチします。</p>
|
872
872
|
</div>
|
873
873
|
<div class="section" id="logical-and-not-operator">
|
874
874
|
<h4>7.12.2.7.2.4. 論理差演算子<a class="headerlink" href="#logical-and-not-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
875
|
-
<p>構文は <
|
876
|
-
<p>この演算子は <
|
875
|
+
<p>構文は <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">&!</span> <span class="pre">condition2</span></code> です。</p>
|
876
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">condition1</span></code> が真で <code class="docutils literal"><span class="pre">condition2</span></code> が偽のときに真を返し、そうでなければ偽を返します。差集合を返すということです。</p>
|
877
877
|
<p>以下は簡単な使用例です。</p>
|
878
878
|
<p>実行例:</p>
|
879
879
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" &! content @ "mroonga"'
|
@@ -909,7 +909,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
909
909
|
# [
|
910
910
|
# 2,
|
911
911
|
# "Groonga",
|
912
|
-
# "I started to use
|
912
|
+
# "I started to use Groonga. It's very fast!",
|
913
913
|
# 10
|
914
914
|
# ]
|
915
915
|
# ]
|
@@ -917,16 +917,16 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
917
917
|
# ]
|
918
918
|
</pre></div>
|
919
919
|
</div>
|
920
|
-
<p>この式は <
|
920
|
+
<p>この式は <code class="docutils literal"><span class="pre">content</span></code> カラムの値が <code class="docutils literal"><span class="pre">fast</span></code> を含んでいるが <code class="docutils literal"><span class="pre">mroonga</span></code> を含んでいないレコードにマッチします。</p>
|
921
921
|
</div>
|
922
922
|
</div>
|
923
923
|
<div class="section" id="bitwise-operators">
|
924
|
-
<h3>7.12.2.7.3. ビット演算子<a class="headerlink" href="#bitwise-operators" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
924
|
+
<span id="script-syntax-bitwise-operators"></span><h3>7.12.2.7.3. ビット演算子<a class="headerlink" href="#bitwise-operators" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
925
925
|
<p>以下はビット演算子の説明です。</p>
|
926
926
|
<div class="section" id="bitwise-not-operator">
|
927
|
-
<h4>7.12.2.7.3.1. ビット否定演算子<a class="headerlink" href="#bitwise-not-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
928
|
-
<p>構文は <
|
929
|
-
<p>この演算子は <
|
927
|
+
<span id="script-syntax-bitwise-not"></span><h4>7.12.2.7.3.1. ビット否定演算子<a class="headerlink" href="#bitwise-not-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
928
|
+
<p>構文は <code class="docutils literal"><span class="pre">~number</span></code> です。</p>
|
929
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number</span></code> の各ビットを反転した結果を返します。</p>
|
930
930
|
<p>以下は簡単な使用例です。</p>
|
931
931
|
<p>実行例:</p>
|
932
932
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '~n_likes == -6'
|
@@ -970,12 +970,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
970
970
|
# ]
|
971
971
|
</pre></div>
|
972
972
|
</div>
|
973
|
-
<p>この式は <
|
973
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">5</span></code> のレコードにマッチします。なぜならば、 <code class="docutils literal"><span class="pre">5</span></code> の各ビットを反転すると <code class="docutils literal"><span class="pre">-6</span></code> になるからです。</p>
|
974
974
|
</div>
|
975
975
|
<div class="section" id="bitwise-and-operator">
|
976
|
-
<h4>7.12.2.7.3.2. ビット論理積演算子<a class="headerlink" href="#bitwise-and-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
977
|
-
<p>構文は <
|
978
|
-
<p>この演算子は <
|
976
|
+
<span id="script-syntax-bitwise-and"></span><h4>7.12.2.7.3.2. ビット論理積演算子<a class="headerlink" href="#bitwise-and-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
977
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">&</span> <span class="pre">number2</span></code> です。</p>
|
978
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> と <code class="docutils literal"><span class="pre">number2</span></code> をビット単位で論理積をした結果を返します。</p>
|
979
979
|
<p>以下は簡単な使用例です。</p>
|
980
980
|
<p>実行例:</p>
|
981
981
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '(n_likes & 1) == 1'
|
@@ -1023,7 +1023,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1023
1023
|
# [
|
1024
1024
|
# 3,
|
1025
1025
|
# "Mroonga",
|
1026
|
-
# "I also started to use
|
1026
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
1027
1027
|
# 15
|
1028
1028
|
# ],
|
1029
1029
|
# [
|
@@ -1037,13 +1037,13 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1037
1037
|
# ]
|
1038
1038
|
</pre></div>
|
1039
1039
|
</div>
|
1040
|
-
<p>この式は <
|
1040
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が偶数のレコードにマッチします。なぜならば、偶数と <code class="docutils literal"><span class="pre">1</span></code> のビット単位の論理積は <code class="docutils literal"><span class="pre">1</span></code> になり、奇数と <code class="docutils literal"><span class="pre">1</span></code> のビット単位の論理積は <code class="docutils literal"><span class="pre">0</span></code> になるからです。</p>
|
1041
1041
|
</div>
|
1042
1042
|
</div>
|
1043
1043
|
<div class="section" id="bitwise-or-operator">
|
1044
|
-
<h3>7.12.2.7.4. ビット論理和演算子<a class="headerlink" href="#bitwise-or-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1045
|
-
<p>構文は <
|
1046
|
-
<p>この演算子は <
|
1044
|
+
<span id="script-syntax-bitwise-or"></span><h3>7.12.2.7.4. ビット論理和演算子<a class="headerlink" href="#bitwise-or-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1045
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">|</span> <span class="pre">number2</span></code> です。</p>
|
1046
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> と <code class="docutils literal"><span class="pre">number2</span></code> をビット単位で論理和した結果を返します。</p>
|
1047
1047
|
<p>以下は簡単な使用例です。</p>
|
1048
1048
|
<p>実行例:</p>
|
1049
1049
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (1 | 4)'
|
@@ -1087,12 +1087,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1087
1087
|
# ]
|
1088
1088
|
</pre></div>
|
1089
1089
|
</div>
|
1090
|
-
<p>この式は <
|
1090
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
1091
1091
|
</div>
|
1092
1092
|
<div class="section" id="bitwise-xor-operator">
|
1093
|
-
<h3>7.12.2.7.5. ビット排他的論理和演算子<a class="headerlink" href="#bitwise-xor-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1094
|
-
<p>構文は <
|
1095
|
-
<p>この演算子は <
|
1093
|
+
<span id="script-syntax-bitwise-xor"></span><h3>7.12.2.7.5. ビット排他的論理和演算子<a class="headerlink" href="#bitwise-xor-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1094
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">^</span> <span class="pre">number2</span></code> です。</p>
|
1095
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> と <code class="docutils literal"><span class="pre">number2</span></code> をビット単位で排他的論理和した結果を返します。</p>
|
1096
1096
|
<p>以下は簡単な使用例です。</p>
|
1097
1097
|
<p>実行例:</p>
|
1098
1098
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (10 ^ 15)'
|
@@ -1136,15 +1136,15 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1136
1136
|
# ]
|
1137
1137
|
</pre></div>
|
1138
1138
|
</div>
|
1139
|
-
<p>この式は <
|
1139
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
1140
1140
|
</div>
|
1141
1141
|
<div class="section" id="shift-operators">
|
1142
|
-
<h3>7.12.2.7.6. シフト演算子<a class="headerlink" href="#shift-operators" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1142
|
+
<span id="script-syntax-shift-operators"></span><h3>7.12.2.7.6. シフト演算子<a class="headerlink" href="#shift-operators" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1143
1143
|
<p>以下はシフト演算子の説明です。</p>
|
1144
1144
|
<div class="section" id="left-shift-operator">
|
1145
|
-
<h4>7.12.2.7.6.1. 左シフト演算子<a class="headerlink" href="#left-shift-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1146
|
-
<p>構文は <
|
1147
|
-
<p>この演算子は <
|
1145
|
+
<span id="script-syntax-shift-left"></span><h4>7.12.2.7.6.1. 左シフト演算子<a class="headerlink" href="#left-shift-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1146
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre"><<</span> <span class="pre">number2</span></code> です。</p>
|
1147
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> のビットを左に <code class="docutils literal"><span class="pre">number2</span></code> ビットシフトする。</p>
|
1148
1148
|
<p>以下は簡単な使用例です。</p>
|
1149
1149
|
<p>実行例:</p>
|
1150
1150
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (5 << 1)'
|
@@ -1180,7 +1180,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1180
1180
|
# [
|
1181
1181
|
# 2,
|
1182
1182
|
# "Groonga",
|
1183
|
-
# "I started to use
|
1183
|
+
# "I started to use Groonga. It's very fast!",
|
1184
1184
|
# 10
|
1185
1185
|
# ]
|
1186
1186
|
# ]
|
@@ -1188,12 +1188,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1188
1188
|
# ]
|
1189
1189
|
</pre></div>
|
1190
1190
|
</div>
|
1191
|
-
<p>この式は <
|
1191
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
1192
1192
|
</div>
|
1193
1193
|
<div class="section" id="signed-right-shift-operator">
|
1194
|
-
<h4>7.12.2.7.6.2. 符号付き右シフト演算子<a class="headerlink" href="#signed-right-shift-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1195
|
-
<p>構文は <
|
1196
|
-
<p>この演算子は <
|
1194
|
+
<span id="script-syntax-shift-signed-right"></span><h4>7.12.2.7.6.2. 符号付き右シフト演算子<a class="headerlink" href="#signed-right-shift-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1195
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">>></span> <span class="pre">number2</span></code> です。</p>
|
1196
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> のビットを右に <code class="docutils literal"><span class="pre">number2</span></code> ビットシフトします。結果の符号は <code class="docutils literal"><span class="pre">number1</span></code> の符号と同じです。</p>
|
1197
1197
|
<p>以下は簡単な使用例です。</p>
|
1198
1198
|
<p>実行例:</p>
|
1199
1199
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == -(-10 >> 1)'
|
@@ -1237,12 +1237,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1237
1237
|
# ]
|
1238
1238
|
</pre></div>
|
1239
1239
|
</div>
|
1240
|
-
<p>この式は <
|
1240
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
1241
1241
|
</div>
|
1242
1242
|
<div class="section" id="unsigned-right-shift-operator">
|
1243
|
-
<h4>7.12.2.7.6.3. 符号なし右シフト演算子<a class="headerlink" href="#unsigned-right-shift-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1244
|
-
<p>構文は <
|
1245
|
-
<p>この演算子は <
|
1243
|
+
<span id="script-syntax-shift-unsigned-right"></span><h4>7.12.2.7.6.3. 符号なし右シフト演算子<a class="headerlink" href="#unsigned-right-shift-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1244
|
+
<p>構文は <code class="docutils literal"><span class="pre">number1</span> <span class="pre">>>></span> <span class="pre">number2</span></code> です。</p>
|
1245
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">number1</span></code> のビットを右に <code class="docutils literal"><span class="pre">number2</span></code> ビットシフトします。一番左の <code class="docutils literal"><span class="pre">number2</span></code> ビットには <code class="docutils literal"><span class="pre">0</span></code> が入ります。</p>
|
1246
1246
|
<p>以下は簡単な使用例です。</p>
|
1247
1247
|
<p>実行例:</p>
|
1248
1248
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (2147483648 - (-10 >>> 1))'
|
@@ -1286,7 +1286,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1286
1286
|
# ]
|
1287
1287
|
</pre></div>
|
1288
1288
|
</div>
|
1289
|
-
<p>この式は <
|
1289
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <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>
|
1290
1290
|
</div>
|
1291
1291
|
</div>
|
1292
1292
|
<div class="section" id="comparison-operators">
|
@@ -1294,8 +1294,8 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1294
1294
|
<p>以下は比較演算子の説明です。</p>
|
1295
1295
|
<div class="section" id="equal-operator">
|
1296
1296
|
<h4>7.12.2.7.7.1. 等価演算子<a class="headerlink" href="#equal-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1297
|
-
<p>構文は <
|
1298
|
-
<p>この演算子は <
|
1297
|
+
<p>構文は <code class="docutils literal"><span class="pre">object1</span> <span class="pre">==</span> <span class="pre">object2</span></code> です。</p>
|
1298
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">object1</span></code> が <code class="docutils literal"><span class="pre">object2</span></code> と等しいときは真を返し、そうでなければ偽を返します。</p>
|
1299
1299
|
<p>以下は簡単な使用例です。</p>
|
1300
1300
|
<p>実行例:</p>
|
1301
1301
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 5'
|
@@ -1339,12 +1339,12 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1339
1339
|
# ]
|
1340
1340
|
</pre></div>
|
1341
1341
|
</div>
|
1342
|
-
<p>この式は <
|
1342
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">5</span></code> の値にマッチします。</p>
|
1343
1343
|
</div>
|
1344
1344
|
<div class="section" id="not-equal-operator">
|
1345
1345
|
<h4>7.12.2.7.7.2. 不等価演算子<a class="headerlink" href="#not-equal-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1346
|
-
<p>構文は <
|
1347
|
-
<p>この演算子は <
|
1346
|
+
<p>構文は <code class="docutils literal"><span class="pre">object1</span> <span class="pre">!=</span> <span class="pre">object2</span></code> です。</p>
|
1347
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">object1</span></code> が <code class="docutils literal"><span class="pre">object2</span></code> と等しくないときに真を返し、そうでなければ偽を返します。</p>
|
1348
1348
|
<p>以下は簡単な使用例です。</p>
|
1349
1349
|
<p>実行例:</p>
|
1350
1350
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes != 5'
|
@@ -1392,13 +1392,13 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1392
1392
|
# [
|
1393
1393
|
# 2,
|
1394
1394
|
# "Groonga",
|
1395
|
-
# "I started to use
|
1395
|
+
# "I started to use Groonga. It's very fast!",
|
1396
1396
|
# 10
|
1397
1397
|
# ],
|
1398
1398
|
# [
|
1399
1399
|
# 3,
|
1400
1400
|
# "Mroonga",
|
1401
|
-
# "I also started to use
|
1401
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
1402
1402
|
# 15
|
1403
1403
|
# ]
|
1404
1404
|
# ]
|
@@ -1406,7 +1406,7 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1406
1406
|
# ]
|
1407
1407
|
</pre></div>
|
1408
1408
|
</div>
|
1409
|
-
<p>この式は <
|
1409
|
+
<p>この式は <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">5</span></code> ではない式にマッチします。</p>
|
1410
1410
|
</div>
|
1411
1411
|
<div class="section" id="less-than-operator">
|
1412
1412
|
<h4>7.12.2.7.7.3. 小なり演算子<a class="headerlink" href="#less-than-operator" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
@@ -1430,8 +1430,8 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1430
1430
|
<h2>7.12.2.8. 代入演算子<a class="headerlink" href="#assignment-operators" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
1431
1431
|
<div class="section" id="addition-assignment-operator">
|
1432
1432
|
<h3>7.12.2.8.1. 加算代入演算子<a class="headerlink" href="#addition-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1433
|
-
<p>構文は <
|
1434
|
-
<p>この演算子は <
|
1433
|
+
<p>構文は <code class="docutils literal"><span class="pre">column</span> <span class="pre">+=</span> <span class="pre">value</span></code> です。</p>
|
1434
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> に <code class="docutils literal"><span class="pre">column2</span></code> を加算代入します。</p>
|
1435
1435
|
<p>実行例:</p>
|
1436
1436
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score += n_likes'
|
1437
1437
|
# [
|
@@ -1489,14 +1489,14 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1489
1489
|
# ]
|
1490
1490
|
</pre></div>
|
1491
1491
|
</div>
|
1492
|
-
<p><
|
1493
|
-
<p>例えば、 <
|
1494
|
-
<p>そのため、 <
|
1492
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score + n_likes' という加算代入演算をそれぞれのレコードへ適用します。</p>
|
1493
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Good-bye Senna"を格納しているレコードの <code class="docutils literal"><span class="pre">_score</span></code> の値は3です。</p>
|
1494
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">3</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1495
1495
|
</div>
|
1496
1496
|
<div class="section" id="subtraction-assignment-operator">
|
1497
1497
|
<h3>7.12.2.8.2. 減算代入演算子<a class="headerlink" href="#subtraction-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1498
|
-
<p>構文は <
|
1499
|
-
<p>この演算子は <
|
1498
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">-=</span> <span class="pre">column2</span></code> です。</p>
|
1499
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> から <code class="docutils literal"><span class="pre">column2</span></code> を減算代入します。</p>
|
1500
1500
|
<p>実行例:</p>
|
1501
1501
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score -= n_likes'
|
1502
1502
|
# [
|
@@ -1554,14 +1554,14 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1554
1554
|
# ]
|
1555
1555
|
</pre></div>
|
1556
1556
|
</div>
|
1557
|
-
<p><
|
1558
|
-
<p>例えば、 <
|
1559
|
-
<p>そのため、 <
|
1557
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score - n_likes' という減算代入演算をそれぞれのレコードへ適用します。</p>
|
1558
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Good-bye Senna"を格納しているレコードの <code class="docutils literal"><span class="pre">_score</span></code> の値は3です。</p>
|
1559
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">-</span> <span class="pre">3</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1560
1560
|
</div>
|
1561
1561
|
<div class="section" id="multiplication-assignment-operator">
|
1562
1562
|
<h3>7.12.2.8.3. 乗算代入演算子<a class="headerlink" href="#multiplication-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1563
|
-
<p>構文は <
|
1564
|
-
<p>この演算子は <
|
1563
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">*=</span> <span class="pre">column2</span></code> です。</p>
|
1564
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> に <code class="docutils literal"><span class="pre">column2</span></code> を乗算演算する。</p>
|
1565
1565
|
<p>実行例:</p>
|
1566
1566
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score *= n_likes'
|
1567
1567
|
# [
|
@@ -1619,14 +1619,14 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1619
1619
|
# ]
|
1620
1620
|
</pre></div>
|
1621
1621
|
</div>
|
1622
|
-
<p><
|
1623
|
-
<p>例えば、 <
|
1624
|
-
<p>そのため、 <
|
1622
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score * n_likes' という乗算代入演算をそれぞれのレコードへ適用します。</p>
|
1623
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Good-bye Senna"を格納しているレコードの <code class="docutils literal"><span class="pre">_score</span></code> の値は3です。</p>
|
1624
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">*</span> <span class="pre">3</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1625
1625
|
</div>
|
1626
1626
|
<div class="section" id="division-assignment-operator">
|
1627
1627
|
<h3>7.12.2.8.4. 除算代入演算子<a class="headerlink" href="#division-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1628
|
-
<p>構文は <
|
1629
|
-
<p>この演算子は <
|
1628
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">/=</span> <span class="pre">column2</span></code> です。</p>
|
1629
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> に <code class="docutils literal"><span class="pre">column2</span></code> を除算代入します。</p>
|
1630
1630
|
<p>実行例:</p>
|
1631
1631
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score /= n_likes'
|
1632
1632
|
# [
|
@@ -1684,14 +1684,14 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1684
1684
|
# ]
|
1685
1685
|
</pre></div>
|
1686
1686
|
</div>
|
1687
|
-
<p><
|
1688
|
-
<p>例えば、 <
|
1689
|
-
<p>そのため、 <
|
1687
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score / n_likes' という除算代入演算をそれぞれのレコードへ適用します。</p>
|
1688
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Good-bye Senna"を格納しているレコードの <code class="docutils literal"><span class="pre">_score</span></code> の値は3です。</p>
|
1689
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">/</span> <span class="pre">3</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1690
1690
|
</div>
|
1691
1691
|
<div class="section" id="modulo-assignment-operator">
|
1692
1692
|
<h3>7.12.2.8.5. 剰余代入演算子<a class="headerlink" href="#modulo-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1693
|
-
<p>構文は <
|
1694
|
-
<p>この演算子は <
|
1693
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">%=</span> <span class="pre">column2</span></code> です。</p>
|
1694
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> に <code class="docutils literal"><span class="pre">column2</span></code> を剰余代入します。</p>
|
1695
1695
|
<p>実行例:</p>
|
1696
1696
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score %= n_likes'
|
1697
1697
|
# [
|
@@ -1749,14 +1749,14 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1749
1749
|
# ]
|
1750
1750
|
</pre></div>
|
1751
1751
|
</div>
|
1752
|
-
<p><
|
1753
|
-
<p>例えば、 <
|
1754
|
-
<p>そのため、 <
|
1752
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score % n_likes' という除算代入演算をそれぞれのレコードへ適用します。</p>
|
1753
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Good-bye Senna"を格納しているレコードの <code class="docutils literal"><span class="pre">_score</span></code> の値は3です。</p>
|
1754
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">%</span> <span class="pre">3</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1755
1755
|
</div>
|
1756
1756
|
<div class="section" id="bitwise-left-shift-assignment-operator">
|
1757
1757
|
<h3>7.12.2.8.6. 左シフト代入演算子<a class="headerlink" href="#bitwise-left-shift-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1758
|
-
<p>構文は <
|
1759
|
-
<p>この演算子は <
|
1758
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre"><<</span> <span class="pre">column2</span></code> です。</p>
|
1759
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> のビットを左に <code class="docutils literal"><span class="pre">column2</span></code> 左ビットシフト代入演算します。</p>
|
1760
1760
|
<p>実行例:</p>
|
1761
1761
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score <<= n_likes'
|
1762
1762
|
# [
|
@@ -1814,24 +1814,24 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1814
1814
|
# ]
|
1815
1815
|
</pre></div>
|
1816
1816
|
</div>
|
1817
|
-
<p><
|
1818
|
-
<p>例えば、 <
|
1819
|
-
<p>そのため、 <
|
1817
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score << n_likes' という左ビットシフト代入演算をそれぞれのレコードへ適用します。</p>
|
1818
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Good-bye Senna"を格納しているレコードの <code class="docutils literal"><span class="pre">_score</span></code> の値は3です。</p>
|
1819
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre"><<</span> <span class="pre">3</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1820
1820
|
</div>
|
1821
1821
|
<div class="section" id="bitwise-signed-right-shift-assignment-operator">
|
1822
1822
|
<h3>7.12.2.8.7. 符号あり右シフト代入演算子<a class="headerlink" href="#bitwise-signed-right-shift-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1823
|
-
<p>構文は <
|
1824
|
-
<p>この演算子は <
|
1823
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">>>=</span> <span class="pre">column2</span></code> です。</p>
|
1824
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> のビットを <code class="docutils literal"><span class="pre">column2</span></code> 右ビットシフト代入演算します。</p>
|
1825
1825
|
</div>
|
1826
1826
|
<div class="section" id="bitwise-unsigned-right-shift-assignment-operator">
|
1827
1827
|
<h3>7.12.2.8.8. 符号なし右シフト代入演算子<a class="headerlink" href="#bitwise-unsigned-right-shift-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1828
|
-
<p>構文は <
|
1829
|
-
<p>この演算子は <
|
1828
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">>>>=</span> <span class="pre">column2</span></code> です。</p>
|
1829
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> のビットを <code class="docutils literal"><span class="pre">column2</span></code> 符号なし右ビットシフト代入演算します。</p>
|
1830
1830
|
</div>
|
1831
1831
|
<div class="section" id="bitwise-and-assignment-operator">
|
1832
1832
|
<h3>7.12.2.8.9. ビット論理積代入演算子<a class="headerlink" href="#bitwise-and-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1833
|
-
<p>構文は <
|
1834
|
-
<p>この演算子は <
|
1833
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">&=</span> <span class="pre">column2</span></code> です。</p>
|
1834
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> に <code class="docutils literal"><span class="pre">column2</span></code> をビット論理積代入演算します。</p>
|
1835
1835
|
<p>実行例:</p>
|
1836
1836
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score &= n_likes'
|
1837
1837
|
# [
|
@@ -1889,14 +1889,14 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1889
1889
|
# ]
|
1890
1890
|
</pre></div>
|
1891
1891
|
</div>
|
1892
|
-
<p><
|
1893
|
-
<p>例えば、 <
|
1894
|
-
<p>そのため、 <
|
1892
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score & n_likes' というビット論理積代入演算をそれぞれのレコードへ適用します。</p>
|
1893
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Groonga"を格納しているレコードの値は10です。</p>
|
1894
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">&</span> <span class="pre">10</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1895
1895
|
</div>
|
1896
1896
|
<div class="section" id="bitwise-or-assignment-operator">
|
1897
|
-
<h3>7.12.2.8.10. ビット論理和代入演算子<a class="headerlink" href="#bitwise-or-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1898
|
-
<p>構文は <
|
1899
|
-
<p>この演算子は <
|
1897
|
+
<span id="script-syntax-bitwise-or-assign"></span><h3>7.12.2.8.10. ビット論理和代入演算子<a class="headerlink" href="#bitwise-or-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1898
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">|=</span> <span class="pre">column2</span></code> です。</p>
|
1899
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> に <code class="docutils literal"><span class="pre">column2</span></code> をビット論理和代入演算する。</p>
|
1900
1900
|
<p>実行例:</p>
|
1901
1901
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score |= n_likes'
|
1902
1902
|
# [
|
@@ -1954,14 +1954,14 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
1954
1954
|
# ]
|
1955
1955
|
</pre></div>
|
1956
1956
|
</div>
|
1957
|
-
<p><
|
1958
|
-
<p>例えば、 <
|
1959
|
-
<p>そのため、 <
|
1957
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score | n_likes' というビット論理和代入演算をそれぞれのレコードへ適用します。</p>
|
1958
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Groonga"を格納しているレコードの値は10です。</p>
|
1959
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">10</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
1960
1960
|
</div>
|
1961
1961
|
<div class="section" id="bitwise-xor-assignment-operator">
|
1962
1962
|
<h3>7.12.2.8.11. ビット排他的論理和代入演算子<a class="headerlink" href="#bitwise-xor-assignment-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1963
|
-
<p>構文は <
|
1964
|
-
<p>この演算子は <
|
1963
|
+
<p>構文は <code class="docutils literal"><span class="pre">column1</span> <span class="pre">^=</span> <span class="pre">column2</span></code> です。</p>
|
1964
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column1</span></code> に <code class="docutils literal"><span class="pre">column2</span></code> をビット排他的論理和代入演算します。</p>
|
1965
1965
|
<p>実行例:</p>
|
1966
1966
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score ^= n_likes'
|
1967
1967
|
# [
|
@@ -2019,18 +2019,18 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
2019
2019
|
# ]
|
2020
2020
|
</pre></div>
|
2021
2021
|
</div>
|
2022
|
-
<p><
|
2023
|
-
<p>例えば、 <
|
2024
|
-
<p>そのため、 <
|
2022
|
+
<p><code class="docutils literal"><span class="pre">--filter</span></code> による <code class="docutils literal"><span class="pre">_score</span></code> の値はこの場合は常に1です。その後、'_score = _score ^ n_likes' という減算代入演算をそれぞれのレコードへ適用します。</p>
|
2023
|
+
<p>例えば、 <code class="docutils literal"><span class="pre">_key</span></code> として"Good-bye Senna"を格納しているレコードの <code class="docutils literal"><span class="pre">_score</span></code> の値は3です。</p>
|
2024
|
+
<p>そのため、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">^</span> <span class="pre">3</span></code> という式が評価されてから <code class="docutils literal"><span class="pre">_score</span></code> カラムへと演算結果が保存されます。</p>
|
2025
2025
|
</div>
|
2026
2026
|
</div>
|
2027
2027
|
<div class="section" id="original-operators">
|
2028
2028
|
<h2>7.12.2.9. 独自の演算子<a class="headerlink" href="#original-operators" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
2029
|
-
<p>スクリプト構文はECMAScriptの構文に独自の二項演算子を追加しています。これらは検索に特化した操作をします。演算子の最初の文字は <
|
2029
|
+
<p>スクリプト構文はECMAScriptの構文に独自の二項演算子を追加しています。これらは検索に特化した操作をします。演算子の最初の文字は <code class="docutils literal"><span class="pre">@</span></code> または <code class="docutils literal"><span class="pre">*</span></code> です。</p>
|
2030
2030
|
<div class="section" id="match-operator">
|
2031
|
-
<span id="match-oeprator"></span><h3>7.12.2.9.1. マッチ演算子<a class="headerlink" href="#match-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2032
|
-
<p>構文は <
|
2033
|
-
<p>この演算子は <
|
2031
|
+
<span id="script-syntax-match-oeprator"></span><h3>7.12.2.9.1. マッチ演算子<a class="headerlink" href="#match-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2032
|
+
<p>構文は <code class="docutils literal"><span class="pre">column</span> <span class="pre">@</span> <span class="pre">value</span></code> です。</p>
|
2033
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">column</span></code> の転置インデックスを使って <code class="docutils literal"><span class="pre">value</span></code> を検索します。普通は全文検索をしますが、タグ検索もできます。これは、タグ検索も転置インデックスを使って実現しているからです。</p>
|
2034
2034
|
<p><a class="reference internal" href="query_syntax.html"><em>クエリー構文</em></a> はデフォルトでこの演算子を使っています。</p>
|
2035
2035
|
<p>以下は簡単な使用例です。</p>
|
2036
2036
|
<p>実行例:</p>
|
@@ -2053,23 +2053,23 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
2053
2053
|
# ]
|
2054
2054
|
# ],
|
2055
2055
|
# [
|
2056
|
-
# "I started to use
|
2056
|
+
# "I started to use Groonga. It's very fast!"
|
2057
2057
|
# ],
|
2058
2058
|
# [
|
2059
|
-
# "I also started to use
|
2059
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!"
|
2060
2060
|
# ]
|
2061
2061
|
# ]
|
2062
2062
|
# ]
|
2063
2063
|
# ]
|
2064
2064
|
</pre></div>
|
2065
2065
|
</div>
|
2066
|
-
<p>この式は <
|
2066
|
+
<p>この式は <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">fast</span></code> という単語を含んでいるレコードにマッチします。</p>
|
2067
2067
|
</div>
|
2068
2068
|
<div class="section" id="prefix-search-operator">
|
2069
|
-
<span id="
|
2070
|
-
<p>構文は <
|
2071
|
-
<p>この条件式は <
|
2072
|
-
<p>カラムの値を高速に前方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルをパトリシアトライ( <
|
2069
|
+
<span id="script-syntax-prefix-search-operator"></span><h3>7.12.2.9.2. 前方一致検索演算子<a class="headerlink" href="#prefix-search-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2070
|
+
<p>構文は <code class="docutils literal"><span class="pre">column</span> <span class="pre">@^</span> <span class="pre">value</span></code> です。</p>
|
2071
|
+
<p>この条件式は <code class="docutils literal"><span class="pre">value</span></code> で前方一致検索します。前方一致検索は <code class="docutils literal"><span class="pre">value</span></code> で始まる単語を含むレコードを検索します。</p>
|
2072
|
+
<p>カラムの値を高速に前方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルをパトリシアトライ( <code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code> )またはダブル配列トライ( <code class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></code> )にしなければいけません。あるいは、パトリシアトライテーブルまたはダブル配列テーブルの <code class="docutils literal"><span class="pre">_key</span></code> も高速に前方一致検索できます。 <code class="docutils literal"><span class="pre">_key</span></code> にインデックスを作成する必要はありません。</p>
|
2073
2073
|
<p>他の種類のテーブルでも前方一致検索を使えますがレコード全件を処理します。レコード数が少ない場合には問題ありませんが、レコード数が多いと時間がかかります。</p>
|
2074
2074
|
<p>以下は簡単な使用例です。</p>
|
2075
2075
|
<p>実行例:</p>
|
@@ -2102,18 +2102,18 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
2102
2102
|
# ]
|
2103
2103
|
</pre></div>
|
2104
2104
|
</div>
|
2105
|
-
<p>この式は <
|
2105
|
+
<p>この式は <code class="docutils literal"><span class="pre">_key</span></code> カラムの値が <code class="docutils literal"><span class="pre">Goo</span></code> で始まる単語を含むレコードにマッチします。この式には <code class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Senna</span></code> と <code class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Tritonn</span></code> がマッチします。</p>
|
2106
2106
|
</div>
|
2107
2107
|
<div class="section" id="suffix-search-operator">
|
2108
|
-
<span id="
|
2109
|
-
<p>構文は <
|
2110
|
-
<p>この演算子は <
|
2111
|
-
<p>カラムの値を高速に後方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルを <
|
2108
|
+
<span id="script-syntax-suffix-search-operator"></span><h3>7.12.2.9.3. 後方一致検索演算子<a class="headerlink" href="#suffix-search-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2109
|
+
<p>構文は <code class="docutils literal"><span class="pre">column</span> <span class="pre">@$</span> <span class="pre">value</span></code> です。</p>
|
2110
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">value</span></code> で後方一致検索します。後方一致検索は <code class="docutils literal"><span class="pre">value</span></code> で終わる単語を含むレコードを検索します。</p>
|
2111
|
+
<p>カラムの値を高速に後方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルを <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> フラグ付きのパトリシアトライテーブル( <code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code> )にしなければいけません。 <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> フラグ付きのパトリシアトライテーブル( <code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code> )の <code class="docutils literal"><span class="pre">_key</span></code> 擬似カラムの値も高速に後方一致検索できます。 <code class="docutils literal"><span class="pre">_key</span></code> にはインデックスを作成する必要はありません。 <code class="docutils literal"><span class="pre">_key</span></code> ベースの高速な後方一致検索よりもカラムベースの高速な後方一致検索を使うことをおすすめします。 <code class="docutils literal"><span class="pre">_key</span></code> ベースの高速な後方一致検索は自動的に登録された部分文字列も返ってきます。(TODO: 後方一致検索に関するドキュメントを書いてここからリンクを張る。)</p>
|
2112
2112
|
<div class="admonition note">
|
2113
2113
|
<p class="first admonition-title">注釈</p>
|
2114
2114
|
<p class="last">高速な後方一致検索は日本語のひらがななど非ASCII文字にしか使えません。ASCII文字には高速な後方一致検索を使えません。</p>
|
2115
2115
|
</div>
|
2116
|
-
<p>後方一致検索は他の種類のテーブルもしくはパトリシアトライを <
|
2116
|
+
<p>後方一致検索は他の種類のテーブルもしくはパトリシアトライを <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> フラグなしで使用しているテーブルに対しても使えますが、レコード全件を処理します。レコード数が少ない場合には問題ありませんが、レコード数が多いと時間がかかります。</p>
|
2117
2117
|
<p>簡単な例です。ASCII文字ではない文字である日本語のひらがなに対して高速な後方一致検索をしています。</p>
|
2118
2118
|
<p>実行例:</p>
|
2119
2119
|
<div class="highlight-none"><div class="highlight"><pre>table_create Titles TABLE_NO_KEY
|
@@ -2167,14 +2167,14 @@ select Titles --query 'content:$んが'
|
|
2167
2167
|
# ]
|
2168
2168
|
</pre></div>
|
2169
2169
|
</div>
|
2170
|
-
<p>この式は <
|
2170
|
+
<p>この式は <code class="docutils literal"><span class="pre">content</span></code> カラムの値が <code class="docutils literal"><span class="pre">んが</span></code> で終わるレコードにマッチします。この場合は <code class="docutils literal"><span class="pre">ぐるんが</span></code> と <code class="docutils literal"><span class="pre">むるんが</span></code> にマッチします。</p>
|
2171
2171
|
</div>
|
2172
2172
|
<div class="section" id="near-search-operator">
|
2173
|
-
<span id="
|
2174
|
-
<p>構文は <
|
2175
|
-
<p>この演算子は <
|
2176
|
-
<p>(TODO: <
|
2177
|
-
<p><
|
2173
|
+
<span id="script-syntax-near-search-operator"></span><h3>7.12.2.9.4. 近傍検索演算子<a class="headerlink" href="#near-search-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2174
|
+
<p>構文は <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>
|
2175
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span> <span class="pre">...</span></code> という単語で近傍検索します。近傍検索はすべての単語が含まれていてかつそれぞれの単語が近くにあるレコードを検索します。距離が <code class="docutils literal"><span class="pre">10</span></code> 以内の近さであれば近くにあると判断します。今のところ、この値は変更できません。距離の単位はN-gram系のトークナイザーでは文字数で、形態素解析系のトークナイザーでは単語数です。</p>
|
2176
|
+
<p>(TODO: <code class="docutils literal"><span class="pre">TokenBigram</span></code> はASCIIだけの単語はトークンに分割しないという説明を追加すること。このため、 <code class="docutils literal"><span class="pre">TokenBigram</span></code> はN-gram系のトークナイザーだけどASCIIだけの単語を扱う時の単位は単語数になる。)</p>
|
2177
|
+
<p><code class="docutils literal"><span class="pre">column</span></code> 用の全文検索用インデックスカラムを定義しておく必要があることに注意してください。</p>
|
2178
2178
|
<p>以下は簡単な使用例です。</p>
|
2179
2179
|
<p>実行例:</p>
|
2180
2180
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *N "I fast"' --output_columns content
|
@@ -2196,7 +2196,7 @@ select Titles --query 'content:$んが'
|
|
2196
2196
|
# ]
|
2197
2197
|
# ],
|
2198
2198
|
# [
|
2199
|
-
# "I started to use
|
2199
|
+
# "I started to use Groonga. It's very fast!"
|
2200
2200
|
# ]
|
2201
2201
|
# ]
|
2202
2202
|
# ]
|
@@ -2222,22 +2222,22 @@ select Entries --filter 'content *N "also Really"' --output_co
|
|
2222
2222
|
# ]
|
2223
2223
|
# ],
|
2224
2224
|
# [
|
2225
|
-
# "I also started to use
|
2225
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!"
|
2226
2226
|
# ]
|
2227
2227
|
# ]
|
2228
2228
|
# ]
|
2229
2229
|
# ]
|
2230
2230
|
</pre></div>
|
2231
2231
|
</div>
|
2232
|
-
<p>最初の式は <
|
2233
|
-
<p>二番目の式は <
|
2234
|
-
<p>三番目の式は <
|
2232
|
+
<p>最初の式は <code class="docutils literal"><span class="pre">I</span></code> と <code class="docutils literal"><span class="pre">fast</span></code> が含まれていて、かつ、これらの単語が10単語以内近くにあるレコードにマッチします。そのため <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> <span class="pre">fast!</span> <span class="pre">...</span></code> にマッチします。 <code class="docutils literal"><span class="pre">I</span></code> と <code class="docutils literal"><span class="pre">fast</span></code> の間の単語数はちょうど10です。</p>
|
2233
|
+
<p>二番目の式は <code class="docutils literal"><span class="pre">I</span></code> と <code class="docutils literal"><span class="pre">Really</span></code> が含まれていて、かつ、これらの単語が10単語以内近くにあるレコードにマッチします。そのため、 <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> <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> はマッチしません。 <code class="docutils literal"><span class="pre">I</span></code> と <code class="docutils literal"><span class="pre">Really</span></code> の間の単語数は11です。</p>
|
2234
|
+
<p>三番目の式は <code class="docutils literal"><span class="pre">also</span></code> と <code class="docutils literal"><span class="pre">Really</span></code> が含まれていて、かつ、これらの単語が10単語以内近くにあるレコードにマッチします。そのため、 <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> <span class="pre">fast!</span> <span class="pre">Really</span> <span class="pre">fast!</span></code> にマッチします。 <code class="docutils literal"><span class="pre">also</span></code> と <code class="docutils literal"><span class="pre">Really</span></code> の間の単語数は10です。</p>
|
2235
2235
|
</div>
|
2236
2236
|
<div class="section" id="similar-search">
|
2237
|
-
<span id="similar-search-operator"></span><h3>7.12.2.9.5. 類似文書検索<a class="headerlink" href="#similar-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2238
|
-
<p>構文は <
|
2239
|
-
<p>この演算子は <
|
2240
|
-
<p><
|
2237
|
+
<span id="script-syntax-similar-search-operator"></span><h3>7.12.2.9.5. 類似文書検索<a class="headerlink" href="#similar-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2238
|
+
<p>構文は <code class="docutils literal"><span class="pre">column</span> <span class="pre">*S</span> <span class="pre">"document"</span></code> です。</p>
|
2239
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">document</span></code> という文書で類似文書検索します。類似文書検索は <code class="docutils literal"><span class="pre">document</span></code> と似た内容を持つレコードを検索します。</p>
|
2240
|
+
<p><code class="docutils literal"><span class="pre">column</span></code> 用の全文検索用インデックスカラムを定義しておく必要があることに注意してください。</p>
|
2241
2241
|
<p>以下は簡単な使用例です。</p>
|
2242
2242
|
<p>実行例:</p>
|
2243
2243
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *S "I migrated all Solr system!"' --output_columns content
|
@@ -2269,16 +2269,16 @@ select Entries --filter 'content *N "also Really"' --output_co
|
|
2269
2269
|
# ]
|
2270
2270
|
</pre></div>
|
2271
2271
|
</div>
|
2272
|
-
<p>この式は <
|
2272
|
+
<p>この式は <code class="docutils literal"><span class="pre">I</span> <span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></code> と似た内容を持つレコードを検索します。この場合は、 <code class="docutils literal"><span class="pre">I</span> <span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">XXX</span> <span class="pre">system!</span></code> という内容のレコードがマッチします。</p>
|
2273
2273
|
</div>
|
2274
2274
|
<div class="section" id="term-extract-operator">
|
2275
|
-
<span id="
|
2276
|
-
<p>構文は <
|
2277
|
-
<p>この演算子は <
|
2278
|
-
<p>テーブルはパトリシアトライ( <
|
2275
|
+
<span id="script-syntax-term-extract-operator"></span><h3>7.12.2.9.6. 単語抽出演算子<a class="headerlink" href="#term-extract-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2276
|
+
<p>構文は <code class="docutils literal"><span class="pre">_key</span> <span class="pre">*T</span> <span class="pre">"document"</span></code> です。</p>
|
2277
|
+
<p>この演算子は <code class="docutils literal"><span class="pre">document</span></code> から単語を抽出します。単語は <code class="docutils literal"><span class="pre">_key</span></code> のテーブルのキーとして登録されていなければいけません。</p>
|
2278
|
+
<p>テーブルはパトリシアトライ( <code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code> )またはダブル配列トライ( <code class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></code> )でなければいけません。ハッシュテーブル( <code class="docutils literal"><span class="pre">TABLE_HASH_KEY</span></code> )や配列( <code class="docutils literal"><span class="pre">TABLE_NO_KEY</span></code> )は最長共通接頭辞検索(Longest Common Prefix Search)できないため使えません。この演算子は最長共通接頭辞検索を使っています。</p>
|
2279
2279
|
<p>以下は簡単な使用例です。</p>
|
2280
2280
|
<p>実行例:</p>
|
2281
|
-
<div class="highlight-none"><div class="highlight"><pre>table_create Words TABLE_PAT_KEY
|
2281
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Words TABLE_PAT_KEY ShortText --normalizer NormalizerAuto
|
2282
2282
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
2283
2283
|
load --table Words
|
2284
2284
|
[
|
@@ -2317,17 +2317,17 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2317
2317
|
# ]
|
2318
2318
|
</pre></div>
|
2319
2319
|
</div>
|
2320
|
-
<p>この式は文書 <
|
2320
|
+
<p>この式は文書 <code class="docutils literal"><span class="pre">Groonga</span> <span class="pre">is</span> <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> に含まれている単語を抽出します。今回は <code class="docutils literal"><span class="pre">Words</span></code> に <code class="docutils literal"><span class="pre">NormalizerAuto</span></code> ノーマライザーが指定されています。そのため、 <code class="docutils literal"><span class="pre">Words</span></code> には <code class="docutils literal"><span class="pre">groonga</span></code> とロードしていますが <code class="docutils literal"><span class="pre">Groonga</span></code> も抽出できています。また、すべてての抽出された単語も正規化されています。</p>
|
2321
2321
|
</div>
|
2322
2322
|
<div class="section" id="regular-expression-operator">
|
2323
|
-
<span id="script-regular-expression-operator"></span><h3>7.12.2.9.7. 正規表現演算子<a class="headerlink" href="#regular-expression-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2323
|
+
<span id="script-syntax-regular-expression-operator"></span><h3>7.12.2.9.7. 正規表現演算子<a class="headerlink" href="#regular-expression-operator" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
2324
2324
|
<div class="versionadded">
|
2325
2325
|
<p><span class="versionmodified">バージョン 5.0.1 で追加.</span></p>
|
2326
2326
|
</div>
|
2327
|
-
<p>構文は <
|
2328
|
-
<p>この演算子は正規表現 <
|
2329
|
-
<p><
|
2330
|
-
<p>以下の例はパターンとして <
|
2327
|
+
<p>構文は <code class="docutils literal"><span class="pre">column</span> <span class="pre">@~</span> <span class="pre">"pattern"</span></code> です。</p>
|
2328
|
+
<p>この演算子は正規表現 <code class="docutils literal"><span class="pre">pattern</span></code> でレコードを検索します。もし、レコードの <code class="docutils literal"><span class="pre">column</span></code> の値が <code class="docutils literal"><span class="pre">pattern</span></code> にマッチしたら、そのレコードはマッチしたということです。</p>
|
2329
|
+
<p><code class="docutils literal"><span class="pre">pattern</span></code> は正規表現の構文になっていなければいけません。正規表現の構文の詳細は <a class="reference internal" href="../regular_expression.html"><em>正規表現</em></a> を参照してください。</p>
|
2330
|
+
<p>以下の例はパターンとして <code class="docutils literal"><span class="pre">.roonga</span></code> を使っています。このパターンは <code class="docutils literal"><span class="pre">Groonga</span></code> 、 <code class="docutils literal"><span class="pre">Mroonga</span></code> といった文字列にマッチします。</p>
|
2331
2331
|
<p>実行例:</p>
|
2332
2332
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @~ ".roonga"'
|
2333
2333
|
# [
|
@@ -2386,7 +2386,7 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2386
2386
|
</div>
|
2387
2387
|
</div>
|
2388
2388
|
</div>
|
2389
|
-
<div class="sphinxsidebar">
|
2389
|
+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
2390
2390
|
<div class="sphinxsidebarwrapper">
|
2391
2391
|
<h3><a href="../../index.html">目次</a></h3>
|
2392
2392
|
<ul>
|
@@ -2481,12 +2481,14 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2481
2481
|
<h4>次のトピックへ</h4>
|
2482
2482
|
<p class="topless"><a href="../regular_expression.html"
|
2483
2483
|
title="次の章へ">7.13. 正規表現</a></p>
|
2484
|
-
<
|
2485
|
-
|
2486
|
-
<
|
2487
|
-
|
2488
|
-
|
2489
|
-
|
2484
|
+
<div role="note" aria-label="source link">
|
2485
|
+
<h3>このページ</h3>
|
2486
|
+
<ul class="this-page-menu">
|
2487
|
+
<li><a href="../../_sources/reference/grn_expr/script_syntax.txt"
|
2488
|
+
rel="nofollow">ソースコードを表示</a></li>
|
2489
|
+
</ul>
|
2490
|
+
</div>
|
2491
|
+
<div id="searchbox" style="display: none" role="search">
|
2490
2492
|
<h3>クイック検索</h3>
|
2491
2493
|
<form class="search" action="../../search.html" method="get">
|
2492
2494
|
<input type="text" name="q" />
|
@@ -2503,7 +2505,7 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2503
2505
|
</div>
|
2504
2506
|
<div class="clearer"></div>
|
2505
2507
|
</div>
|
2506
|
-
<div class="related">
|
2508
|
+
<div class="related" role="navigation" aria-label="related navigation">
|
2507
2509
|
<h3>ナビゲーション</h3>
|
2508
2510
|
<ul>
|
2509
2511
|
<li class="right" style="margin-right: 10px">
|
@@ -2515,12 +2517,12 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2515
2517
|
<li class="right" >
|
2516
2518
|
<a href="query_syntax.html" title="7.12.1. クエリー構文"
|
2517
2519
|
>前へ</a> |</li>
|
2518
|
-
<li><a href="../../index.html">Groonga v5.0.
|
2519
|
-
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
2520
|
-
<li><a href="../grn_expr.html" >7.12. grn_expr</a> »</li>
|
2520
|
+
<li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7ドキュメント</a> »</li>
|
2521
|
+
<li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
2522
|
+
<li class="nav-item nav-item-2"><a href="../grn_expr.html" >7.12. grn_expr</a> »</li>
|
2521
2523
|
</ul>
|
2522
2524
|
</div>
|
2523
|
-
<div class="footer">
|
2525
|
+
<div class="footer" role="contentinfo">
|
2524
2526
|
© Copyright 2009-2015, Brazil, Inc.
|
2525
2527
|
</div>
|
2526
2528
|
</body>
|