rroonga 5.0.0-x64-mingw32 → 5.0.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.yardopts +1 -0
- data/Rakefile +1 -16
- data/example/bookmark.rb +1 -6
- data/example/index-html.rb +0 -1
- data/ext/groonga/extconf.rb +4 -7
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-column.c +33 -67
- data/ext/groonga/rb-grn-context.c +5 -5
- data/ext/groonga/rb-grn-database.c +2 -2
- data/ext/groonga/rb-grn-double-array-trie.c +4 -2
- data/ext/groonga/rb-grn-encoding-support.c +7 -1
- data/ext/groonga/rb-grn-equal-operator.c +85 -0
- data/ext/groonga/rb-grn-exception.c +17 -0
- data/ext/groonga/rb-grn-expression.c +85 -43
- data/ext/groonga/rb-grn-greater-equal-operator.c +88 -0
- data/ext/groonga/rb-grn-greater-operator.c +85 -0
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +150 -11
- data/ext/groonga/rb-grn-less-equal-operator.c +88 -0
- data/ext/groonga/rb-grn-less-operator.c +85 -0
- data/ext/groonga/rb-grn-logger.c +5 -5
- data/ext/groonga/rb-grn-match-operator.c +86 -0
- data/ext/groonga/rb-grn-normalizer.c +8 -1
- data/ext/groonga/rb-grn-not-equal-operator.c +85 -0
- data/ext/groonga/rb-grn-object.c +170 -36
- data/ext/groonga/rb-grn-operator.c +395 -172
- data/ext/groonga/rb-grn-patricia-trie.c +10 -8
- data/ext/groonga/rb-grn-plugin.c +51 -3
- data/ext/groonga/rb-grn-prefix-operator.c +86 -0
- data/ext/groonga/rb-grn-procedure-type.c +4 -0
- data/ext/groonga/rb-grn-query-logger.c +4 -4
- data/ext/groonga/rb-grn-regexp-operator.c +85 -0
- data/ext/groonga/rb-grn-snippet.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +9 -5
- data/ext/groonga/rb-grn-table.c +52 -66
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +22 -3
- data/ext/groonga/rb-grn.h +31 -4
- data/ext/groonga/rb-groonga.c +9 -9
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/groonga/context.rb +31 -0
- data/lib/groonga/expression-builder.rb +14 -1
- data/lib/groonga/record.rb +10 -8
- data/lib/groonga/schema.rb +3 -1
- data/rroonga-build.rb +2 -2
- data/rroonga.gemspec +3 -3
- data/test/groonga-test-utils.rb +4 -0
- data/test/test-column.rb +28 -26
- data/test/test-exception.rb +1 -0
- data/test/test-expression-builder.rb +83 -1
- data/test/test-expression.rb +80 -48
- data/test/test-index-column.rb +102 -29
- data/test/test-normalizer.rb +35 -29
- data/test/test-operator.rb +214 -0
- data/test/test-plugin.rb +24 -6
- data/test/test-procedure.rb +29 -0
- data/test/test-schema-type.rb +14 -0
- data/test/test-table-select-mecab.rb +1 -4
- data/test/test-table.rb +7 -0
- data/test/test-token-regexp.rb +30 -0
- data/test/test-type.rb +24 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onig-config +1 -1
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/groonga.conf +1 -1
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga/expr.h +2 -0
- data/vendor/local/include/groonga/groonga/groonga.h +32 -5
- data/vendor/local/include/groonga/groonga/ii.h +7 -0
- data/vendor/local/include/groonga/groonga/obj.h +37 -0
- data/vendor/local/include/groonga/groonga/scorer.h +95 -0
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +6 -3
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +6 -5
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +421 -17
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/groonga/scripts/ruby/backtrace_entry.rb +12 -4
- data/vendor/local/lib/groonga/scripts/ruby/database.rb +11 -3
- data/vendor/local/lib/groonga/scripts/ruby/expression.rb +23 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +158 -0
- data/vendor/local/lib/groonga/scripts/ruby/index_column.rb +39 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +4 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +2 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger.rb +11 -7
- data/vendor/local/lib/groonga/scripts/ruby/object.rb +11 -0
- data/vendor/local/lib/groonga/scripts/ruby/operator.rb +22 -0
- data/vendor/local/lib/groonga/scripts/ruby/scan_info.rb +7 -2
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +7 -11
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +137 -34
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_search_index.rb +9 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +2 -2
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +2 -2
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +2 -2
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
- data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
- data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_images/used-when-indexing.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_images/used-when-searching.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +32 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +194 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +42 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/overview.txt +54 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_list.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +173 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +112 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +7 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_register.txt +64 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_unregister.txt +63 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +11 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +3 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +12 -12
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +47 -26
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/between.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_values.txt +54 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +44 -18
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +41 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +4 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/regular_expression.txt +403 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorer.txt +217 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_at_most.txt +22 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_idf.txt +110 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scoring_note.txt +13 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tables.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +530 -16
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/memcached.txt +15 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +66 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +0 -81
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +6 -68
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +1 -26
- data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +9404 -4
- data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/client.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/community.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +51 -38
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/development.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/genindex.html +26 -14
- data/vendor/local/share/doc/groonga/en/html/index.html +150 -130
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/install/others.html +87 -89
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +25 -27
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/install.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +27 -29
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +98 -100
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +102 -104
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news.html +256 -27
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +60 -62
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +80 -82
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +130 -80
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +48 -50
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +79 -81
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +41 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +41 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +89 -91
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +75 -77
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +64 -66
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +202 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +58 -60
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +51 -52
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +58 -60
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +53 -55
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +94 -96
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +56 -54
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +23 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +71 -73
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +49 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +23 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +314 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +252 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +87 -89
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +195 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +193 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +61 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +72 -74
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +590 -592
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +92 -94
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +152 -154
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +103 -105
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +52 -54
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +21 -23
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +73 -75
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +34 -36
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +124 -90
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +66 -68
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +113 -115
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +55 -57
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +65 -67
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +135 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +67 -69
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +66 -70
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +349 -286
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +483 -417
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +30 -31
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +60 -62
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +931 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +442 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +153 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +287 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +114 -0
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +51 -53
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +52 -54
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +36 -38
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +1394 -34
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +57 -59
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference.html +139 -118
- data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +29 -31
- data/vendor/local/share/doc/groonga/en/html/server/http.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +137 -0
- data/vendor/local/share/doc/groonga/en/html/server/package.html +36 -38
- data/vendor/local/share/doc/groonga/en/html/server.html +23 -24
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +208 -129
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/spec.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +31 -33
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +21 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +50 -52
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +27 -125
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +33 -35
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +21 -25
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_images/used-when-indexing.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_images/used-when-searching.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +32 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +194 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +42 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/overview.txt +54 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_list.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +173 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +112 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +7 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_register.txt +64 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_unregister.txt +63 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +11 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +3 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +12 -12
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +47 -26
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/between.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_values.txt +54 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +44 -18
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +41 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +4 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/regular_expression.txt +403 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorer.txt +217 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_at_most.txt +22 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_idf.txt +110 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scoring_note.txt +13 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tables.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +530 -16
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/memcached.txt +15 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +66 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +0 -81
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +6 -68
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +1 -26
- data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +9404 -4
- data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/client.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +51 -38
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/development.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +26 -14
- data/vendor/local/share/doc/groonga/ja/html/index.html +150 -130
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +31 -33
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +25 -27
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +78 -80
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/install.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +27 -29
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +91 -93
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +59 -61
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news.html +210 -27
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +80 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +126 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +74 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +41 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +41 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +75 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +64 -66
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +197 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +58 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +51 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +93 -95
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +56 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +62 -64
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +33 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +314 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +250 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +80 -81
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +188 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +190 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +57 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +71 -73
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +394 -396
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +78 -80
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +123 -125
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +61 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +51 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +61 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +34 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +126 -90
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +63 -65
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +94 -96
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +45 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +66 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +135 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +70 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +56 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +229 -171
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +381 -322
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +36 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +34 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +878 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +442 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +154 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +287 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +115 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +45 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +1300 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +57 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference.html +139 -118
- data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +62 -64
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +138 -0
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/server.html +23 -24
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +207 -128
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/spec.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +47 -49
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +27 -125
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +31 -33
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -25
- data/vendor/local/share/license/mruby/README.md +2 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +6205 -2251
- data/vendor/local/share/man/man1/groonga.1 +7210 -3029
- metadata +75 -11
- data/doc/text/news.textile +0 -1217
- data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +0 -10308
- data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +0 -999
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +0 -10308
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +0 -999
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>7.
|
10
|
+
<title>7.12.1. クエリー構文 — Groonga v5.0.1-42-g4d10df1ドキュメント</title>
|
11
11
|
|
12
12
|
<link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
|
13
13
|
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript">
|
16
16
|
var DOCUMENTATION_OPTIONS = {
|
17
17
|
URL_ROOT: '../../',
|
18
|
-
VERSION: '5.0.
|
18
|
+
VERSION: '5.0.1-42-g4d10df1',
|
19
19
|
COLLAPSE_INDEX: false,
|
20
20
|
FILE_SUFFIX: '.html',
|
21
21
|
HAS_SOURCE: true
|
@@ -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.
|
30
|
-
<link rel="up" title="7.
|
31
|
-
<link rel="next" title="7.
|
32
|
-
<link rel="prev" title="7.
|
29
|
+
<link rel="top" title="Groonga v5.0.1-42-g4d10df1ドキュメント" href="../../index.html" />
|
30
|
+
<link rel="up" title="7.12. grn_expr" href="../grn_expr.html" />
|
31
|
+
<link rel="next" title="7.12.2. スクリプト構文" href="script_syntax.html" />
|
32
|
+
<link rel="prev" title="7.12. grn_expr" href="../grn_expr.html" />
|
33
33
|
</head>
|
34
|
-
<body
|
34
|
+
<body>
|
35
35
|
<div class="header">
|
36
36
|
<h1 class="title">
|
37
37
|
<a id="top-link" href="../../index.html">
|
@@ -49,36 +49,36 @@
|
|
49
49
|
</div>
|
50
50
|
|
51
51
|
|
52
|
-
<div class="related"
|
52
|
+
<div class="related">
|
53
53
|
<h3>ナビゲーション</h3>
|
54
54
|
<ul>
|
55
55
|
<li class="right" style="margin-right: 10px">
|
56
56
|
<a href="../../genindex.html" title="総合索引"
|
57
57
|
accesskey="I">索引</a></li>
|
58
58
|
<li class="right" >
|
59
|
-
<a href="script_syntax.html" title="7.
|
59
|
+
<a href="script_syntax.html" title="7.12.2. スクリプト構文"
|
60
60
|
accesskey="N">次へ</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="../grn_expr.html" title="7.
|
62
|
+
<a href="../grn_expr.html" title="7.12. grn_expr"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../../index.html">Groonga v5.0.
|
64
|
+
<li><a href="../../index.html">Groonga v5.0.1-42-g4d10df1ドキュメント</a> »</li>
|
65
65
|
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
66
|
-
<li><a href="../grn_expr.html" accesskey="U">7.
|
66
|
+
<li><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">
|
74
74
|
|
75
75
|
<div class="section" id="query-syntax">
|
76
|
-
<h1>7.
|
77
|
-
<p>クエリー構文は一般的なWebの検索フォームで検索条件を指定するための構文です。Googleの検索フォームで使われている構文に似ています。例えば、 <
|
78
|
-
<p>クエリー構文は <
|
79
|
-
<p><
|
76
|
+
<h1>7.12.1. クエリー構文<a class="headerlink" href="#query-syntax" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
|
+
<p>クエリー構文は一般的なWebの検索フォームで検索条件を指定するための構文です。Googleの検索フォームで使われている構文に似ています。例えば、 <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span></tt> は <tt class="docutils literal"><span class="pre">word1</span></tt> と <tt class="docutils literal"><span class="pre">word2</span></tt> の両方の単語を含んだレコードを検索するという意味です。 <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">OR</span> <span class="pre">word2</span></tt> は <tt class="docutils literal"><span class="pre">word1</span></tt> または <tt class="docutils literal"><span class="pre">word2</span></tt> のどちらかの単語を含んだレコードを検索します。</p>
|
78
|
+
<p>クエリー構文は <tt class="docutils literal"><span class="pre">条件式</span></tt> と <tt class="docutils literal"><span class="pre">結合式</span></tt> と <tt class="docutils literal"><span class="pre">代入式</span></tt> から成ります。通常、 <tt class="docutils literal"><span class="pre">代入式</span></tt> は考えなくてよいです。なぜなら、 <tt class="docutils literal"><span class="pre">代入式</span></tt> は <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">--query</span></tt> オプションでは無効になっているからです。groongaをライブラリとして使ったときは、クエリー構文のパーサーのオプションをカスタマイズすることで <tt class="docutils literal"><span class="pre">代入式</span></tt> を有効にすることができます。</p>
|
79
|
+
<p><tt class="docutils literal"><span class="pre">条件式</span></tt> は条件を指定します。 <tt class="docutils literal"><span class="pre">結合式</span></tt> は1つ以上の <tt class="docutils literal"><span class="pre">条件式</span></tt> 、 <tt class="docutils literal"><span class="pre">結合式</span></tt> 、 <tt class="docutils literal"><span class="pre">代入式</span></tt> から成ります。 <tt class="docutils literal"><span class="pre">代入式</span></tt> はカラムに値を代入します。</p>
|
80
80
|
<div class="section" id="sample-data">
|
81
|
-
<h2>7.
|
81
|
+
<h2>7.12.1.1. サンプルデータ<a class="headerlink" href="#sample-data" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
82
82
|
<p>使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。</p>
|
83
83
|
<p>実行例:</p>
|
84
84
|
<div class="highlight-none"><div class="highlight"><pre>table_create Entries TABLE_PAT_KEY ShortText
|
@@ -114,46 +114,46 @@ load --table Entries
|
|
114
114
|
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
115
115
|
</pre></div>
|
116
116
|
</div>
|
117
|
-
<p>ブログエントリ用の <
|
118
|
-
<p><
|
117
|
+
<p>ブログエントリ用の <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルがあります。各エントリはタイトルと内容と「いいね!」数を持っています。タイトルは <tt class="docutils literal"><span class="pre">Entries</span></tt> のキーとします。内容は <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムの値とします。「いいね!」数は <tt class="docutils literal"><span class="pre">Entries.n_likes</span></tt> カラムの値とします。</p>
|
118
|
+
<p><tt class="docutils literal"><span class="pre">Entries._key</span></tt> カラムと <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムには <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> トークナイザーを使ったインデックスを作成します。そのため、 <tt class="docutils literal"><span class="pre">Entries._key</span></tt> と <tt class="docutils literal"><span class="pre">Entries.content</span></tt> は両方とも全文検索できます。</p>
|
119
119
|
<p>これで例を示すためのスキーマとデータの準備ができました。</p>
|
120
120
|
</div>
|
121
121
|
<div class="section" id="escape">
|
122
|
-
<h2>7.
|
123
|
-
<p>クエリー構文には特別な文字があります。特別な文字それ自体を使うためには文字の前に <
|
122
|
+
<h2>7.12.1.2. エスケープ<a class="headerlink" href="#escape" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
123
|
+
<p>クエリー構文には特別な文字があります。特別な文字それ自体を使うためには文字の前に <tt class="docutils literal"><span class="pre">\</span></tt> をつけてエスケープしなければいけません。例えば、 <tt class="docutils literal"><span class="pre">"</span></tt> は特別な文字です。これは <tt class="docutils literal"><span class="pre">\"</span></tt> というようにエスケープします。</p>
|
124
124
|
<p>以下が特別な文字のリストです:</p>
|
125
125
|
<blockquote>
|
126
126
|
<div><ul class="simple">
|
127
|
-
<li><p class="first"><
|
127
|
+
<li><p class="first"><tt class="docutils literal"><span class="pre">[space]</span></tt> ( <tt class="docutils literal"><span class="pre">[backslash][space]</span></tt> とエスケープする。)( <tt class="docutils literal"><span class="pre">[space]</span></tt> をASCIIで言えば0x20の空白文字に置き換えて、 <tt class="docutils literal"><span class="pre">[backslash]</span></tt> を <tt class="docutils literal"><span class="pre">\\</span></tt> に置き換えてください。)</p>
|
128
128
|
</li>
|
129
|
-
<li><p class="first"><
|
129
|
+
<li><p class="first"><tt class="docutils literal"><span class="pre">"</span></tt> ( <tt class="docutils literal"><span class="pre">\"</span></tt> とエスケープする。)</p>
|
130
130
|
</li>
|
131
|
-
<li><p class="first"><
|
131
|
+
<li><p class="first"><tt class="docutils literal"><span class="pre">'</span></tt> ( <tt class="docutils literal"><span class="pre">\'</span></tt> とエスケープする。)</p>
|
132
132
|
</li>
|
133
|
-
<li><p class="first"><
|
133
|
+
<li><p class="first"><tt class="docutils literal"><span class="pre">(</span></tt> ( <tt class="docutils literal"><span class="pre">\(</span></tt> とエスケープする。)</p>
|
134
134
|
</li>
|
135
|
-
<li><p class="first"><
|
135
|
+
<li><p class="first"><tt class="docutils literal"><span class="pre">)</span></tt> ( <tt class="docutils literal"><span class="pre">\)</span></tt> とエスケープする。)</p>
|
136
136
|
</li>
|
137
|
-
<li><p class="first"><
|
137
|
+
<li><p class="first"><tt class="docutils literal"><span class="pre">\</span></tt> ( <tt class="docutils literal"><span class="pre">\\</span></tt> とエスケープする。)</p>
|
138
138
|
</li>
|
139
139
|
</ul>
|
140
140
|
</div></blockquote>
|
141
|
-
<p><
|
142
|
-
<p>クォート構文は <
|
141
|
+
<p><tt class="docutils literal"><span class="pre">\</span></tt> (バックスラッシュ)以外はエスケープする代わりにクォートすることもできます。クォート中でバックスラッシュをエスケープするときは <tt class="docutils literal"><span class="pre">\\</span></tt> というようにバックスラッシュを使います。</p>
|
142
|
+
<p>クォート構文は <tt class="docutils literal"><span class="pre">"..."</span></tt> または <tt class="docutils literal"><span class="pre">'...'</span></tt> です。 <tt class="docutils literal"><span class="pre">"..."</span></tt> クォート構文中では <tt class="docutils literal"><span class="pre">"</span></tt> を <tt class="docutils literal"><span class="pre">\"</span></tt> にエスケープする必要があります。 <tt class="docutils literal"><span class="pre">'...'</span></tt> クォート構文中では <tt class="docutils literal"><span class="pre">'</span></tt> を <tt class="docutils literal"><span class="pre">\'</span></tt> にエスケープする必要があります。例えば、 <tt class="docutils literal"><span class="pre">Alice's</span> <span class="pre">brother</span> <span class="pre">(Bob)</span></tt> は <tt class="docutils literal"><span class="pre">"Alice's</span> <span class="pre">brother</span> <span class="pre">(Bob)"</span></tt> あるいは <tt class="docutils literal"><span class="pre">'Alice\'s</span> <span class="pre">brother</span> <span class="pre">(Bob)'</span></tt> とクォートします。</p>
|
143
143
|
<div class="admonition note">
|
144
144
|
<p class="first admonition-title">注釈</p>
|
145
|
-
<p class="last">注意しなければならない大事な点があります。<
|
145
|
+
<p class="last">注意しなければならない大事な点があります。<tt class="docutils literal"><span class="pre">\</span></tt> (バックスラッシュ)はコマンドラインシェルが解釈します。それゆえ例えば <tt class="docutils literal"><span class="pre">(</span></tt> それ自体を検索したいならシェルでは二重にエスケープ (<tt class="docutils literal"><span class="pre">\\(</span></tt>) しなければなりません。コマンドラインシェルは <tt class="docutils literal"><span class="pre">\\(</span></tt> を <tt class="docutils literal"><span class="pre">\(</span></tt> と解釈してからGroongaに渡します。Groongaは <tt class="docutils literal"><span class="pre">\(</span></tt> を <tt class="docutils literal"><span class="pre">(</span></tt> とみなし、<tt class="docutils literal"><span class="pre">(</span></tt> 自体をデータベースから検索します。もし意図した検索がGroongaで行えないなら、特別な文字を正しくエスケープしているか確認します。</p>
|
146
146
|
</div>
|
147
147
|
</div>
|
148
148
|
<div class="section" id="conditional-expression">
|
149
|
-
<span id="id1"></span><h2>7.
|
149
|
+
<span id="id1"></span><h2>7.12.1.3. 条件式<a class="headerlink" href="#conditional-expression" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
150
150
|
<p>以下は利用可能な条件式の一覧です。</p>
|
151
151
|
<div class="section" id="full-text-search-condition">
|
152
|
-
<span id="id2"></span><h3>7.
|
153
|
-
<p>構文は <
|
154
|
-
<p><
|
155
|
-
<p>全文検索に使うデフォルトのマッチカラムを指定する必要があります。マッチカラムは <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <
|
156
|
-
<p>この条件式は <
|
152
|
+
<span id="id2"></span><h3>7.12.1.3.1. 全文検索条件<a class="headerlink" href="#full-text-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
153
|
+
<p>構文は <tt class="docutils literal"><span class="pre">keyword</span></tt> です。</p>
|
154
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> はデフォルトのマッチカラムに対して全文検索するという条件を指定します。マッチカラムとは全文検索対象のカラムのことです。</p>
|
155
|
+
<p>全文検索に使うデフォルトのマッチカラムを指定する必要があります。マッチカラムは <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">--match_columns</span></tt> オプションで指定します。デフォルトのマッチカラムを指定していない場合、この条件式は失敗します。</p>
|
156
|
+
<p>この条件式は <tt class="docutils literal"><span class="pre">keyword</span></tt> で全文検索をします。 <tt class="docutils literal"><span class="pre">keyword</span></tt> には空白を含めることはできません。 <tt class="docutils literal"><span class="pre">search</span> <span class="pre">keyword</span></tt> というように空白を含んでいる場合は、 <tt class="docutils literal"><span class="pre">search</span></tt> と <tt class="docutils literal"><span class="pre">keyword</span></tt> という2つの全文検索条件を指定したことになります。もし、キーワードに空白を含めたい場合は以下で説明する <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> を使ってください。</p>
|
157
157
|
<p>以下は簡単な使用例です。</p>
|
158
158
|
<p>実行例:</p>
|
159
159
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast
|
@@ -203,15 +203,15 @@ load --table Entries
|
|
203
203
|
# ]
|
204
204
|
</pre></div>
|
205
205
|
</div>
|
206
|
-
<p>この式は <
|
207
|
-
<p><
|
206
|
+
<p>この式は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> という単語を含んでいるレコードにマッチします。</p>
|
207
|
+
<p><tt class="docutils literal"><span class="pre">content</span></tt> カラムはデフォルトのマッチカラムです。</p>
|
208
208
|
</div>
|
209
209
|
<div class="section" id="phrase-search-condition">
|
210
|
-
<span id="id3"></span><h3>7.
|
211
|
-
<p>構文は <
|
212
|
-
<p><
|
213
|
-
<p>全文検索に使うデフォルトのマッチカラムを指定する必要があります。マッチカラムは <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <
|
214
|
-
<p>この条件式は <
|
210
|
+
<span id="id3"></span><h3>7.12.1.3.2. フレーズ検索条件<a class="headerlink" href="#phrase-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
211
|
+
<p>構文は <tt class="docutils literal"><span class="pre">"search</span> <span class="pre">keyword"</span></tt> です。</p>
|
212
|
+
<p><tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> はデフォルトのマッチカラムに対してフレーズ検索するという条件を指定します。</p>
|
213
|
+
<p>全文検索に使うデフォルトのマッチカラムを指定する必要があります。マッチカラムは <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">--match_columns</span></tt> オプションで指定します。デフォルトのマッチカラムを指定していない場合、この条件式は失敗します。</p>
|
214
|
+
<p>この条件式は <tt class="docutils literal"><span class="pre">search</span> <span class="pre">keyword</span></tt> でフレーズ検索をします。フレーズ検索は <tt class="docutils literal"><span class="pre">search</span></tt> と <tt class="docutils literal"><span class="pre">keyword</span></tt> がこの順番で隣接して含まれているレコードにマッチします。つまり、 <tt class="docutils literal"><span class="pre">Put</span> <span class="pre">a</span> <span class="pre">search</span> <span class="pre">keyword</span> <span class="pre">in</span> <span class="pre">the</span> <span class="pre">form</span></tt> にはマッチしますが、 <tt class="docutils literal"><span class="pre">Search</span> <span class="pre">by</span> <span class="pre">the</span> <span class="pre">keyword</span></tt> や <tt class="docutils literal"><span class="pre">There</span> <span class="pre">is</span> <span class="pre">a</span> <span class="pre">keyword.</span> <span class="pre">Search</span> <span class="pre">by</span> <span class="pre">it!</span></tt> にはマッチしません。</p>
|
215
215
|
<p>以下は簡単な使用例です。</p>
|
216
216
|
<p>実行例:</p>
|
217
217
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query '"I started"'
|
@@ -255,15 +255,15 @@ load --table Entries
|
|
255
255
|
# ]
|
256
256
|
</pre></div>
|
257
257
|
</div>
|
258
|
-
<p>この式は <
|
259
|
-
<p><
|
258
|
+
<p>この式は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">I</span> <span class="pre">started</span></tt> というフレーズを含んでいるレコードにマッチします。 <tt class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span></tt> にはマッチしません。これは <tt class="docutils literal"><span class="pre">I</span></tt> と <tt class="docutils literal"><span class="pre">started</span></tt> が隣接していないからです。</p>
|
259
|
+
<p><tt class="docutils literal"><span class="pre">content</span></tt> カラムはデフォルトのマッチカラムです。</p>
|
260
260
|
</div>
|
261
261
|
<div class="section" id="full-text-search-condition-with-explicit-match-column">
|
262
|
-
<h3>7.
|
263
|
-
<p>構文は <
|
264
|
-
<p>これは <
|
265
|
-
<p>この条件式は異なったカラムに対して複数の全文検索をしたい場合に便利です。 <
|
266
|
-
<p><
|
262
|
+
<h3>7.12.1.3.3. 全文検索条件(マッチカラム指定あり)<a class="headerlink" href="#full-text-search-condition-with-explicit-match-column" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
263
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:@keyword</span></tt> です。</p>
|
264
|
+
<p>これは <tt class="docutils literal"><span class="pre">全文検索条件</span></tt> と似ていますが、デフォルトのマッチカラムは必要ありません。全文検索用のマッチカラムは <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">--match_columns</span></tt> オプションではなく <tt class="docutils literal"><span class="pre">column:</span></tt> で指定します。</p>
|
265
|
+
<p>この条件式は異なったカラムに対して複数の全文検索をしたい場合に便利です。 <tt class="docutils literal"><span class="pre">--match_columns</span></tt> オプションで指定するデフォルトのマッチカラムは複数回指定することができません。2つめのマッチカラムを指定するためにはこの条件式を使う必要があります。</p>
|
266
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> と <tt class="docutils literal"><span class="pre">全文検索条件(マッチカラム指定あり)</span></tt> の違いは高度なマッチカラムをサポートしているかどうかです。 <tt class="docutils literal"><span class="pre">全文検索条件</span></tt> は高度なマッチカラムをサポートしていますが、 <tt class="docutils literal"><span class="pre">全文検索条件(マッチカラム指定あり)</span></tt> はサポートしていません。高度なマッチカラムには以下の機能があります:</p>
|
267
267
|
<blockquote>
|
268
268
|
<div><ul class="simple">
|
269
269
|
<li><p class="first">重みをサポートしている。</p>
|
@@ -274,7 +274,7 @@ load --table Entries
|
|
274
274
|
</li>
|
275
275
|
</ul>
|
276
276
|
</div></blockquote>
|
277
|
-
<p>これらについては <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <
|
277
|
+
<p>これらについては <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">--match_columns</span></tt> オプションを参照してください。</p>
|
278
278
|
<p>以下は簡単な使用例です。</p>
|
279
279
|
<p>実行例:</p>
|
280
280
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@fast
|
@@ -324,13 +324,13 @@ load --table Entries
|
|
324
324
|
# ]
|
325
325
|
</pre></div>
|
326
326
|
</div>
|
327
|
-
<p>この式は <
|
327
|
+
<p>この式は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> という単語を含んでいるレコードにマッチします。</p>
|
328
328
|
</div>
|
329
329
|
<div class="section" id="phrase-search-condition-with-explicit-match-column">
|
330
|
-
<h3>7.
|
331
|
-
<p>構文は <
|
332
|
-
<p>これは <
|
333
|
-
<p><
|
330
|
+
<h3>7.12.1.3.4. フレーズ検索条件(マッチカラム指定あり)<a class="headerlink" href="#phrase-search-condition-with-explicit-match-column" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
331
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:@"search</span> <span class="pre">keyword"</span></tt> です。</p>
|
332
|
+
<p>これは <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> に似ていますが、デフォルトのマッチカラムは必要ありません。フレーズ検索用のマッチカラムは <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">--match_columns</span></tt> オプションではなく <tt class="docutils literal"><span class="pre">column:</span></tt> で指定します。</p>
|
333
|
+
<p><tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と <tt class="docutils literal"><span class="pre">フレーズ検索条件(マッチカラム指定あり)</span></tt> は <tt class="docutils literal"><span class="pre">全文検索条件</span></tt> と <tt class="docutils literal"><span class="pre">全文検索条件(マッチカラム指定あり)</span></tt> の関係と似ています。 <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> は高度なマッチカラムをサポートしていますが、 <tt class="docutils literal"><span class="pre">フレーズ検索条件(マッチカラム指定あり)</span></tt> はサポートしていません。高度なマッチカラムについては <tt class="docutils literal"><span class="pre">全文検索条件(マッチカラム指定あり)</span></tt> を参照してください。</p>
|
334
334
|
<p>以下は簡単な使用例です。</p>
|
335
335
|
<p>実行例:</p>
|
336
336
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query 'content:@"I started"'
|
@@ -374,15 +374,15 @@ load --table Entries
|
|
374
374
|
# ]
|
375
375
|
</pre></div>
|
376
376
|
</div>
|
377
|
-
<p>この式は <
|
377
|
+
<p>この式は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">I</span> <span class="pre">started</span></tt> というフレーズを含んでいるレコードにマッチします。 <tt class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span></tt> にはマッチしません。これは <tt class="docutils literal"><span class="pre">I</span></tt> と <tt class="docutils literal"><span class="pre">started</span></tt> が隣接していないからです。</p>
|
378
378
|
</div>
|
379
379
|
<div class="section" id="prefix-search-condition">
|
380
|
-
<span id="id4"></span><h3>7.
|
381
|
-
<p>構文は <
|
382
|
-
<p>この条件式は <
|
383
|
-
<p>カラムの値を高速に前方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルをパトリシアトライ( <
|
380
|
+
<span id="id4"></span><h3>7.12.1.3.5. 前方一致検索条件<a class="headerlink" href="#prefix-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
381
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:^value</span></tt> または <tt class="docutils literal"><span class="pre">value*</span></tt> です。</p>
|
382
|
+
<p>この条件式は <tt class="docutils literal"><span class="pre">value</span></tt> で前方一致検索をします。前方一致検索は <tt class="docutils literal"><span class="pre">value</span></tt> で始まる単語を含むレコードを検索します。</p>
|
383
|
+
<p>カラムの値を高速に前方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルをパトリシアトライ( <tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt> )またはダブル配列トライ( <tt class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></tt> )にしなければいけません。あるいは、パトリシアトライテーブルまたはダブル配列テーブルの <tt class="docutils literal"><span class="pre">_key</span></tt> も高速に前方一致検索できます。 <tt class="docutils literal"><span class="pre">_key</span></tt> にインデックスを作成する必要はありません。</p>
|
384
384
|
<p>他の種類のテーブルでも前方一致検索を使えますがレコード全件を処理します。レコード数が少ない場合には問題ありませんが、レコード数が多いと時間がかかります。</p>
|
385
|
-
<p><
|
385
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
386
386
|
<p>以下は簡単な使用例です。</p>
|
387
387
|
<p>実行例:</p>
|
388
388
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query '_key:^Goo'
|
@@ -432,19 +432,19 @@ load --table Entries
|
|
432
432
|
# ]
|
433
433
|
</pre></div>
|
434
434
|
</div>
|
435
|
-
<p>この式は <
|
435
|
+
<p>この式は <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Goo</span></tt> で始まる単語を含むレコードにマッチします。この式には <tt class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Senna</span></tt> と <tt class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Tritonn</span></tt> がマッチします。</p>
|
436
436
|
</div>
|
437
437
|
<div class="section" id="suffix-search-condition">
|
438
|
-
<span id="id5"></span><h3>7.
|
439
|
-
<p>構文は <
|
440
|
-
<p>この条件式は <
|
441
|
-
<p>カラムの値を高速に後方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルを <
|
438
|
+
<span id="id5"></span><h3>7.12.1.3.6. 後方一致検索条件<a class="headerlink" href="#suffix-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
439
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:$value</span></tt> です。</p>
|
440
|
+
<p>この条件式は <tt class="docutils literal"><span class="pre">value</span></tt> で後方一致検索します。後方一致検索は <tt class="docutils literal"><span class="pre">value</span></tt> で終わる単語を含むレコードを検索します。</p>
|
441
|
+
<p>カラムの値を高速に後方一致検索できます。ただし、そのカラムにはインデックスを作成し、そのインデックス用のテーブルを <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> フラグ付きのパトリシアトライテーブル( <tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt> )にしなければいけません。 <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> フラグ付きのパトリシアトライテーブル( <tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt> )の <tt class="docutils literal"><span class="pre">_key</span></tt> 擬似カラムの値も高速に後方一致検索できます。 <tt class="docutils literal"><span class="pre">_key</span></tt> にはインデックスを作成する必要はありません。 <tt class="docutils literal"><span class="pre">_key</span></tt> ベースの高速な後方一致検索よりもカラムベースの高速な後方一致検索を使うことをおすすめします。 <tt class="docutils literal"><span class="pre">_key</span></tt> ベースの高速な後方一致検索は自動的に登録された部分文字列も返ってきます。(TODO: 後方一致検索に関するドキュメントを書いてここからリンクを張る。)</p>
|
442
442
|
<div class="admonition note">
|
443
443
|
<p class="first admonition-title">注釈</p>
|
444
444
|
<p class="last">高速な後方一致検索は日本語のひらがななど非ASCII文字にしか使えません。ASCII文字には高速な後方一致検索を使えません。</p>
|
445
445
|
</div>
|
446
|
-
<p>後方一致検索は他の種類のテーブルもしくはパトリシアトライを <
|
447
|
-
<p><
|
446
|
+
<p>後方一致検索は他の種類のテーブルもしくはパトリシアトライを <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> フラグなしで使用しているテーブルに対しても使えますが、レコード全件を処理します。レコード数が少ない場合には問題ありませんが、レコード数が多いと時間がかかります。</p>
|
447
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
448
448
|
<p>簡単な例です。ASCII文字ではない文字である日本語のひらがなに対して高速な後方一致検索をしています。</p>
|
449
449
|
<p>実行例:</p>
|
450
450
|
<div class="highlight-none"><div class="highlight"><pre>table_create Titles TABLE_NO_KEY
|
@@ -498,13 +498,13 @@ select Titles --query 'content:$んが'
|
|
498
498
|
# ]
|
499
499
|
</pre></div>
|
500
500
|
</div>
|
501
|
-
<p>この式は <
|
501
|
+
<p>この式は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">んが</span></tt> で終わるレコードにマッチします。この場合は <tt class="docutils literal"><span class="pre">ぐるんが</span></tt> と <tt class="docutils literal"><span class="pre">むるんが</span></tt> にマッチします。</p>
|
502
502
|
</div>
|
503
503
|
<div class="section" id="equal-condition">
|
504
|
-
<h3>7.
|
505
|
-
<p>構文は <
|
506
|
-
<p><
|
507
|
-
<p><
|
504
|
+
<h3>7.12.1.3.7. 等価条件<a class="headerlink" href="#equal-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
505
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:value</span></tt> です。</p>
|
506
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> と等しいレコードにマッチします。</p>
|
507
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
508
508
|
<p>以下は簡単な使用例です。</p>
|
509
509
|
<p>実行例:</p>
|
510
510
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query _key:Groonga
|
@@ -548,13 +548,13 @@ select Titles --query 'content:$んが'
|
|
548
548
|
# ]
|
549
549
|
</pre></div>
|
550
550
|
</div>
|
551
|
-
<p>この式は <
|
551
|
+
<p>この式は <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> のレコードにマッチします。</p>
|
552
552
|
</div>
|
553
553
|
<div class="section" id="not-equal-condition">
|
554
|
-
<h3>7.
|
555
|
-
<p>構文は <
|
556
|
-
<p><
|
557
|
-
<p><
|
554
|
+
<h3>7.12.1.3.8. 不等価条件<a class="headerlink" href="#not-equal-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
555
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:!value</span></tt> です。</p>
|
556
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> と等しくないレコードにマッチします。</p>
|
557
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
558
558
|
<p>以下は簡単な使用例です。</p>
|
559
559
|
<p>実行例:</p>
|
560
560
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query _key:!Groonga
|
@@ -616,14 +616,14 @@ select Titles --query 'content:$んが'
|
|
616
616
|
# ]
|
617
617
|
</pre></div>
|
618
618
|
</div>
|
619
|
-
<p>この式は <
|
619
|
+
<p>この式は <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> ではないレコードにマッチします。</p>
|
620
620
|
</div>
|
621
621
|
<div class="section" id="less-than-condition">
|
622
|
-
<h3>7.
|
623
|
-
<p>構文は <
|
624
|
-
<p><
|
625
|
-
<p><
|
626
|
-
<p><
|
622
|
+
<h3>7.12.1.3.9. 小なり条件<a class="headerlink" href="#less-than-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
623
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:<value</span></tt> です。</p>
|
624
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> 未満のレコードにマッチします。</p>
|
625
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">Int32</span></tt> などの数値型の場合、 <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> は数値として比較します。もし、 <tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">ShortText</span></tt> のような文字列型の場合は <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> はビット列として比較します。</p>
|
626
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
627
627
|
<p>以下は簡単な使用例です。</p>
|
628
628
|
<p>実行例:</p>
|
629
629
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:<10
|
@@ -679,14 +679,14 @@ select Titles --query 'content:$んが'
|
|
679
679
|
# ]
|
680
680
|
</pre></div>
|
681
681
|
</div>
|
682
|
-
<p>この式は <
|
682
|
+
<p>この式は <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> より小さいレコードにマッチします。</p>
|
683
683
|
</div>
|
684
684
|
<div class="section" id="greater-than-condition">
|
685
|
-
<h3>7.
|
686
|
-
<p>構文は <
|
687
|
-
<p><
|
688
|
-
<p><
|
689
|
-
<p><
|
685
|
+
<h3>7.12.1.3.10. 大なり条件<a class="headerlink" href="#greater-than-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
686
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:>value</span></tt> です。</p>
|
687
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> より大きいレコードにマッチします。</p>
|
688
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">Int32</span></tt> などの数値型の場合、 <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> は数値として比較します。もし、 <tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">ShortText</span></tt> のような文字列型の場合は <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> はビット列として比較します。</p>
|
689
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
690
690
|
<p>以下は簡単な使用例です。</p>
|
691
691
|
<p>実行例:</p>
|
692
692
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:>10
|
@@ -730,14 +730,14 @@ select Titles --query 'content:$んが'
|
|
730
730
|
# ]
|
731
731
|
</pre></div>
|
732
732
|
</div>
|
733
|
-
<p>この式は <
|
733
|
+
<p>この式は <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> より大きいレコードにマッチします。</p>
|
734
734
|
</div>
|
735
735
|
<div class="section" id="less-than-or-equal-to-condition">
|
736
|
-
<h3>7.
|
737
|
-
<p>構文は <
|
738
|
-
<p><
|
739
|
-
<p><
|
740
|
-
<p><
|
736
|
+
<h3>7.12.1.3.11. 以下条件<a class="headerlink" href="#less-than-or-equal-to-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
737
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:<=value</span></tt> です。</p>
|
738
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> 以下のレコードにマッチします。</p>
|
739
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">Int32</span></tt> などの数値型の場合、 <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> は数値として比較します。もし、 <tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">ShortText</span></tt> のような文字列型の場合は <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> はビット列として比較します。</p>
|
740
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
741
741
|
<p>以下は簡単な使用例です。</p>
|
742
742
|
<p>実行例:</p>
|
743
743
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:<=10
|
@@ -799,14 +799,14 @@ select Titles --query 'content:$んが'
|
|
799
799
|
# ]
|
800
800
|
</pre></div>
|
801
801
|
</div>
|
802
|
-
<p>この式は <
|
802
|
+
<p>この式は <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> 以下のレコードにマッチします。</p>
|
803
803
|
</div>
|
804
804
|
<div class="section" id="greater-than-or-equal-to-condition">
|
805
|
-
<h3>7.
|
806
|
-
<p>構文は <
|
807
|
-
<p><
|
808
|
-
<p><
|
809
|
-
<p><
|
805
|
+
<h3>7.12.1.3.12. 以上条件<a class="headerlink" href="#greater-than-or-equal-to-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
806
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:>=value</span></tt> です。</p>
|
807
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> 以上のレコードにマッチします。</p>
|
808
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">Int32</span></tt> などの数値型の場合、 <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> は数値として比較します。もし、 <tt class="docutils literal"><span class="pre">column</span></tt> の型が <tt class="docutils literal"><span class="pre">ShortText</span></tt> のような文字列型の場合は <tt class="docutils literal"><span class="pre">column</span></tt> の値と <tt class="docutils literal"><span class="pre">value</span></tt> はビット列として比較します。</p>
|
809
|
+
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
810
810
|
<p>以下は簡単な使用例です。</p>
|
811
811
|
<p>実行例:</p>
|
812
812
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:>=10
|
@@ -856,17 +856,76 @@ select Titles --query 'content:$んが'
|
|
856
856
|
# ]
|
857
857
|
</pre></div>
|
858
858
|
</div>
|
859
|
-
<p>この式は <
|
859
|
+
<p>この式は <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> 以上のレコードにマッチします。</p>
|
860
|
+
</div>
|
861
|
+
<div class="section" id="regular-expression-condition">
|
862
|
+
<span id="query-regular-expression-condition"></span><h3>7.12.1.3.13. 正規表現条件<a class="headerlink" href="#regular-expression-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
863
|
+
<div class="versionadded">
|
864
|
+
<p><span class="versionmodified">バージョン 5.0.1 で追加.</span></p>
|
865
|
+
</div>
|
866
|
+
<p>構文は <tt class="docutils literal"><span class="pre">column:~pattern</span></tt> です。</p>
|
867
|
+
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">pattern</span></tt> にマッチするレコードにマッチします。 <tt class="docutils literal"><span class="pre">pattern</span></tt> は正しい <a class="reference internal" href="../regular_expression.html"><em>正規表現</em></a> でなければいけません。</p>
|
868
|
+
<p>以下の例はパターンとして <tt class="docutils literal"><span class="pre">.roonga</span></tt> を使っています。このパターンは <tt class="docutils literal"><span class="pre">Groonga</span></tt> 、 <tt class="docutils literal"><span class="pre">Mroonga</span></tt> といった文字列にマッチします。</p>
|
869
|
+
<p>実行例:</p>
|
870
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query content:~.roonga
|
871
|
+
# [
|
872
|
+
# [
|
873
|
+
# 0,
|
874
|
+
# 1337566253.89858,
|
875
|
+
# 0.000355720520019531
|
876
|
+
# ],
|
877
|
+
# [
|
878
|
+
# [
|
879
|
+
# [
|
880
|
+
# 2
|
881
|
+
# ],
|
882
|
+
# [
|
883
|
+
# [
|
884
|
+
# "_id",
|
885
|
+
# "UInt32"
|
886
|
+
# ],
|
887
|
+
# [
|
888
|
+
# "_key",
|
889
|
+
# "ShortText"
|
890
|
+
# ],
|
891
|
+
# [
|
892
|
+
# "content",
|
893
|
+
# "Text"
|
894
|
+
# ],
|
895
|
+
# [
|
896
|
+
# "n_likes",
|
897
|
+
# "UInt32"
|
898
|
+
# ]
|
899
|
+
# ],
|
900
|
+
# [
|
901
|
+
# 2,
|
902
|
+
# "Groonga",
|
903
|
+
# "I started to use Groonga. It's very fast!",
|
904
|
+
# 10
|
905
|
+
# ],
|
906
|
+
# [
|
907
|
+
# 3,
|
908
|
+
# "Mroonga",
|
909
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
910
|
+
# 15
|
911
|
+
# ]
|
912
|
+
# ]
|
913
|
+
# ]
|
914
|
+
# ]
|
915
|
+
</pre></div>
|
916
|
+
</div>
|
917
|
+
<p>多くの場合、各レコードの対して順に正規表現を評価します。そのため、多くのレコードがある場合は遅くなるかもしれません。</p>
|
918
|
+
<p>いくつかのケースでは、Groongaはインデックスを使って正規表現を評価します。これはとても高速です。詳細は <a class="reference internal" href="../regular_expression.html"><em>正規表現</em></a> を参照してください。</p>
|
860
919
|
</div>
|
861
920
|
</div>
|
862
921
|
<div class="section" id="combined-expression">
|
863
|
-
<span id="id6"></span><h2>7.
|
922
|
+
<span id="id6"></span><h2>7.12.1.4. 結合式<a class="headerlink" href="#combined-expression" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
864
923
|
<p>以下は利用可能な結合式のリストです。</p>
|
865
924
|
<div class="section" id="logical-or">
|
866
|
-
<h3>7.
|
867
|
-
<p>構文は <
|
868
|
-
<p><
|
869
|
-
<p><
|
925
|
+
<h3>7.12.1.4.1. 論理和<a class="headerlink" href="#logical-or" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
926
|
+
<p>構文は <tt class="docutils literal"><span class="pre">a</span> <span class="pre">OR</span> <span class="pre">b</span></tt> です。</p>
|
927
|
+
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> は条件式または結合式または代入式です。</p>
|
928
|
+
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> のうち少なくともひとつの式がマッチすれば <tt class="docutils literal"><span class="pre">a</span> <span class="pre">OR</span> <span class="pre">b</span></tt> はマッチします。</p>
|
870
929
|
<p>以下は簡単な使用例です。</p>
|
871
930
|
<p>実行例:</p>
|
872
931
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query 'n_likes:>10 OR content:@senna'
|
@@ -916,14 +975,14 @@ select Titles --query 'content:$んが'
|
|
916
975
|
# ]
|
917
976
|
</pre></div>
|
918
977
|
</div>
|
919
|
-
<p>この式は <
|
978
|
+
<p>この式は <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> より大きいか <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">senna</span></tt> という単語を含んでいるレコードにマッチします。</p>
|
920
979
|
</div>
|
921
980
|
<div class="section" id="logical-and">
|
922
|
-
<h3>7.
|
923
|
-
<p>構文は <
|
924
|
-
<p><
|
925
|
-
<p><
|
926
|
-
<p><
|
981
|
+
<h3>7.12.1.4.2. 論理積<a class="headerlink" href="#logical-and" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
982
|
+
<p>構文は <tt class="docutils literal"><span class="pre">a</span> <span class="pre">+</span> <span class="pre">b</span></tt> です。あるいは単に <tt class="docutils literal"><span class="pre">a</span> <span class="pre">b</span></tt> と書くこともできます。</p>
|
983
|
+
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> は条件式または結合式または代入式です。</p>
|
984
|
+
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> の両方にマッチすれば <tt class="docutils literal"><span class="pre">a</span> <span class="pre">+</span> <span class="pre">b</span></tt> はマッチします。</p>
|
985
|
+
<p><tt class="docutils literal"><span class="pre">+a</span></tt> というように最初の式に <tt class="docutils literal"><span class="pre">+</span></tt> を指定することもできます。この場合は <tt class="docutils literal"><span class="pre">+</span></tt> は単に無視されます。</p>
|
927
986
|
<p>以下は簡単な使用例です。</p>
|
928
987
|
<p>実行例:</p>
|
929
988
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query 'n_likes:>=10 + content:@groonga'
|
@@ -967,14 +1026,14 @@ select Titles --query 'content:$んが'
|
|
967
1026
|
# ]
|
968
1027
|
</pre></div>
|
969
1028
|
</div>
|
970
|
-
<p>この式は <
|
1029
|
+
<p>この式は <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> 以上で <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">groonga</span></tt> という単語を含むレコードにマッチします。</p>
|
971
1030
|
</div>
|
972
1031
|
<div class="section" id="logical-not">
|
973
|
-
<h3>7.
|
974
|
-
<p>構文は <
|
975
|
-
<p><
|
976
|
-
<p><
|
977
|
-
<p><
|
1032
|
+
<h3>7.12.1.4.3. 論理否定<a class="headerlink" href="#logical-not" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1033
|
+
<p>構文は <tt class="docutils literal"><span class="pre">a</span> <span class="pre">-</span> <span class="pre">b</span></tt> です。</p>
|
1034
|
+
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> は条件式または結合式または代入式です。</p>
|
1035
|
+
<p><tt class="docutils literal"><span class="pre">a</span></tt> にマッチして <tt class="docutils literal"><span class="pre">b</span></tt> にマッチしなければ、 <tt class="docutils literal"><span class="pre">a</span> <span class="pre">-</span> <span class="pre">b</span></tt> はマッチします。</p>
|
1036
|
+
<p><tt class="docutils literal"><span class="pre">-a</span></tt> というように最初の式に <tt class="docutils literal"><span class="pre">-</span></tt> を指定することはできません。この場合は構文エラーになります。</p>
|
978
1037
|
<p>以下は簡単な使用例です。</p>
|
979
1038
|
<p>実行例:</p>
|
980
1039
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query 'n_likes:>=10 - content:@groonga'
|
@@ -1018,12 +1077,12 @@ select Titles --query 'content:$んが'
|
|
1018
1077
|
# ]
|
1019
1078
|
</pre></div>
|
1020
1079
|
</div>
|
1021
|
-
<p>この式は <
|
1080
|
+
<p>この式は <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> 以上で <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">groonga</span></tt> という単語を含まないレコードにマッチします。</p>
|
1022
1081
|
</div>
|
1023
1082
|
<div class="section" id="grouping">
|
1024
|
-
<h3>7.
|
1025
|
-
<p>構文は <
|
1026
|
-
<p><
|
1083
|
+
<h3>7.12.1.4.4. グループ化<a class="headerlink" href="#grouping" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1084
|
+
<p>構文は <tt class="docutils literal"><span class="pre">(...)</span></tt> です。 <tt class="docutils literal"><span class="pre">...</span></tt> は空白区切りの式のリストです。</p>
|
1085
|
+
<p><tt class="docutils literal"><span class="pre">(...)</span></tt> は1つ以上の式をグループ化します。グループ化された式は1つの式として処理されます。 <tt class="docutils literal"><span class="pre">a</span> <span class="pre">b</span> <span class="pre">OR</span> <span class="pre">c</span></tt> は <tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> の両方がマッチするか、 <tt class="docutils literal"><span class="pre">c</span></tt> がマッチすれば式全体がマッチする、という意味になります。 <tt class="docutils literal"><span class="pre">a</span> <span class="pre">(b</span> <span class="pre">OR</span> <span class="pre">c)</span></tt> は <tt class="docutils literal"><span class="pre">a</span></tt> がマッチして <tt class="docutils literal"><span class="pre">b</span></tt> と <tt class="docutils literal"><span class="pre">c</span></tt> はどちらか一方がマッチすれば式全体がマッチする、という意味になります。</p>
|
1027
1086
|
<p>以下は簡単な使用例です。</p>
|
1028
1087
|
<p>実行例:</p>
|
1029
1088
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query 'n_likes:<5 content:@senna OR content:@fast'
|
@@ -1118,16 +1177,16 @@ select Entries --query 'n_likes:<5 (content:@senna OR content:@fast)'
|
|
1118
1177
|
# ]
|
1119
1178
|
</pre></div>
|
1120
1179
|
</div>
|
1121
|
-
<p>最初の式はグループ化していません。この式は <
|
1122
|
-
<p>2番目の式はグループ化しています。この式は <
|
1180
|
+
<p>最初の式はグループ化していません。この式は <tt class="docutils literal"><span class="pre">n_likes:<5</span></tt> と <tt class="docutils literal"><span class="pre">content:@senna</span></tt> の両方がマッチするか <tt class="docutils literal"><span class="pre">content:@fast</span></tt> がマッチするレコードにマッチします。</p>
|
1181
|
+
<p>2番目の式はグループ化しています。この式は <tt class="docutils literal"><span class="pre">n_likes:<5</span></tt> にマッチして、 <tt class="docutils literal"><span class="pre">content:@senna</span></tt> と <tt class="docutils literal"><span class="pre">content:@fast</span></tt> は少なくともどちらか一方にマッチするレコードにマッチします。</p>
|
1123
1182
|
</div>
|
1124
1183
|
</div>
|
1125
1184
|
<div class="section" id="assignment-expression">
|
1126
|
-
<h2>7.
|
1127
|
-
<p>このセクションは高度なユーザー向けです。それは、代入式は <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <
|
1185
|
+
<h2>7.12.1.5. 代入式<a class="headerlink" href="#assignment-expression" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
1186
|
+
<p>このセクションは高度なユーザー向けです。それは、代入式は <a class="reference internal" href="../commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">--query</span></tt> オプションではデフォルトでは無効になっているからです。代入式を有効にするには <tt class="docutils literal"><span class="pre">--query_flags</span></tt> オプションに <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> を指定してください。</p>
|
1128
1187
|
<p>クエリー構文における代入式にはいくつか制限があります。代入にはクエリー構文の代りに <a class="reference internal" href="script_syntax.html"><em>スクリプト構文</em></a> を使ってください。</p>
|
1129
|
-
<p>代入式の構文は1つだけです。 <
|
1130
|
-
<p><
|
1188
|
+
<p>代入式の構文は1つだけです。 <tt class="docutils literal"><span class="pre">column:=value</span></tt> となります。</p>
|
1189
|
+
<p><tt class="docutils literal"><span class="pre">value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> に代入されます。 <tt class="docutils literal"><span class="pre">value</span></tt> は常にクエリー構文では文字列として扱われます。 <tt class="docutils literal"><span class="pre">value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> の型へと自動的にキャストされます。 キャストにはいくつか制限があります。例えば <tt class="docutils literal"><span class="pre">true</span></tt> や <tt class="docutils literal"><span class="pre">false</span></tt> といった真偽値のリテラルを <tt class="docutils literal"><span class="pre">Bool</span></tt> 型のカラムに使用することができません。 <tt class="docutils literal"><span class="pre">false</span></tt> については空文字列を使う必要がありますが、クエリー構文は <tt class="docutils literal"><span class="pre">column:=</span></tt> 構文をサポートしていません。</p>
|
1131
1190
|
<p>キャストについては <a class="reference internal" href="../cast.html"><em>Cast</em></a> を参照してください。</p>
|
1132
1191
|
</div>
|
1133
1192
|
</div>
|
@@ -1136,54 +1195,53 @@ select Entries --query 'n_likes:<5 (content:@senna OR content:@fast)'
|
|
1136
1195
|
</div>
|
1137
1196
|
</div>
|
1138
1197
|
</div>
|
1139
|
-
<div class="sphinxsidebar"
|
1198
|
+
<div class="sphinxsidebar">
|
1140
1199
|
<div class="sphinxsidebarwrapper">
|
1141
1200
|
<h3><a href="../../index.html">目次</a></h3>
|
1142
1201
|
<ul>
|
1143
|
-
<li><a class="reference internal" href="#">7.
|
1144
|
-
<li><a class="reference internal" href="#sample-data">7.
|
1145
|
-
<li><a class="reference internal" href="#escape">7.
|
1146
|
-
<li><a class="reference internal" href="#conditional-expression">7.
|
1147
|
-
<li><a class="reference internal" href="#full-text-search-condition">7.
|
1148
|
-
<li><a class="reference internal" href="#phrase-search-condition">7.
|
1149
|
-
<li><a class="reference internal" href="#full-text-search-condition-with-explicit-match-column">7.
|
1150
|
-
<li><a class="reference internal" href="#phrase-search-condition-with-explicit-match-column">7.
|
1151
|
-
<li><a class="reference internal" href="#prefix-search-condition">7.
|
1152
|
-
<li><a class="reference internal" href="#suffix-search-condition">7.
|
1153
|
-
<li><a class="reference internal" href="#equal-condition">7.
|
1154
|
-
<li><a class="reference internal" href="#not-equal-condition">7.
|
1155
|
-
<li><a class="reference internal" href="#less-than-condition">7.
|
1156
|
-
<li><a class="reference internal" href="#greater-than-condition">7.
|
1157
|
-
<li><a class="reference internal" href="#less-than-or-equal-to-condition">7.
|
1158
|
-
<li><a class="reference internal" href="#greater-than-or-equal-to-condition">7.
|
1202
|
+
<li><a class="reference internal" href="#">7.12.1. クエリー構文</a><ul>
|
1203
|
+
<li><a class="reference internal" href="#sample-data">7.12.1.1. サンプルデータ</a></li>
|
1204
|
+
<li><a class="reference internal" href="#escape">7.12.1.2. エスケープ</a></li>
|
1205
|
+
<li><a class="reference internal" href="#conditional-expression">7.12.1.3. 条件式</a><ul>
|
1206
|
+
<li><a class="reference internal" href="#full-text-search-condition">7.12.1.3.1. 全文検索条件</a></li>
|
1207
|
+
<li><a class="reference internal" href="#phrase-search-condition">7.12.1.3.2. フレーズ検索条件</a></li>
|
1208
|
+
<li><a class="reference internal" href="#full-text-search-condition-with-explicit-match-column">7.12.1.3.3. 全文検索条件(マッチカラム指定あり)</a></li>
|
1209
|
+
<li><a class="reference internal" href="#phrase-search-condition-with-explicit-match-column">7.12.1.3.4. フレーズ検索条件(マッチカラム指定あり)</a></li>
|
1210
|
+
<li><a class="reference internal" href="#prefix-search-condition">7.12.1.3.5. 前方一致検索条件</a></li>
|
1211
|
+
<li><a class="reference internal" href="#suffix-search-condition">7.12.1.3.6. 後方一致検索条件</a></li>
|
1212
|
+
<li><a class="reference internal" href="#equal-condition">7.12.1.3.7. 等価条件</a></li>
|
1213
|
+
<li><a class="reference internal" href="#not-equal-condition">7.12.1.3.8. 不等価条件</a></li>
|
1214
|
+
<li><a class="reference internal" href="#less-than-condition">7.12.1.3.9. 小なり条件</a></li>
|
1215
|
+
<li><a class="reference internal" href="#greater-than-condition">7.12.1.3.10. 大なり条件</a></li>
|
1216
|
+
<li><a class="reference internal" href="#less-than-or-equal-to-condition">7.12.1.3.11. 以下条件</a></li>
|
1217
|
+
<li><a class="reference internal" href="#greater-than-or-equal-to-condition">7.12.1.3.12. 以上条件</a></li>
|
1218
|
+
<li><a class="reference internal" href="#regular-expression-condition">7.12.1.3.13. 正規表現条件</a></li>
|
1159
1219
|
</ul>
|
1160
1220
|
</li>
|
1161
|
-
<li><a class="reference internal" href="#combined-expression">7.
|
1162
|
-
<li><a class="reference internal" href="#logical-or">7.
|
1163
|
-
<li><a class="reference internal" href="#logical-and">7.
|
1164
|
-
<li><a class="reference internal" href="#logical-not">7.
|
1165
|
-
<li><a class="reference internal" href="#grouping">7.
|
1221
|
+
<li><a class="reference internal" href="#combined-expression">7.12.1.4. 結合式</a><ul>
|
1222
|
+
<li><a class="reference internal" href="#logical-or">7.12.1.4.1. 論理和</a></li>
|
1223
|
+
<li><a class="reference internal" href="#logical-and">7.12.1.4.2. 論理積</a></li>
|
1224
|
+
<li><a class="reference internal" href="#logical-not">7.12.1.4.3. 論理否定</a></li>
|
1225
|
+
<li><a class="reference internal" href="#grouping">7.12.1.4.4. グループ化</a></li>
|
1166
1226
|
</ul>
|
1167
1227
|
</li>
|
1168
|
-
<li><a class="reference internal" href="#assignment-expression">7.
|
1228
|
+
<li><a class="reference internal" href="#assignment-expression">7.12.1.5. 代入式</a></li>
|
1169
1229
|
</ul>
|
1170
1230
|
</li>
|
1171
1231
|
</ul>
|
1172
1232
|
|
1173
1233
|
<h4>前のトピックへ</h4>
|
1174
1234
|
<p class="topless"><a href="../grn_expr.html"
|
1175
|
-
title="前の章へ">7.
|
1235
|
+
title="前の章へ">7.12. grn_expr</a></p>
|
1176
1236
|
<h4>次のトピックへ</h4>
|
1177
1237
|
<p class="topless"><a href="script_syntax.html"
|
1178
|
-
title="次の章へ">7.
|
1179
|
-
<
|
1180
|
-
|
1181
|
-
<
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
</div>
|
1186
|
-
<div id="searchbox" style="display: none" role="search">
|
1238
|
+
title="次の章へ">7.12.2. スクリプト構文</a></p>
|
1239
|
+
<h3>このページ</h3>
|
1240
|
+
<ul class="this-page-menu">
|
1241
|
+
<li><a href="../../_sources/reference/grn_expr/query_syntax.txt"
|
1242
|
+
rel="nofollow">ソースコードを表示</a></li>
|
1243
|
+
</ul>
|
1244
|
+
<div id="searchbox" style="display: none">
|
1187
1245
|
<h3>クイック検索</h3>
|
1188
1246
|
<form class="search" action="../../search.html" method="get">
|
1189
1247
|
<input type="text" name="q" />
|
@@ -1200,24 +1258,24 @@ select Entries --query 'n_likes:<5 (content:@senna OR content:@fast)'
|
|
1200
1258
|
</div>
|
1201
1259
|
<div class="clearer"></div>
|
1202
1260
|
</div>
|
1203
|
-
<div class="related"
|
1261
|
+
<div class="related">
|
1204
1262
|
<h3>ナビゲーション</h3>
|
1205
1263
|
<ul>
|
1206
1264
|
<li class="right" style="margin-right: 10px">
|
1207
1265
|
<a href="../../genindex.html" title="総合索引"
|
1208
1266
|
>索引</a></li>
|
1209
1267
|
<li class="right" >
|
1210
|
-
<a href="script_syntax.html" title="7.
|
1268
|
+
<a href="script_syntax.html" title="7.12.2. スクリプト構文"
|
1211
1269
|
>次へ</a> |</li>
|
1212
1270
|
<li class="right" >
|
1213
|
-
<a href="../grn_expr.html" title="7.
|
1271
|
+
<a href="../grn_expr.html" title="7.12. grn_expr"
|
1214
1272
|
>前へ</a> |</li>
|
1215
|
-
<li><a href="../../index.html">Groonga v5.0.
|
1273
|
+
<li><a href="../../index.html">Groonga v5.0.1-42-g4d10df1ドキュメント</a> »</li>
|
1216
1274
|
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
1217
|
-
<li><a href="../grn_expr.html" >7.
|
1275
|
+
<li><a href="../grn_expr.html" >7.12. grn_expr</a> »</li>
|
1218
1276
|
</ul>
|
1219
1277
|
</div>
|
1220
|
-
<div class="footer"
|
1278
|
+
<div class="footer">
|
1221
1279
|
© Copyright 2009-2015, Brazil, Inc.
|
1222
1280
|
</div>
|
1223
1281
|
</body>
|