rroonga 4.0.5-x64-mingw32 → 4.0.6-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.yardopts +1 -1
- data/benchmark/common.rb +4 -4
- data/benchmark/create-wikipedia-database.rb +5 -5
- data/benchmark/read-write-many-small-items.rb +8 -8
- data/benchmark/repeat-load.rb +4 -4
- data/benchmark/select.rb +9 -9
- data/benchmark/write-many-small-items.rb +8 -8
- data/doc/images/sample-schema.png +0 -0
- data/doc/text/install.textile +2 -2
- data/doc/text/news.textile +41 -0
- data/doc/text/tutorial.textile +4 -4
- data/example/bookmark.rb +6 -7
- data/example/index-html.rb +6 -6
- data/ext/groonga/extconf.rb +23 -1
- data/ext/groonga/rb-grn-column.c +3 -2
- data/ext/groonga/rb-grn-context.c +20 -3
- data/ext/groonga/rb-grn-double-array-trie.c +11 -2
- data/ext/groonga/rb-grn-exception.c +28 -10
- data/ext/groonga/rb-grn-expression.c +78 -0
- data/ext/groonga/rb-grn-hash.c +10 -0
- data/ext/groonga/rb-grn-logger.c +7 -3
- data/ext/groonga/rb-grn-object.c +3 -2
- data/ext/groonga/rb-grn-patricia-trie.c +23 -20
- data/ext/groonga/rb-grn-table-key-support.c +92 -1
- data/ext/groonga/rb-grn-table.c +60 -17
- data/ext/groonga/rb-grn-utils.c +51 -2
- data/ext/groonga/rb-grn-variable-size-column.c +11 -7
- data/ext/groonga/rb-grn.h +11 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/groonga/dumper.rb +23 -1
- data/lib/groonga/patricia-trie.rb +1 -1
- data/lib/groonga/schema.rb +190 -205
- data/misc/grnop2ruby.rb +1 -1
- data/rroonga-build.rb +3 -3
- data/rroonga.gemspec +1 -0
- data/test/groonga-test-utils.rb +2 -2
- data/test/test-column.rb +19 -0
- data/test/test-context.rb +5 -1
- data/test/test-double-array-trie.rb +19 -0
- data/test/test-exception.rb +7 -2
- data/test/test-expression.rb +19 -0
- data/test/test-fix-size-column.rb +49 -36
- data/test/test-hash.rb +22 -0
- data/test/test-patricia-trie.rb +26 -7
- data/test/test-schema-dumper.rb +65 -1
- data/test/test-schema.rb +13 -2
- data/test/test-variable-size-column.rb +6 -5
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +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/mecab-config +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onig-config +0 -0
- data/vendor/local/include/groonga/groonga.h +21 -6
- data/vendor/local/include/groonga/groonga/token_filter.h +71 -0
- data/vendor/local/include/groonga/groonga/tokenizer.h +33 -1
- 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 +1 -1
- 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 +1 -1
- 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 +41 -0
- 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/context/rc.rb +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +7 -2
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +2 -1
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +1 -1
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +1 -1
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- 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 +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/client.txt +19 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -2
- 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 +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +68 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +23 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_expr.txt +46 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +15 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +23 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-create-dataset.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +14 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{geolocation_search.txt → reference/operations/geolocation_search.txt} +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest.txt +0 -1
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest/completion.txt +6 -6
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest/correction.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/{suggest → reference/suggest}/introduction.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +9404 -2
- data/vendor/local/share/doc/groonga/en/html/_static/pygments.css +1 -0
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/client.html +134 -0
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution.html +86 -86
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +40 -40
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +66 -66
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +105 -105
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/development.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/genindex.html +23 -7
- data/vendor/local/share/doc/groonga/en/html/index.html +215 -230
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/others.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/en/html/limitations.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/news.html +129 -59
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +154 -135
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +40 -39
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +74 -27
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +79 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +52 -51
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +98 -98
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +62 -52
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +55 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +68 -68
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +50 -50
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +40 -40
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +50 -50
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +44 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +62 -62
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +140 -140
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/{suggest/tutorial.html → reference/operations.html} +31 -23
- data/vendor/local/share/doc/groonga/en/html/{geolocation_search.html → reference/operations/geolocation_search.html} +39 -34
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/{suggest.html → reference/suggest.html} +50 -48
- data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/completion.html +51 -49
- data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/correction.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/introduction.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/suggestion.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +18 -18
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/server/http.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +44 -44
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/server/package.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/spec.html +16 -16
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/client.txt +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -2
- 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 +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +68 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +23 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_expr.txt +46 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +15 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +23 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-create-dataset.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +14 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{geolocation_search.txt → reference/operations/geolocation_search.txt} +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest.txt +0 -1
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest/completion.txt +6 -6
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest/correction.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/{suggest → reference/suggest}/introduction.txt +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +9404 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/pygments.css +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/client.html +132 -0
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +86 -86
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +40 -40
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +66 -66
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +109 -109
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +42 -42
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +43 -43
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/development.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +27 -11
- data/vendor/local/share/doc/groonga/ja/html/index.html +215 -230
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +14 -14
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/news.html +131 -63
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +154 -135
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +40 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +74 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +79 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +52 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +42 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +98 -98
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +35 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +62 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +54 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +48 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +68 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +50 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +40 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +54 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +44 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +46 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +64 -64
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +143 -143
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/{suggest/tutorial.html → reference/operations.html} +31 -23
- data/vendor/local/share/doc/groonga/ja/html/{geolocation_search.html → reference/operations/geolocation_search.html} +40 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/{suggest.html → reference/suggest.html} +51 -49
- data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/completion.html +52 -50
- data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/correction.html +48 -47
- data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/introduction.html +44 -42
- data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/suggestion.html +48 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +42 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +18 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +44 -44
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +43 -43
- data/vendor/local/share/doc/groonga/ja/html/spec.html +16 -16
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +0 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +0 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +0 -0
- data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +0 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +4911 -4427
- data/vendor/local/share/man/man1/groonga.1 +9023 -8517
- metadata +117 -109
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/tutorial.txt +0 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/tutorial.txt +0 -8
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>
|
10
|
+
<title>7.12.13. sub_filter — Groonga v4.0.6-211-g8c0bb0bドキュメント</title>
|
11
11
|
|
12
12
|
<link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
|
13
13
|
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript">
|
16
16
|
var DOCUMENTATION_OPTIONS = {
|
17
17
|
URL_ROOT: '../../',
|
18
|
-
VERSION: '4.0.
|
18
|
+
VERSION: '4.0.6-211-g8c0bb0b',
|
19
19
|
COLLAPSE_INDEX: false,
|
20
20
|
FILE_SUFFIX: '.html',
|
21
21
|
HAS_SOURCE: true
|
@@ -26,10 +26,10 @@
|
|
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 v4.0.
|
30
|
-
<link rel="up" title="
|
31
|
-
<link rel="next" title="
|
32
|
-
<link rel="prev" title="
|
29
|
+
<link rel="top" title="Groonga v4.0.6-211-g8c0bb0bドキュメント" href="../../index.html" />
|
30
|
+
<link rel="up" title="7.12. 関数" href="../function.html" />
|
31
|
+
<link rel="next" title="7.13. 操作方法" href="../operations.html" />
|
32
|
+
<link rel="prev" title="7.12.12. snippet_html" href="snippet_html.html" />
|
33
33
|
</head>
|
34
34
|
<body>
|
35
35
|
<div class="header">
|
@@ -56,14 +56,14 @@
|
|
56
56
|
<a href="../../genindex.html" title="総合索引"
|
57
57
|
accesskey="I">索引</a></li>
|
58
58
|
<li class="right" >
|
59
|
-
<a href="../
|
59
|
+
<a href="../operations.html" title="7.13. 操作方法"
|
60
60
|
accesskey="N">次へ</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="snippet_html.html" title="
|
62
|
+
<a href="snippet_html.html" title="7.12.12. snippet_html"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../../index.html">Groonga v4.0.
|
65
|
-
<li><a href="../../reference.html" >
|
66
|
-
<li><a href="../function.html" accesskey="U">
|
64
|
+
<li><a href="../../index.html">Groonga v4.0.6-211-g8c0bb0bドキュメント</a> »</li>
|
65
|
+
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
66
|
+
<li><a href="../function.html" accesskey="U">7.12. 関数</a> »</li>
|
67
67
|
</ul>
|
68
68
|
</div>
|
69
69
|
|
@@ -73,21 +73,21 @@
|
|
73
73
|
<div class="body">
|
74
74
|
|
75
75
|
<div class="section" id="sub-filter">
|
76
|
-
<h1>
|
76
|
+
<h1>7.12.13. sub_filter<a class="headerlink" href="#sub-filter" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
77
|
<div class="section" id="summary">
|
78
|
-
<h2>
|
78
|
+
<h2>7.12.13.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
79
79
|
<p><tt class="docutils literal"><span class="pre">sub_filter</span></tt> は <tt class="docutils literal"><span class="pre">filter_string</span></tt> を <tt class="docutils literal"><span class="pre">scope</span></tt> のコンテキストで評価します。</p>
|
80
80
|
<p><tt class="docutils literal"><span class="pre">sub_filter</span></tt> は <a class="reference internal" href="../commands/select.html"><em>select</em></a> コマンドの <tt class="docutils literal"><span class="pre">--filter</span></tt> 内でのみ指定できます。</p>
|
81
81
|
</div>
|
82
82
|
<div class="section" id="syntax">
|
83
|
-
<h2>
|
83
|
+
<h2>7.12.13.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
84
84
|
<p><tt class="docutils literal"><span class="pre">sub_filter</span></tt> は2つの引数が必要です。 <tt class="docutils literal"><span class="pre">scope</span></tt> と <tt class="docutils literal"><span class="pre">filter_string</span></tt> です。</p>
|
85
85
|
<div class="highlight-none"><div class="highlight"><pre>sub_filter(scope, filter_string)
|
86
86
|
</pre></div>
|
87
87
|
</div>
|
88
88
|
</div>
|
89
89
|
<div class="section" id="usage">
|
90
|
-
<h2>
|
90
|
+
<h2>7.12.13.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
91
91
|
<p>使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。</p>
|
92
92
|
<p>サンプルスキーマ:</p>
|
93
93
|
<p>実行例:</p>
|
@@ -214,26 +214,26 @@ load --table Blog
|
|
214
214
|
</ul>
|
215
215
|
</div>
|
216
216
|
<div class="section" id="parameters">
|
217
|
-
<h2>
|
217
|
+
<h2>7.12.13.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
218
218
|
<p>必須引数は二つあります。 <tt class="docutils literal"><span class="pre">scope</span></tt> と <tt class="docutils literal"><span class="pre">filter_string</span></tt> です。</p>
|
219
219
|
<div class="section" id="scope">
|
220
|
-
<h3>
|
220
|
+
<h3>7.12.13.4.1. <tt class="docutils literal"><span class="pre">scope</span></tt><a class="headerlink" href="#scope" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
221
221
|
<p><tt class="docutils literal"><span class="pre">select</span></tt> コマンドの <tt class="docutils literal"><span class="pre">table</span></tt> パラメーターで指定したテーブルが持つカラムを指定します。このカラムには制限があります。制限については後述します。 <tt class="docutils literal"><span class="pre">filter_string</span></tt> はこのカラムの文脈で評価されます。これは、 <tt class="docutils literal"><span class="pre">filter_string</span></tt> は <tt class="docutils literal"><span class="pre">select</span> <span class="pre">--table</span> <span class="pre">カラムの型</span> <span class="pre">--filter</span> <span class="pre">フィルター文字列</span></tt> というように評価されるということです。</p>
|
222
222
|
<p>指定したカラムの型はテーブルでなければいけません。言いかえると、カラムの型は参照型でなければいけないということです。</p>
|
223
223
|
<p><tt class="docutils literal"><span class="pre">カラム1.カラム2.カラム3...カラムN</span></tt> という構文でカラムを数珠つなぎにできます。例えば、 <tt class="docutils literal"><span class="pre">user.group.name</span></tt> とできます。</p>
|
224
224
|
<p><tt class="docutils literal"><span class="pre">select</span></tt> コマンドの <tt class="docutils literal"><span class="pre">table</span></tt> 引数については <a class="reference internal" href="../commands/select.html#select-table"><em>table</em></a> を参照してください。</p>
|
225
225
|
</div>
|
226
226
|
<div class="section" id="filter-string">
|
227
|
-
<h3>
|
227
|
+
<h3>7.12.13.4.2. <tt class="docutils literal"><span class="pre">filter_string</span></tt><a class="headerlink" href="#filter-string" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
228
228
|
<p><a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> の検索条件を指定します。これは <tt class="docutils literal"><span class="pre">scope</span></tt> のコンテキストで評価されます。</p>
|
229
229
|
</div>
|
230
230
|
</div>
|
231
231
|
<div class="section" id="return-value">
|
232
|
-
<h2>
|
232
|
+
<h2>7.12.13.5. 戻り値<a class="headerlink" href="#return-value" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
233
233
|
<p><tt class="docutils literal"><span class="pre">sub_filter</span></tt> は1つでもレコードがマッチしたかどうかを返します。もし、1つ以上のレコードがマッチしたら <tt class="docutils literal"><span class="pre">true</span></tt> を返します。1つもマッチしなかったら <tt class="docutils literal"><span class="pre">false</span></tt> を返します。</p>
|
234
234
|
</div>
|
235
235
|
<div class="section" id="see-also">
|
236
|
-
<h2>
|
236
|
+
<h2>7.12.13.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
237
237
|
<ul class="simple">
|
238
238
|
<li><a class="reference internal" href="../commands/select.html"><em>select</em></a></li>
|
239
239
|
<li><a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a></li>
|
@@ -249,27 +249,27 @@ load --table Blog
|
|
249
249
|
<div class="sphinxsidebarwrapper">
|
250
250
|
<h3><a href="../../index.html">目次</a></h3>
|
251
251
|
<ul>
|
252
|
-
<li><a class="reference internal" href="#">
|
253
|
-
<li><a class="reference internal" href="#summary">
|
254
|
-
<li><a class="reference internal" href="#syntax">
|
255
|
-
<li><a class="reference internal" href="#usage">
|
256
|
-
<li><a class="reference internal" href="#parameters">
|
257
|
-
<li><a class="reference internal" href="#scope">
|
258
|
-
<li><a class="reference internal" href="#filter-string">
|
252
|
+
<li><a class="reference internal" href="#">7.12.13. sub_filter</a><ul>
|
253
|
+
<li><a class="reference internal" href="#summary">7.12.13.1. 概要</a></li>
|
254
|
+
<li><a class="reference internal" href="#syntax">7.12.13.2. 構文</a></li>
|
255
|
+
<li><a class="reference internal" href="#usage">7.12.13.3. 使い方</a></li>
|
256
|
+
<li><a class="reference internal" href="#parameters">7.12.13.4. 引数</a><ul>
|
257
|
+
<li><a class="reference internal" href="#scope">7.12.13.4.1. <tt class="docutils literal"><span class="pre">scope</span></tt></a></li>
|
258
|
+
<li><a class="reference internal" href="#filter-string">7.12.13.4.2. <tt class="docutils literal"><span class="pre">filter_string</span></tt></a></li>
|
259
259
|
</ul>
|
260
260
|
</li>
|
261
|
-
<li><a class="reference internal" href="#return-value">
|
262
|
-
<li><a class="reference internal" href="#see-also">
|
261
|
+
<li><a class="reference internal" href="#return-value">7.12.13.5. 戻り値</a></li>
|
262
|
+
<li><a class="reference internal" href="#see-also">7.12.13.6. 参考</a></li>
|
263
263
|
</ul>
|
264
264
|
</li>
|
265
265
|
</ul>
|
266
266
|
|
267
267
|
<h4>前のトピックへ</h4>
|
268
268
|
<p class="topless"><a href="snippet_html.html"
|
269
|
-
title="前の章へ">
|
269
|
+
title="前の章へ">7.12.12. snippet_html</a></p>
|
270
270
|
<h4>次のトピックへ</h4>
|
271
|
-
<p class="topless"><a href="../
|
272
|
-
title="次の章へ">
|
271
|
+
<p class="topless"><a href="../operations.html"
|
272
|
+
title="次の章へ">7.13. 操作方法</a></p>
|
273
273
|
<h3>このページ</h3>
|
274
274
|
<ul class="this-page-menu">
|
275
275
|
<li><a href="../../_sources/reference/functions/sub_filter.txt"
|
@@ -299,14 +299,14 @@ load --table Blog
|
|
299
299
|
<a href="../../genindex.html" title="総合索引"
|
300
300
|
>索引</a></li>
|
301
301
|
<li class="right" >
|
302
|
-
<a href="../
|
302
|
+
<a href="../operations.html" title="7.13. 操作方法"
|
303
303
|
>次へ</a> |</li>
|
304
304
|
<li class="right" >
|
305
|
-
<a href="snippet_html.html" title="
|
305
|
+
<a href="snippet_html.html" title="7.12.12. snippet_html"
|
306
306
|
>前へ</a> |</li>
|
307
|
-
<li><a href="../../index.html">Groonga v4.0.
|
308
|
-
<li><a href="../../reference.html" >
|
309
|
-
<li><a href="../function.html" >
|
307
|
+
<li><a href="../../index.html">Groonga v4.0.6-211-g8c0bb0bドキュメント</a> »</li>
|
308
|
+
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
309
|
+
<li><a href="../function.html" >7.12. 関数</a> »</li>
|
310
310
|
</ul>
|
311
311
|
</div>
|
312
312
|
<div class="footer">
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>
|
10
|
+
<title>7.11. grn_expr — Groonga v4.0.6-211-g8c0bb0bドキュメント</title>
|
11
11
|
|
12
12
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
13
13
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript">
|
16
16
|
var DOCUMENTATION_OPTIONS = {
|
17
17
|
URL_ROOT: '../',
|
18
|
-
VERSION: '4.0.
|
18
|
+
VERSION: '4.0.6-211-g8c0bb0b',
|
19
19
|
COLLAPSE_INDEX: false,
|
20
20
|
FILE_SUFFIX: '.html',
|
21
21
|
HAS_SOURCE: true
|
@@ -26,10 +26,10 @@
|
|
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 v4.0.
|
30
|
-
<link rel="up" title="
|
31
|
-
<link rel="next" title="
|
32
|
-
<link rel="prev" title="
|
29
|
+
<link rel="top" title="Groonga v4.0.6-211-g8c0bb0bドキュメント" href="../index.html" />
|
30
|
+
<link rel="up" title="7. リファレンスマニュアル" href="../reference.html" />
|
31
|
+
<link rel="next" title="7.11.1. クエリー構文" href="grn_expr/query_syntax.html" />
|
32
|
+
<link rel="prev" title="7.10.1. QueryExpanderTSV" href="query_expanders/tsv.html" />
|
33
33
|
</head>
|
34
34
|
<body>
|
35
35
|
<div class="header">
|
@@ -56,13 +56,13 @@
|
|
56
56
|
<a href="../genindex.html" title="総合索引"
|
57
57
|
accesskey="I">索引</a></li>
|
58
58
|
<li class="right" >
|
59
|
-
<a href="grn_expr/query_syntax.html" title="
|
59
|
+
<a href="grn_expr/query_syntax.html" title="7.11.1. クエリー構文"
|
60
60
|
accesskey="N">次へ</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="query_expanders/tsv.html" title="
|
62
|
+
<a href="query_expanders/tsv.html" title="7.10.1. QueryExpanderTSV"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../index.html">Groonga v4.0.
|
65
|
-
<li><a href="../reference.html" accesskey="U">
|
64
|
+
<li><a href="../index.html">Groonga v4.0.6-211-g8c0bb0bドキュメント</a> »</li>
|
65
|
+
<li><a href="../reference.html" accesskey="U">7. リファレンスマニュアル</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
68
68
|
|
@@ -72,7 +72,7 @@
|
|
72
72
|
<div class="body">
|
73
73
|
|
74
74
|
<div class="section" id="grn-expr">
|
75
|
-
<h1>
|
75
|
+
<h1>7.11. grn_expr<a class="headerlink" href="#grn-expr" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
76
76
|
<p>grn_exprは特定の条件にマッチするレコードを検索したり、データベースを操作するオブジェクトです。 <tt class="docutils literal"><span class="pre">ぐるんしき</span></tt> と読みます。(由来は「Groongaの式」。)</p>
|
77
77
|
<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">積(AND)</span></tt> 、 <tt class="docutils literal"><span class="pre">和(OR)</span></tt> 、 <tt class="docutils literal"><span class="pre">差(NOT)</span></tt> などがあります。gnr_exprはこれらの条件を使ってレコードを検索します。類似文書検索や近傍検索などといった高度な検索もgrn_exprで実行できます。柔軟な全文検索も実行できます。例えば、特定の単語にマッチしたときのヒットスコアを調整したり、検索結果数によって検索漏れの少ないアルゴリズムで再検索し、再現率を向上するといったことも実現できます。</p>
|
78
78
|
<p>grn_exprを作る方法は3つあります:</p>
|
@@ -88,15 +88,15 @@
|
|
88
88
|
</div></blockquote>
|
89
89
|
<p><a class="reference internal" href="grn_expr/query_syntax.html"><em>クエリー構文</em></a> は一般的なインターネット検索サイトにある検索フォーム用の構文です。シンプルで使いやすいですが、制限があります。 <a class="reference internal" href="grn_expr/query_syntax.html"><em>クエリー構文</em></a> では実行できない条件式や集合演算があります。 <a class="reference internal" href="grn_expr/query_syntax.html"><em>クエリー構文</em></a> は <a class="reference internal" href="commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">query</span></tt> オプションで指定する検索条件で使えます。</p>
|
90
90
|
<p><a class="reference internal" href="grn_expr/script_syntax.html"><em>スクリプト構文</em></a> はECMAScriptに似た構文です。 <a class="reference internal" href="grn_expr/script_syntax.html"><em>スクリプト構文</em></a> ではすべての条件式と集合演算を使えます。 <a class="reference internal" href="grn_expr/script_syntax.html"><em>スクリプト構文</em></a> は <a class="reference internal" href="commands/select.html"><em>select</em></a> の <tt class="docutils literal"><span class="pre">filter</span></tt> オプションで指定する検索条件や <tt class="docutils literal"><span class="pre">scorer</span></tt> オプションで指定する式で使えます。</p>
|
91
|
-
<p>groongaをライブラリとして使うと、grn_expr関連のAPIを呼び出してgrn_exprを作ることができます。 <a class="reference internal" href="grn_expr/script_syntax.html"><em>スクリプト構文</em></a> のように、APIを呼び出すと全ての機能を使えます。grn_exprを作る構文を新しく作るときにはAPIが便利です。APIは <a class="reference external" href="http://
|
91
|
+
<p>groongaをライブラリとして使うと、grn_expr関連のAPIを呼び出してgrn_exprを作ることができます。 <a class="reference internal" href="grn_expr/script_syntax.html"><em>スクリプト構文</em></a> のように、APIを呼び出すと全ての機能を使えます。grn_exprを作る構文を新しく作るときにはAPIが便利です。APIは <a class="reference external" href="http://ranguba.org/#about-rroonga">rroonga</a> というGroongaのRubyバインディングで使われています。rroongaでは文字列をパースするのではなく、Rubyの構文を使ってgrn_exprを作ることができます。</p>
|
92
92
|
<div class="toctree-wrapper compound">
|
93
93
|
<ul>
|
94
|
-
<li class="toctree-l1"><a class="reference internal" href="grn_expr/query_syntax.html">
|
95
|
-
<li class="toctree-l1"><a class="reference internal" href="grn_expr/script_syntax.html">
|
94
|
+
<li class="toctree-l1"><a class="reference internal" href="grn_expr/query_syntax.html">7.11.1. クエリー構文</a></li>
|
95
|
+
<li class="toctree-l1"><a class="reference internal" href="grn_expr/script_syntax.html">7.11.2. スクリプト構文</a></li>
|
96
96
|
</ul>
|
97
97
|
</div>
|
98
98
|
<div class="section" id="see-also">
|
99
|
-
<h2>
|
99
|
+
<h2>7.11.3. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
100
100
|
<blockquote>
|
101
101
|
<div><ul class="simple">
|
102
102
|
<li><p class="first"><a class="reference internal" href="api/grn_expr.html"><em>grn_expr</em></a>: grn_expr関連のAPI</p>
|
@@ -114,18 +114,18 @@
|
|
114
114
|
<div class="sphinxsidebarwrapper">
|
115
115
|
<h3><a href="../index.html">目次</a></h3>
|
116
116
|
<ul>
|
117
|
-
<li><a class="reference internal" href="#">
|
118
|
-
<li><a class="reference internal" href="#see-also">
|
117
|
+
<li><a class="reference internal" href="#">7.11. grn_expr</a><ul>
|
118
|
+
<li><a class="reference internal" href="#see-also">7.11.3. 参考</a></li>
|
119
119
|
</ul>
|
120
120
|
</li>
|
121
121
|
</ul>
|
122
122
|
|
123
123
|
<h4>前のトピックへ</h4>
|
124
124
|
<p class="topless"><a href="query_expanders/tsv.html"
|
125
|
-
title="前の章へ">
|
125
|
+
title="前の章へ">7.10.1. QueryExpanderTSV</a></p>
|
126
126
|
<h4>次のトピックへ</h4>
|
127
127
|
<p class="topless"><a href="grn_expr/query_syntax.html"
|
128
|
-
title="次の章へ">
|
128
|
+
title="次の章へ">7.11.1. クエリー構文</a></p>
|
129
129
|
<h3>このページ</h3>
|
130
130
|
<ul class="this-page-menu">
|
131
131
|
<li><a href="../_sources/reference/grn_expr.txt"
|
@@ -155,13 +155,13 @@
|
|
155
155
|
<a href="../genindex.html" title="総合索引"
|
156
156
|
>索引</a></li>
|
157
157
|
<li class="right" >
|
158
|
-
<a href="grn_expr/query_syntax.html" title="
|
158
|
+
<a href="grn_expr/query_syntax.html" title="7.11.1. クエリー構文"
|
159
159
|
>次へ</a> |</li>
|
160
160
|
<li class="right" >
|
161
|
-
<a href="query_expanders/tsv.html" title="
|
161
|
+
<a href="query_expanders/tsv.html" title="7.10.1. QueryExpanderTSV"
|
162
162
|
>前へ</a> |</li>
|
163
|
-
<li><a href="../index.html">Groonga v4.0.
|
164
|
-
<li><a href="../reference.html" >
|
163
|
+
<li><a href="../index.html">Groonga v4.0.6-211-g8c0bb0bドキュメント</a> »</li>
|
164
|
+
<li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li>
|
165
165
|
</ul>
|
166
166
|
</div>
|
167
167
|
<div class="footer">
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>
|
10
|
+
<title>7.11.1. クエリー構文 — Groonga v4.0.6-211-g8c0bb0bドキュメント</title>
|
11
11
|
|
12
12
|
<link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
|
13
13
|
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript">
|
16
16
|
var DOCUMENTATION_OPTIONS = {
|
17
17
|
URL_ROOT: '../../',
|
18
|
-
VERSION: '4.0.
|
18
|
+
VERSION: '4.0.6-211-g8c0bb0b',
|
19
19
|
COLLAPSE_INDEX: false,
|
20
20
|
FILE_SUFFIX: '.html',
|
21
21
|
HAS_SOURCE: true
|
@@ -26,10 +26,10 @@
|
|
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 v4.0.
|
30
|
-
<link rel="up" title="
|
31
|
-
<link rel="next" title="
|
32
|
-
<link rel="prev" title="
|
29
|
+
<link rel="top" title="Groonga v4.0.6-211-g8c0bb0bドキュメント" href="../../index.html" />
|
30
|
+
<link rel="up" title="7.11. grn_expr" href="../grn_expr.html" />
|
31
|
+
<link rel="next" title="7.11.2. スクリプト構文" href="script_syntax.html" />
|
32
|
+
<link rel="prev" title="7.11. grn_expr" href="../grn_expr.html" />
|
33
33
|
</head>
|
34
34
|
<body>
|
35
35
|
<div class="header">
|
@@ -56,14 +56,14 @@
|
|
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="
|
59
|
+
<a href="script_syntax.html" title="7.11.2. スクリプト構文"
|
60
60
|
accesskey="N">次へ</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="../grn_expr.html" title="
|
62
|
+
<a href="../grn_expr.html" title="7.11. grn_expr"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../../index.html">Groonga v4.0.
|
65
|
-
<li><a href="../../reference.html" >
|
66
|
-
<li><a href="../grn_expr.html" accesskey="U">
|
64
|
+
<li><a href="../../index.html">Groonga v4.0.6-211-g8c0bb0bドキュメント</a> »</li>
|
65
|
+
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
66
|
+
<li><a href="../grn_expr.html" accesskey="U">7.11. grn_expr</a> »</li>
|
67
67
|
</ul>
|
68
68
|
</div>
|
69
69
|
|
@@ -73,12 +73,12 @@
|
|
73
73
|
<div class="body">
|
74
74
|
|
75
75
|
<div class="section" id="query-syntax">
|
76
|
-
<h1>
|
76
|
+
<h1>7.11.1. クエリー構文<a class="headerlink" href="#query-syntax" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
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
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
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>
|
81
|
+
<h2>7.11.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
|
@@ -119,7 +119,7 @@ load --table Entries
|
|
119
119
|
<p>これで例を示すためのスキーマとデータの準備ができました。</p>
|
120
120
|
</div>
|
121
121
|
<div class="section" id="escape">
|
122
|
-
<h2>
|
122
|
+
<h2>7.11.1.2. エスケープ<a class="headerlink" href="#escape" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
123
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>
|
@@ -141,15 +141,15 @@ load --table Entries
|
|
141
141
|
<p><tt class="docutils literal"><span class="pre">\</span></tt> (バックスラッシュ)以外はエスケープする代わりにクォートすることもできます。クォート中でバックスラッシュをエスケープするときは <tt class="docutils literal"><span class="pre">\\</span></tt> というようにバックスラッシュを使います。</p>
|
142
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
|
-
<p class="first admonition-title"
|
144
|
+
<p class="first admonition-title">注釈</p>
|
145
145
|
<p class="last">注意しなければならない大事な点があります。''\'' (バックスラッシュ)はコマンドラインシェルが解釈します。それゆえ例えば ''('' それ自体を検索したいならシェルでは二重にエスケープ (''\\('') しなければなりません。コマンドラインシェルは ''\\('' を ''\('' と解釈してからgroongaに渡します。groongaは ''\('' を ''('' とみなし、''('' 自体をデータベースから検索します。もし意図した検索がgroongaで行えないなら、特別な文字を正しくエスケープしているか確認します。</p>
|
146
146
|
</div>
|
147
147
|
</div>
|
148
148
|
<div class="section" id="conditional-expression">
|
149
|
-
<span id="id1"></span><h2>
|
149
|
+
<span id="id1"></span><h2>7.11.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>
|
152
|
+
<span id="id2"></span><h3>7.11.1.3.1. 全文検索条件<a class="headerlink" href="#full-text-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
153
153
|
<p>構文は <tt class="docutils literal"><span class="pre">keyword</span></tt> です。</p>
|
154
154
|
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> はデフォルトのマッチカラムに対して全文検索するという条件を指定します。マッチカラムとは全文検索対象のカラムのことです。</p>
|
155
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>
|
@@ -207,7 +207,7 @@ load --table Entries
|
|
207
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>
|
210
|
+
<span id="id3"></span><h3>7.11.1.3.2. フレーズ検索条件<a class="headerlink" href="#phrase-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
211
211
|
<p>構文は <tt class="docutils literal"><span class="pre">"search</span> <span class="pre">keyword"</span></tt> です。</p>
|
212
212
|
<p><tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> はデフォルトのマッチカラムに対してフレーズ検索するという条件を指定します。</p>
|
213
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>
|
@@ -259,7 +259,7 @@ load --table Entries
|
|
259
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>
|
262
|
+
<h3>7.11.1.3.3. 全文検索条件(マッチカラム指定あり)<a class="headerlink" href="#full-text-search-condition-with-explicit-match-column" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
263
263
|
<p>構文は <tt class="docutils literal"><span class="pre">column:@keyword</span></tt> です。</p>
|
264
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
265
|
<p>この条件式は異なったカラムに対して複数の全文検索をしたい場合に便利です。 <tt class="docutils literal"><span class="pre">--match_columns</span></tt> オプションで指定するデフォルトのマッチカラムは複数回指定することができません。2つめのマッチカラムを指定するためにはこの条件式を使う必要があります。</p>
|
@@ -327,7 +327,7 @@ load --table Entries
|
|
327
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>
|
330
|
+
<h3>7.11.1.3.4. フレーズ検索条件(マッチカラム指定あり)<a class="headerlink" href="#phrase-search-condition-with-explicit-match-column" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
331
331
|
<p>構文は <tt class="docutils literal"><span class="pre">column:@"search</span> <span class="pre">keyword"</span></tt> です。</p>
|
332
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
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>
|
@@ -377,7 +377,7 @@ load --table Entries
|
|
377
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>
|
380
|
+
<span id="id4"></span><h3>7.11.1.3.5. 前方一致検索条件<a class="headerlink" href="#prefix-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
381
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
382
|
<p>この条件式は <tt class="docutils literal"><span class="pre">value</span></tt> で前方一致検索をします。前方一致検索は <tt class="docutils literal"><span class="pre">value</span></tt> で始まる単語を含むレコードを検索します。</p>
|
383
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>
|
@@ -435,12 +435,12 @@ load --table Entries
|
|
435
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>
|
438
|
+
<span id="id5"></span><h3>7.11.1.3.6. 後方一致検索条件<a class="headerlink" href="#suffix-search-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
439
439
|
<p>構文は <tt class="docutils literal"><span class="pre">column:$value</span></tt> です。</p>
|
440
440
|
<p>この条件式は <tt class="docutils literal"><span class="pre">value</span></tt> で後方一致検索します。後方一致検索は <tt class="docutils literal"><span class="pre">value</span></tt> で終わる単語を含むレコードを検索します。</p>
|
441
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
|
-
<p class="first admonition-title"
|
443
|
+
<p class="first admonition-title">注釈</p>
|
444
444
|
<p class="last">高速な後方一致検索は日本語のひらがななど非ASCII文字にしか使えません。ASCII文字には高速な後方一致検索を使えません。</p>
|
445
445
|
</div>
|
446
446
|
<p>後方一致検索は他の種類のテーブルもしくはパトリシアトライを <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> フラグなしで使用しているテーブルに対しても使えますが、レコード全件を処理します。レコード数が少ない場合には問題ありませんが、レコード数が多いと時間がかかります。</p>
|
@@ -501,7 +501,7 @@ select Titles --query 'content:$んが'
|
|
501
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>
|
504
|
+
<h3>7.11.1.3.7. 等価条件<a class="headerlink" href="#equal-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
505
505
|
<p>構文は <tt class="docutils literal"><span class="pre">column:value</span></tt> です。</p>
|
506
506
|
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> と等しいレコードにマッチします。</p>
|
507
507
|
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
@@ -551,7 +551,7 @@ select Titles --query 'content:$んが'
|
|
551
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>
|
554
|
+
<h3>7.11.1.3.8. 不等価条件<a class="headerlink" href="#not-equal-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
555
555
|
<p>構文は <tt class="docutils literal"><span class="pre">column:!value</span></tt> です。</p>
|
556
556
|
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> と等しくないレコードにマッチします。</p>
|
557
557
|
<p><tt class="docutils literal"><span class="pre">全文検索条件</span></tt> や <tt class="docutils literal"><span class="pre">フレーズ検索条件</span></tt> と異なり、デフォルトのマッチカラムは必要ありません。</p>
|
@@ -619,7 +619,7 @@ select Titles --query 'content:$んが'
|
|
619
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>
|
622
|
+
<h3>7.11.1.3.9. 小なり条件<a class="headerlink" href="#less-than-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
623
623
|
<p>構文は <tt class="docutils literal"><span class="pre">column:<value</span></tt> です。</p>
|
624
624
|
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> 未満のレコードにマッチします。</p>
|
625
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>
|
@@ -682,7 +682,7 @@ select Titles --query 'content:$んが'
|
|
682
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>
|
685
|
+
<h3>7.11.1.3.10. 大なり条件<a class="headerlink" href="#greater-than-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
686
686
|
<p>構文は <tt class="docutils literal"><span class="pre">column:>value</span></tt> です。</p>
|
687
687
|
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> より大きいレコードにマッチします。</p>
|
688
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>
|
@@ -733,7 +733,7 @@ select Titles --query 'content:$んが'
|
|
733
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>
|
736
|
+
<h3>7.11.1.3.11. 以下条件<a class="headerlink" href="#less-than-or-equal-to-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
737
737
|
<p>構文は <tt class="docutils literal"><span class="pre">column:<=value</span></tt> です。</p>
|
738
738
|
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> 以下のレコードにマッチします。</p>
|
739
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>
|
@@ -802,7 +802,7 @@ select Titles --query 'content:$んが'
|
|
802
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>
|
805
|
+
<h3>7.11.1.3.12. 以上条件<a class="headerlink" href="#greater-than-or-equal-to-condition" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
806
806
|
<p>構文は <tt class="docutils literal"><span class="pre">column:>=value</span></tt> です。</p>
|
807
807
|
<p><tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> 以上のレコードにマッチします。</p>
|
808
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>
|
@@ -860,10 +860,10 @@ select Titles --query 'content:$んが'
|
|
860
860
|
</div>
|
861
861
|
</div>
|
862
862
|
<div class="section" id="combined-expression">
|
863
|
-
<span id="id6"></span><h2>
|
863
|
+
<span id="id6"></span><h2>7.11.1.4. 結合式<a class="headerlink" href="#combined-expression" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
864
864
|
<p>以下は利用可能な結合式のリストです。</p>
|
865
865
|
<div class="section" id="logical-or">
|
866
|
-
<h3>
|
866
|
+
<h3>7.11.1.4.1. 論理和<a class="headerlink" href="#logical-or" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
867
867
|
<p>構文は <tt class="docutils literal"><span class="pre">a</span> <span class="pre">OR</span> <span class="pre">b</span></tt> です。</p>
|
868
868
|
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> は条件式または結合式または代入式です。</p>
|
869
869
|
<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>
|
@@ -919,7 +919,7 @@ select Titles --query 'content:$んが'
|
|
919
919
|
<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
920
|
</div>
|
921
921
|
<div class="section" id="logical-and">
|
922
|
-
<h3>
|
922
|
+
<h3>7.11.1.4.2. 論理積<a class="headerlink" href="#logical-and" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
923
923
|
<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>
|
924
924
|
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> は条件式または結合式または代入式です。</p>
|
925
925
|
<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>
|
@@ -970,7 +970,7 @@ select Titles --query 'content:$んが'
|
|
970
970
|
<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
971
|
</div>
|
972
972
|
<div class="section" id="logical-not">
|
973
|
-
<h3>
|
973
|
+
<h3>7.11.1.4.3. 論理否定<a class="headerlink" href="#logical-not" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
974
974
|
<p>構文は <tt class="docutils literal"><span class="pre">a</span> <span class="pre">-</span> <span class="pre">b</span></tt> です。</p>
|
975
975
|
<p><tt class="docutils literal"><span class="pre">a</span></tt> と <tt class="docutils literal"><span class="pre">b</span></tt> は条件式または結合式または代入式です。</p>
|
976
976
|
<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>
|
@@ -1021,7 +1021,7 @@ select Titles --query 'content:$んが'
|
|
1021
1021
|
<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
1022
|
</div>
|
1023
1023
|
<div class="section" id="grouping">
|
1024
|
-
<h3>
|
1024
|
+
<h3>7.11.1.4.4. グループ化<a class="headerlink" href="#grouping" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1025
1025
|
<p>構文は <tt class="docutils literal"><span class="pre">(...)</span></tt> です。 <tt class="docutils literal"><span class="pre">...</span></tt> は空白区切りの式のリストです。</p>
|
1026
1026
|
<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
1027
|
<p>以下は簡単な使用例です。</p>
|
@@ -1123,7 +1123,7 @@ select Entries --query 'n_likes:<5 (content:@senna OR content:@fast)'
|
|
1123
1123
|
</div>
|
1124
1124
|
</div>
|
1125
1125
|
<div class="section" id="assignment-expression">
|
1126
|
-
<h2>
|
1126
|
+
<h2>7.11.1.5. 代入式<a class="headerlink" href="#assignment-expression" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
1127
1127
|
<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
1128
|
<p>クエリー構文における代入式にはいくつか制限があります。代入にはクエリー構文の代りに <a class="reference internal" href="script_syntax.html"><em>スクリプト構文</em></a> を使ってください。</p>
|
1129
1129
|
<p>代入式の構文は1つだけです。 <tt class="docutils literal"><span class="pre">column:=value</span></tt> となります。</p>
|
@@ -1140,42 +1140,42 @@ select Entries --query 'n_likes:<5 (content:@senna OR content:@fast)'
|
|
1140
1140
|
<div class="sphinxsidebarwrapper">
|
1141
1141
|
<h3><a href="../../index.html">目次</a></h3>
|
1142
1142
|
<ul>
|
1143
|
-
<li><a class="reference internal" href="#">
|
1144
|
-
<li><a class="reference internal" href="#sample-data">
|
1145
|
-
<li><a class="reference internal" href="#escape">
|
1146
|
-
<li><a class="reference internal" href="#conditional-expression">
|
1147
|
-
<li><a class="reference internal" href="#full-text-search-condition">
|
1148
|
-
<li><a class="reference internal" href="#phrase-search-condition">
|
1149
|
-
<li><a class="reference internal" href="#full-text-search-condition-with-explicit-match-column">
|
1150
|
-
<li><a class="reference internal" href="#phrase-search-condition-with-explicit-match-column">
|
1151
|
-
<li><a class="reference internal" href="#prefix-search-condition">
|
1152
|
-
<li><a class="reference internal" href="#suffix-search-condition">
|
1153
|
-
<li><a class="reference internal" href="#equal-condition">
|
1154
|
-
<li><a class="reference internal" href="#not-equal-condition">
|
1155
|
-
<li><a class="reference internal" href="#less-than-condition">
|
1156
|
-
<li><a class="reference internal" href="#greater-than-condition">
|
1157
|
-
<li><a class="reference internal" href="#less-than-or-equal-to-condition">
|
1158
|
-
<li><a class="reference internal" href="#greater-than-or-equal-to-condition">
|
1143
|
+
<li><a class="reference internal" href="#">7.11.1. クエリー構文</a><ul>
|
1144
|
+
<li><a class="reference internal" href="#sample-data">7.11.1.1. サンプルデータ</a></li>
|
1145
|
+
<li><a class="reference internal" href="#escape">7.11.1.2. エスケープ</a></li>
|
1146
|
+
<li><a class="reference internal" href="#conditional-expression">7.11.1.3. 条件式</a><ul>
|
1147
|
+
<li><a class="reference internal" href="#full-text-search-condition">7.11.1.3.1. 全文検索条件</a></li>
|
1148
|
+
<li><a class="reference internal" href="#phrase-search-condition">7.11.1.3.2. フレーズ検索条件</a></li>
|
1149
|
+
<li><a class="reference internal" href="#full-text-search-condition-with-explicit-match-column">7.11.1.3.3. 全文検索条件(マッチカラム指定あり)</a></li>
|
1150
|
+
<li><a class="reference internal" href="#phrase-search-condition-with-explicit-match-column">7.11.1.3.4. フレーズ検索条件(マッチカラム指定あり)</a></li>
|
1151
|
+
<li><a class="reference internal" href="#prefix-search-condition">7.11.1.3.5. 前方一致検索条件</a></li>
|
1152
|
+
<li><a class="reference internal" href="#suffix-search-condition">7.11.1.3.6. 後方一致検索条件</a></li>
|
1153
|
+
<li><a class="reference internal" href="#equal-condition">7.11.1.3.7. 等価条件</a></li>
|
1154
|
+
<li><a class="reference internal" href="#not-equal-condition">7.11.1.3.8. 不等価条件</a></li>
|
1155
|
+
<li><a class="reference internal" href="#less-than-condition">7.11.1.3.9. 小なり条件</a></li>
|
1156
|
+
<li><a class="reference internal" href="#greater-than-condition">7.11.1.3.10. 大なり条件</a></li>
|
1157
|
+
<li><a class="reference internal" href="#less-than-or-equal-to-condition">7.11.1.3.11. 以下条件</a></li>
|
1158
|
+
<li><a class="reference internal" href="#greater-than-or-equal-to-condition">7.11.1.3.12. 以上条件</a></li>
|
1159
1159
|
</ul>
|
1160
1160
|
</li>
|
1161
|
-
<li><a class="reference internal" href="#combined-expression">
|
1162
|
-
<li><a class="reference internal" href="#logical-or">
|
1163
|
-
<li><a class="reference internal" href="#logical-and">
|
1164
|
-
<li><a class="reference internal" href="#logical-not">
|
1165
|
-
<li><a class="reference internal" href="#grouping">
|
1161
|
+
<li><a class="reference internal" href="#combined-expression">7.11.1.4. 結合式</a><ul>
|
1162
|
+
<li><a class="reference internal" href="#logical-or">7.11.1.4.1. 論理和</a></li>
|
1163
|
+
<li><a class="reference internal" href="#logical-and">7.11.1.4.2. 論理積</a></li>
|
1164
|
+
<li><a class="reference internal" href="#logical-not">7.11.1.4.3. 論理否定</a></li>
|
1165
|
+
<li><a class="reference internal" href="#grouping">7.11.1.4.4. グループ化</a></li>
|
1166
1166
|
</ul>
|
1167
1167
|
</li>
|
1168
|
-
<li><a class="reference internal" href="#assignment-expression">
|
1168
|
+
<li><a class="reference internal" href="#assignment-expression">7.11.1.5. 代入式</a></li>
|
1169
1169
|
</ul>
|
1170
1170
|
</li>
|
1171
1171
|
</ul>
|
1172
1172
|
|
1173
1173
|
<h4>前のトピックへ</h4>
|
1174
1174
|
<p class="topless"><a href="../grn_expr.html"
|
1175
|
-
title="前の章へ">
|
1175
|
+
title="前の章へ">7.11. grn_expr</a></p>
|
1176
1176
|
<h4>次のトピックへ</h4>
|
1177
1177
|
<p class="topless"><a href="script_syntax.html"
|
1178
|
-
title="次の章へ">
|
1178
|
+
title="次の章へ">7.11.2. スクリプト構文</a></p>
|
1179
1179
|
<h3>このページ</h3>
|
1180
1180
|
<ul class="this-page-menu">
|
1181
1181
|
<li><a href="../../_sources/reference/grn_expr/query_syntax.txt"
|
@@ -1205,14 +1205,14 @@ select Entries --query 'n_likes:<5 (content:@senna OR content:@fast)'
|
|
1205
1205
|
<a href="../../genindex.html" title="総合索引"
|
1206
1206
|
>索引</a></li>
|
1207
1207
|
<li class="right" >
|
1208
|
-
<a href="script_syntax.html" title="
|
1208
|
+
<a href="script_syntax.html" title="7.11.2. スクリプト構文"
|
1209
1209
|
>次へ</a> |</li>
|
1210
1210
|
<li class="right" >
|
1211
|
-
<a href="../grn_expr.html" title="
|
1211
|
+
<a href="../grn_expr.html" title="7.11. grn_expr"
|
1212
1212
|
>前へ</a> |</li>
|
1213
|
-
<li><a href="../../index.html">Groonga v4.0.
|
1214
|
-
<li><a href="../../reference.html" >
|
1215
|
-
<li><a href="../grn_expr.html" >
|
1213
|
+
<li><a href="../../index.html">Groonga v4.0.6-211-g8c0bb0bドキュメント</a> »</li>
|
1214
|
+
<li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
|
1215
|
+
<li><a href="../grn_expr.html" >7.11. grn_expr</a> »</li>
|
1216
1216
|
</ul>
|
1217
1217
|
</div>
|
1218
1218
|
<div class="footer">
|