rroonga 2.0.4-x86-mingw32 → 2.0.7-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +29 -2
- data/bin/grndump +3 -2
- data/ext/groonga/extconf.rb +37 -10
- data/ext/groonga/rb-grn-accessor.c +8 -10
- data/ext/groonga/rb-grn-array-cursor.c +2 -2
- data/ext/groonga/rb-grn-array.c +39 -36
- data/ext/groonga/rb-grn-column.c +185 -200
- data/ext/groonga/rb-grn-context.c +104 -93
- data/ext/groonga/rb-grn-database.c +116 -114
- data/ext/groonga/rb-grn-double-array-trie-cursor.c +3 -3
- data/ext/groonga/rb-grn-double-array-trie.c +159 -168
- data/ext/groonga/rb-grn-encoding-support.c +2 -3
- data/ext/groonga/rb-grn-encoding.c +39 -34
- data/ext/groonga/rb-grn-exception.c +1 -1
- data/ext/groonga/rb-grn-expression.c +141 -159
- data/ext/groonga/rb-grn-fix-size-column.c +12 -13
- data/ext/groonga/rb-grn-geo-point.c +55 -0
- data/ext/groonga/rb-grn-hash-cursor.c +3 -3
- data/ext/groonga/rb-grn-hash.c +73 -86
- data/ext/groonga/rb-grn-index-column.c +80 -90
- data/ext/groonga/rb-grn-index-cursor.c +48 -15
- data/ext/groonga/rb-grn-logger.c +42 -63
- data/ext/groonga/rb-grn-object.c +73 -100
- data/ext/groonga/rb-grn-operator.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +2 -2
- data/ext/groonga/rb-grn-patricia-trie.c +200 -260
- data/ext/groonga/rb-grn-plugin.c +17 -24
- data/ext/groonga/rb-grn-posting.c +6 -1
- data/ext/groonga/rb-grn-snippet.c +37 -54
- data/ext/groonga/rb-grn-table-cursor-key-support.c +3 -3
- data/ext/groonga/rb-grn-table-cursor.c +21 -26
- data/ext/groonga/rb-grn-table-key-support.c +53 -63
- data/ext/groonga/rb-grn-table.c +366 -393
- data/ext/groonga/rb-grn-type.c +122 -26
- data/ext/groonga/rb-grn-utils.c +77 -7
- data/ext/groonga/rb-grn-variable-size-column.c +12 -20
- data/ext/groonga/rb-grn-variable.c +6 -7
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view-cursor.c +2 -2
- data/ext/groonga/rb-grn-view.c +46 -58
- data/ext/groonga/rb-grn.h +36 -4
- data/ext/groonga/rb-groonga.c +7 -6
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/command.rb +3 -1
- data/lib/groonga/database.rb +27 -0
- data/lib/groonga/dumper.rb +201 -46
- data/lib/groonga/expression-builder.rb +24 -0
- data/lib/groonga/geo-point.rb +216 -0
- data/lib/groonga/pagination.rb +30 -24
- data/lib/groonga/posting.rb +29 -1
- data/lib/groonga/record.rb +21 -18
- data/lib/groonga/schema.rb +185 -186
- data/lib/groonga.rb +3 -1
- data/rroonga-build.rb +1 -1
- data/rroonga.gemspec +90 -0
- data/test/groonga-test-utils.rb +168 -0
- data/test/run-test.rb +60 -0
- data/test/test-accessor.rb +36 -0
- data/test/test-array.rb +146 -0
- data/test/test-column.rb +350 -0
- data/test/test-command-select.rb +246 -0
- data/test/test-context.rb +130 -0
- data/test/test-database-dumper.rb +299 -0
- data/test/test-database.rb +173 -0
- data/test/test-double-array-trie.rb +189 -0
- data/test/test-encoding.rb +33 -0
- data/test/test-exception.rb +230 -0
- data/test/test-expression-builder.rb +643 -0
- data/test/test-expression.rb +134 -0
- data/test/test-fix-size-column.rb +77 -0
- data/test/test-geo-point.rb +190 -0
- data/test/test-gqtp.rb +70 -0
- data/test/test-hash.rb +367 -0
- data/test/test-index-column.rb +180 -0
- data/test/test-index-cursor.rb +149 -0
- data/test/test-logger.rb +37 -0
- data/test/test-pagination.rb +249 -0
- data/test/test-patricia-trie.rb +440 -0
- data/test/test-plugin.rb +35 -0
- data/test/test-procedure.rb +37 -0
- data/test/test-record.rb +577 -0
- data/test/test-remote.rb +63 -0
- data/test/test-schema-create-table.rb +267 -0
- data/test/test-schema-dumper.rb +235 -0
- data/test/test-schema-type.rb +208 -0
- data/test/test-schema-view.rb +90 -0
- data/test/test-schema.rb +886 -0
- data/test/test-snippet.rb +130 -0
- data/test/test-table-dumper.rb +353 -0
- data/test/test-table-offset-and-limit.rb +100 -0
- data/test/test-table-select-mecab.rb +80 -0
- data/test/test-table-select-normalize.rb +57 -0
- data/test/test-table-select-weight.rb +123 -0
- data/test/test-table-select.rb +191 -0
- data/test/test-table-traverse.rb +304 -0
- data/test/test-table.rb +711 -0
- data/test/test-type.rb +136 -0
- data/test/test-variable-size-column.rb +147 -0
- data/test/test-variable.rb +28 -0
- data/test/test-vector-column.rb +76 -0
- data/test/test-version.rb +61 -0
- data/test/test-view.rb +72 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +49 -0
- data/vendor/local/include/groonga/groonga/plugin.h +1 -1
- data/vendor/local/include/groonga/groonga.h +83 -7
- 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 +3 -3
- 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 +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 +3 -3
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +3 -3
- 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 +2 -2
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +64 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +17 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +638 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +21 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +0 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +61 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/development.txt +15 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +131 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +136 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +72 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +53 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +267 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +43 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +196 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +77 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +21 -346
- data/vendor/local/share/doc/groonga/en/html/_sources/news/0.x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +16 -16
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +235 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_expr.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/cast.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{command_version.txt → reference/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/cache_limit.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/check.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/clearlock.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/column_create.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/column_list.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/column_remove.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands/define_selector.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/defrag.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/delete.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/dump.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands/load.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/log_level.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/log_put.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/log_reopen.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/quit.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +892 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/shutdown.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/status.txt +5 -6
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands/suggest.txt +8 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/table_create.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/table_list.txt +3 -26
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/table_remove.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/view_add.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands.txt → reference/commands.txt} +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands_not_implemented/add.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands_not_implemented/get.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands_not_implemented/set.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{executables → reference/executables}/grnslap.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +209 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/executables/groonga-http.txt → en/html/_sources/reference/executables/groonga-server-http.txt} +3 -3
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/executables/groonga-suggest-create-dataset.txt +1 -1
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/executables/groonga.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/{executables.txt → reference/executables.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/edit_distance.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +284 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/geo_in_circle.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/geo_in_rectangle.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/now.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/rand.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions.txt → reference/functions.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +584 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +805 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr.txt +59 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/indexing.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/{log.txt → reference/log.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{output.txt → reference/output.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{pseudo_column.txt → reference/pseudo_column.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{type.txt → reference/type.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +12 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/server/gqtp.txt +16 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +288 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/groonga-httpd.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/groonga.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http.txt +29 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +12 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/spec.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/correction.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +11 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +23 -23
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +3 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +8 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +25 -10
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +67 -67
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +742 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +47 -47
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +23 -22
- 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 +38 -38
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +46 -21
- data/vendor/local/share/doc/groonga/en/html/contribution.html +85 -50
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +191 -0
- data/vendor/local/share/doc/groonga/en/html/{executables.html → development.html} +27 -28
- data/vendor/local/share/doc/groonga/en/html/genindex.html +61 -61
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/index.html +167 -108
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +251 -0
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +260 -0
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +202 -0
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +186 -0
- data/vendor/local/share/doc/groonga/en/html/install/others.html +394 -0
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +171 -0
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +321 -0
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +200 -0
- data/vendor/local/share/doc/groonga/en/html/install.html +91 -349
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +301 -37
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +111 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +134 -0
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +111 -0
- data/vendor/local/share/doc/groonga/en/html/{command_version.html → reference/command_version.html} +44 -44
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/cache_limit.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/check.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/clearlock.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/column_create.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/column_list.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/column_remove.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/define_selector.html +51 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/defrag.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/delete.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/dump.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/load.html +51 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/log_level.html +50 -50
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/log_put.html +50 -50
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/log_reopen.html +52 -52
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/quit.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +2340 -0
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/shutdown.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/status.html +67 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/suggest.html +246 -246
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/table_create.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/table_list.html +140 -72
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/table_remove.html +51 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/view_add.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands.html → reference/commands.html} +55 -55
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +201 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +182 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +203 -0
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/grnslap.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/grntest.html +62 -62
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +367 -0
- data/vendor/local/share/doc/groonga/en/html/{executables/groonga-http.html → reference/executables/groonga-server-http.html} +46 -46
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/groonga-suggest-create-dataset.html +53 -53
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/groonga.html +54 -54
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +144 -0
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/edit_distance.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +551 -0
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/geo_in_circle.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/geo_in_rectangle.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/now.html +44 -44
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/rand.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions.html +143 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +1365 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +1977 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +192 -0
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +318 -0
- data/vendor/local/share/doc/groonga/en/html/{log.html → reference/log.html} +42 -42
- data/vendor/local/share/doc/groonga/en/html/{output.html → reference/output.html} +39 -39
- data/vendor/local/share/doc/groonga/en/html/{pseudo_column.html → reference/pseudo_column.html} +38 -38
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +134 -0
- data/vendor/local/share/doc/groonga/en/html/{type.html → reference/type.html} +45 -45
- data/vendor/local/share/doc/groonga/en/html/reference.html +84 -76
- 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/gqtp.html +135 -0
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +452 -0
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +136 -0
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +136 -0
- data/vendor/local/share/doc/groonga/en/html/server/http.html +168 -0
- data/vendor/local/share/doc/groonga/en/html/{functions.html → server.html} +26 -28
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/spec.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +35 -35
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +13 -11
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +340 -340
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +452 -36
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +382 -382
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +755 -79
- 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 +311 -311
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +561 -535
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +107 -107
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +145 -143
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +176 -176
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +415 -34
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +17 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +638 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +21 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +0 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +61 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/development.txt +15 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +131 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +136 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +72 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +53 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +267 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +43 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +196 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +77 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +21 -346
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/0.x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +16 -16
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +235 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_expr.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/cast.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{command_version.txt → reference/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/cache_limit.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/check.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/clearlock.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/column_create.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/column_list.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/column_remove.txt +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/commands/define_selector.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/defrag.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/delete.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/dump.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/load.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/log_level.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/log_put.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/log_reopen.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/quit.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +892 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/shutdown.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/commands/status.txt +5 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/suggest.txt +8 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/table_create.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/commands/table_list.txt +3 -26
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/commands/table_remove.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/view_add.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands.txt → reference/commands.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/add.txt +104 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/get.txt +80 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/set.txt +105 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{executables → reference/executables}/grnslap.txt +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +209 -0
- data/vendor/local/share/doc/groonga/{source/executables/groonga-http.txt → ja/html/_sources/reference/executables/groonga-server-http.txt} +3 -3
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/executables/groonga-suggest-create-dataset.txt +1 -1
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/executables/groonga.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/{executables.txt → reference/executables.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/edit_distance.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +284 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/geo_in_circle.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/geo_in_rectangle.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/now.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/rand.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions.txt → reference/functions.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +584 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +805 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr.txt +59 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{indexing.txt → reference/indexing.txt} +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/{log.txt → reference/log.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{output.txt → reference/output.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{pseudo_column.txt → reference/pseudo_column.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +8 -0
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/type.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +12 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/gqtp.txt +16 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +288 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/groonga-httpd.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/groonga.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http.txt +29 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +12 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/correction.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +11 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +23 -23
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +3 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +8 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +22 -10
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +67 -67
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +743 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +23 -22
- 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 +38 -38
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +41 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +85 -50
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +180 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables.html → development.html} +25 -28
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +61 -61
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/index.html +167 -108
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +236 -0
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +250 -0
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +190 -0
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +182 -0
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +348 -0
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +168 -0
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +309 -0
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +186 -0
- data/vendor/local/share/doc/groonga/ja/html/install.html +83 -340
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +273 -40
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +112 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +135 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +112 -0
- data/vendor/local/share/doc/groonga/ja/html/{command_version.html → reference/command_version.html} +45 -45
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/cache_limit.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/check.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/clearlock.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/column_create.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/column_list.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/column_remove.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/define_selector.html +52 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/defrag.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/delete.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/dump.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/load.html +52 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/log_level.html +51 -51
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/log_put.html +51 -51
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/log_reopen.html +53 -53
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/quit.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +2134 -0
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/shutdown.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/status.html +68 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/suggest.html +254 -254
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/table_create.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/table_list.html +141 -73
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/table_remove.html +52 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/view_add.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands.html → reference/commands.html} +56 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +202 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +183 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +204 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables → reference/executables}/grnslap.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{executables → reference/executables}/grntest.html +63 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +339 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables/groonga-http.html → reference/executables/groonga-server-http.html} +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +187 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables → reference/executables}/groonga.html +55 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +145 -0
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/edit_distance.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +510 -0
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/geo_in_circle.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/geo_in_rectangle.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/now.html +45 -45
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/rand.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions.html +144 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +1210 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +1819 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +169 -0
- data/vendor/local/share/doc/groonga/ja/html/{indexing.html → reference/indexing.html} +147 -147
- data/vendor/local/share/doc/groonga/ja/html/{log.html → reference/log.html} +55 -55
- data/vendor/local/share/doc/groonga/ja/html/{output.html → reference/output.html} +40 -40
- data/vendor/local/share/doc/groonga/ja/html/{pseudo_column.html → reference/pseudo_column.html} +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +135 -0
- data/vendor/local/share/doc/groonga/ja/html/{type.html → reference/type.html} +48 -48
- data/vendor/local/share/doc/groonga/ja/html/reference.html +84 -76
- 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/gqtp.html +136 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +406 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +137 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +137 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +166 -0
- data/vendor/local/share/doc/groonga/ja/html/{functions.html → server.html} +26 -28
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/spec.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +35 -35
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +15 -13
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +339 -339
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +452 -36
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +382 -382
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +756 -80
- 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 +311 -311
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +561 -535
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +108 -108
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +145 -143
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +176 -176
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +415 -34
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/source/community.txt +17 -0
- data/vendor/local/share/doc/groonga/source/conf.py +3 -16
- data/vendor/local/share/doc/groonga/source/contribution/development/release.txt +638 -0
- data/vendor/local/share/doc/groonga/source/contribution/report.txt +21 -6
- data/vendor/local/share/doc/groonga/source/contribution.txt +0 -1
- data/vendor/local/share/doc/groonga/source/development/travis-ci.txt +61 -0
- data/vendor/local/share/doc/groonga/source/development.txt +15 -0
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +29 -30
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +29 -30
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/filter_equal.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/filter_less_than.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/limit_negative.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/limit_simple.log +32 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_columns_simple.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_columns_some_columns.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_columns_weight.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_escalation_threshold.log +74 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/no_limit.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/offset_negative.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/offset_simple.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/output_columns_asterisk.log +36 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/output_columns_simple.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/paging.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_and.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_equal.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_expansion_complex.log +52 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_expansion_substitute.log +131 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_expansion_substitution_table.log +12 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_allow_column.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_allow_leading_not.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_allow_update.log +90 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_none.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_less_than.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_or.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/simple_filter.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/simple_query.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/simple_usage.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/sortby_descending.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/sortby_score_with_query.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/sortby_simple.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/table_nonexistent.log +18 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/usage_setup.log +33 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/status.log +21 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-completion.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-correction.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-learn-completion.log +12 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-learn-correction.log +14 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-learn-suggestion.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-mixed.log +77 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-suggestion.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/table_list.log +94 -0
- data/vendor/local/share/doc/groonga/source/example/reference/executables/groonga-httpd.log +21 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_ellipsoid.log +16 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_sphere.log +15 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_location_ellipsoid.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_location_rectangle.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_location_sphere.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_setup_distance.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_setup_location.log +16 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/setup.log +33 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_equal.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_full_text_search.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_full_text_search_with_explicit_match_column.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_greater_than.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_greater_than_or_equal_to.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_grouping.log +92 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_less_than.log +53 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_less_than_or_equal_to.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_logical_and.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_logical_not.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_logical_or.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_not_equal.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_phrase_search.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_phrase_search_with_explicit_match_column.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_prefix_search.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_suffix_search.log +51 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_addition_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_and_operator.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_not_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_or_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_xor_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_control_syntax_ternary_operator.log +53 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_division_operator_quotient.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_division_operator_remainder.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_equal_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_function.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_grouping.log +92 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_left_shift_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_and_operator.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_but_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_not_operator.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_or_operator.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_match_operator.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_multiplication_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_near_search_operator.log +52 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_not_equal_operator.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_prefix_search_operator.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_right_shift_operator.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_signed_right_shift_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_similar_search_operator.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_subtraction_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_suffix_search_operator.log +51 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_term_extract_operator.log +39 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_unsigned_right_shift_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-data.log +9 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-offline-index-construction.log +4 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-online-index-construction.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-schema.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-search-after-offline-index-construction.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-search-after-online-index-construction.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-search-without-index.log +27 -0
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +44 -45
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +53 -54
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +43 -44
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +43 -44
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +43 -44
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +44 -45
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +52 -53
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-1.log +21 -22
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-2.log +76 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-3.log +83 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-4.log +111 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-5.log +84 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-6.log +72 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-1.log +22 -23
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-2.log +103 -104
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-3.log +18 -19
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-4.log +82 -83
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-5.log +76 -77
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-6.log +37 -38
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-7.log +39 -40
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +0 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-11.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-12.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +127 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-17.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-18.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +19 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +25 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-5.log +31 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-6.log +13 -14
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-7.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-8.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-1.log +19 -20
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-2.log +135 -136
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-3.log +17 -18
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-4.log +135 -136
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-1.log +57 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-10.log +96 -97
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-2.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-3.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-4.log +87 -88
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-5.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-6.log +71 -72
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-7.log +52 -53
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-8.log +56 -57
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-9.log +35 -36
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +19 -20
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-2.log +0 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +82 -83
- data/vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-1.log +41 -41
- data/vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log +98 -98
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-1.log +24 -25
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-2.log +68 -69
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-3.log +78 -79
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-1.log +29 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-2.log +82 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-3.log +148 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-4.log +41 -11
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-5.log +39 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-6.log +39 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-7.log +29 -3
- data/vendor/local/share/doc/groonga/source/index.txt +2 -0
- data/vendor/local/share/doc/groonga/source/install/centos.txt +131 -0
- data/vendor/local/share/doc/groonga/source/install/debian.txt +136 -0
- data/vendor/local/share/doc/groonga/source/install/fedora.txt +72 -0
- data/vendor/local/share/doc/groonga/source/install/mac_os_x.txt +53 -0
- data/vendor/local/share/doc/groonga/source/install/others.txt +267 -0
- data/vendor/local/share/doc/groonga/source/install/solaris.txt +43 -0
- data/vendor/local/share/doc/groonga/source/install/ubuntu.txt +196 -0
- data/vendor/local/share/doc/groonga/source/install/windows.txt +77 -0
- data/vendor/local/share/doc/groonga/source/install.txt +21 -346
- data/vendor/local/share/doc/groonga/source/news/0.x.txt +3 -3
- data/vendor/local/share/doc/groonga/source/news/1.0.x.txt +16 -16
- data/vendor/local/share/doc/groonga/source/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/source/news/1.2.x.txt +17 -17
- data/vendor/local/share/doc/groonga/source/news.txt +235 -4
- data/vendor/local/share/doc/groonga/source/reference/api/grn_expr.txt +8 -0
- data/vendor/local/share/doc/groonga/source/reference/api.txt +8 -0
- data/vendor/local/share/doc/groonga/source/reference/cast.txt +8 -0
- data/vendor/local/share/doc/groonga/source/{command_version.txt → reference/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/cache_limit.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/check.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/clearlock.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/column_create.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/column_list.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/column_remove.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/define_selector.txt +1 -1
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/defrag.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/delete.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/dump.txt +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → source/reference}/commands/load.txt +1 -1
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/log_level.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/log_put.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/log_reopen.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/quit.txt +0 -0
- data/vendor/local/share/doc/groonga/source/reference/commands/select.txt +892 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/shutdown.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/status.txt +5 -6
- data/vendor/local/share/doc/groonga/{en/html/_sources → source/reference}/commands/suggest.txt +8 -8
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/table_create.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/table_list.txt +3 -26
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/table_remove.txt +3 -3
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/view_add.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands.txt → reference/commands.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/reference/commands_not_implemented/add.txt +104 -0
- data/vendor/local/share/doc/groonga/source/reference/commands_not_implemented/get.txt +80 -0
- data/vendor/local/share/doc/groonga/source/reference/commands_not_implemented/set.txt +105 -0
- data/vendor/local/share/doc/groonga/source/{executables → reference/executables}/grnslap.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{executables → reference/executables}/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/source/reference/executables/groonga-httpd.txt +209 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/executables/groonga-http.txt → source/reference/executables/groonga-server-http.txt} +3 -3
- data/vendor/local/share/doc/groonga/source/{executables → reference/executables}/groonga-suggest-create-dataset.txt +1 -1
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/executables/groonga.txt +4 -4
- data/vendor/local/share/doc/groonga/source/{executables.txt → reference/executables.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/edit_distance.txt +0 -0
- data/vendor/local/share/doc/groonga/source/reference/functions/geo_distance.txt +284 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/geo_in_circle.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/geo_in_rectangle.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/now.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/rand.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions.txt → reference/functions.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/reference/grn_expr/query_syntax.txt +584 -0
- data/vendor/local/share/doc/groonga/source/reference/grn_expr/script_syntax.txt +805 -0
- data/vendor/local/share/doc/groonga/source/reference/grn_expr.txt +59 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → source/reference}/indexing.txt +7 -7
- data/vendor/local/share/doc/groonga/source/{log.txt → reference/log.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{output.txt → reference/output.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{pseudo_column.txt → reference/pseudo_column.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/reference/tokenizers.txt +8 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/type.txt +4 -4
- data/vendor/local/share/doc/groonga/source/reference.txt +12 -9
- data/vendor/local/share/doc/groonga/source/server/gqtp.txt +16 -0
- data/vendor/local/share/doc/groonga/source/server/http/comparison.txt +288 -0
- data/vendor/local/share/doc/groonga/source/server/http/groonga-httpd.txt +8 -0
- data/vendor/local/share/doc/groonga/source/server/http/groonga.txt +8 -0
- data/vendor/local/share/doc/groonga/source/server/http.txt +29 -0
- data/vendor/local/share/doc/groonga/source/server.txt +12 -0
- data/vendor/local/share/doc/groonga/source/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/source/spec.txt +2 -2
- data/vendor/local/share/doc/groonga/source/suggest/completion.txt +1 -1
- data/vendor/local/share/doc/groonga/source/suggest/correction.txt +2 -2
- data/vendor/local/share/doc/groonga/source/suggest/introduction.txt +2 -0
- data/vendor/local/share/doc/groonga/source/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/source/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +11 -11
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +23 -23
- data/vendor/local/share/doc/groonga/source/tutorial/micro_blog.txt +3 -1
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/source/tutorial/patricia_trie.txt +8 -6
- data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/source/tutorial/search.txt +3 -3
- data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +10 -5
- data/vendor/local/share/man/ja/man1/groonga.1 +12354 -3896
- data/vendor/local/share/man/man1/groonga.1 +16934 -7750
- data/vendor/local/share/mecab/dic/naist-jdic/sys.dic +0 -0
- data/vendor/local/share/mecab/dic/naist-jdic/unk.dic +0 -0
- metadata +1251 -905
- data/lib/groonga/query-log.rb +0 -348
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/select.txt +0 -504
- data/vendor/local/share/doc/groonga/en/html/_sources/expr.txt +0 -45
- data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_distance.txt +0 -92
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +0 -891
- data/vendor/local/share/doc/groonga/en/html/expr.html +0 -178
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +0 -226
- data/vendor/local/share/doc/groonga/en/html/indexing.html +0 -318
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/select.txt +0 -504
- data/vendor/local/share/doc/groonga/ja/html/_sources/expr.txt +0 -45
- data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_distance.txt +0 -92
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +0 -810
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +0 -187
- data/vendor/local/share/doc/groonga/ja/html/expr.html +0 -179
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +0 -227
- data/vendor/local/share/doc/groonga/source/commands/select.txt +0 -504
- data/vendor/local/share/doc/groonga/source/commands/suggest-completion.log +0 -32
- data/vendor/local/share/doc/groonga/source/commands/suggest-correction.log +0 -32
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-completion.log +0 -13
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-correction.log +0 -15
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-suggestion.log +0 -9
- data/vendor/local/share/doc/groonga/source/commands/suggest-mixed.log +0 -78
- data/vendor/local/share/doc/groonga/source/commands/suggest-suggestion.log +0 -36
- data/vendor/local/share/doc/groonga/source/expr.txt +0 -45
- data/vendor/local/share/doc/groonga/source/functions/geo_distance.txt +0 -92
@@ -0,0 +1,2134 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
+
|
7
|
+
|
8
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
9
|
+
<head>
|
10
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
|
+
|
12
|
+
<title>8.4.17. select — groonga v2.0.7ドキュメント</title>
|
13
|
+
|
14
|
+
<link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
|
15
|
+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
var DOCUMENTATION_OPTIONS = {
|
19
|
+
URL_ROOT: '../../',
|
20
|
+
VERSION: '2.0.7',
|
21
|
+
COLLAPSE_INDEX: false,
|
22
|
+
FILE_SUFFIX: '.html',
|
23
|
+
HAS_SOURCE: true
|
24
|
+
};
|
25
|
+
</script>
|
26
|
+
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
27
|
+
<script type="text/javascript" src="../../_static/underscore.js"></script>
|
28
|
+
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
29
|
+
<script type="text/javascript" src="../../_static/translations.js"></script>
|
30
|
+
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
|
31
|
+
<link rel="top" title="groonga v2.0.7ドキュメント" href="../../index.html" />
|
32
|
+
<link rel="up" title="8.4. コマンド" href="../commands.html" />
|
33
|
+
<link rel="next" title="8.4.18. shutdown" href="shutdown.html" />
|
34
|
+
<link rel="prev" title="8.4.16. quit" href="quit.html" />
|
35
|
+
</head>
|
36
|
+
<body>
|
37
|
+
<div class="header">
|
38
|
+
<h1 class="title">
|
39
|
+
<a id="top-link" href="../../index.html">
|
40
|
+
<span class="project">groonga</span>
|
41
|
+
<span class="separator">-</span>
|
42
|
+
<span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span>
|
43
|
+
</a>
|
44
|
+
</h1>
|
45
|
+
|
46
|
+
<div class="other-language-links">
|
47
|
+
<ul>
|
48
|
+
<li><a href="../../../../en/html/reference/commands/select.html"><img src="../../_static/us.png" alt="English">English page</a></li>
|
49
|
+
</ul>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
<div class="related">
|
55
|
+
<h3>ナビゲーション</h3>
|
56
|
+
<ul>
|
57
|
+
<li class="right" style="margin-right: 10px">
|
58
|
+
<a href="../../genindex.html" title="総合索引"
|
59
|
+
accesskey="I">索引</a></li>
|
60
|
+
<li class="right" >
|
61
|
+
<a href="shutdown.html" title="8.4.18. shutdown"
|
62
|
+
accesskey="N">次へ</a> |</li>
|
63
|
+
<li class="right" >
|
64
|
+
<a href="quit.html" title="8.4.16. quit"
|
65
|
+
accesskey="P">前へ</a> |</li>
|
66
|
+
<li><a href="../../index.html">groonga v2.0.7ドキュメント</a> »</li>
|
67
|
+
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
68
|
+
<li><a href="../commands.html" accesskey="U">8.4. コマンド</a> »</li>
|
69
|
+
</ul>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<div class="document">
|
73
|
+
<div class="documentwrapper">
|
74
|
+
<div class="bodywrapper">
|
75
|
+
<div class="body">
|
76
|
+
|
77
|
+
<div class="section" id="select">
|
78
|
+
<h1>8.4.17. select<a class="headerlink" href="#select" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
79
|
+
<div class="section" id="summary">
|
80
|
+
<h2>8.4.17.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
81
|
+
<p><tt class="docutils literal"><span class="pre">select</span></tt> はテーブルから指定された条件にマッチするレコードを検索し、見つかったレコードを出力します。</p>
|
82
|
+
<p><tt class="docutils literal"><span class="pre">select</span></tt> は最も重要なgroongaのコマンドです。groongaの力を最大限に活かすためには <tt class="docutils literal"><span class="pre">select</span></tt> を理解する必要があります。</p>
|
83
|
+
</div>
|
84
|
+
<div class="section" id="syntax">
|
85
|
+
<h2>8.4.17.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
86
|
+
<p><tt class="docutils literal"><span class="pre">select</span></tt> には多くの引数があります。必須の引数は <tt class="docutils literal"><span class="pre">table</span></tt> だけで、残りは省略できます。:</p>
|
87
|
+
<div class="highlight-none"><div class="highlight"><pre>select table
|
88
|
+
[match_columns=null]
|
89
|
+
[query=null]
|
90
|
+
[filter=null]
|
91
|
+
[scorer=null]
|
92
|
+
[sortby=null]
|
93
|
+
[output_columns="_id, _key, *"]
|
94
|
+
[offset=0]
|
95
|
+
[limit=10]
|
96
|
+
[drilldown=null]
|
97
|
+
[drilldown_sortby=null]
|
98
|
+
[drilldown_output_columns=null]
|
99
|
+
[drilldown_offset=0]
|
100
|
+
[drilldown_limit=10]
|
101
|
+
[cache=yes]
|
102
|
+
[match_escalation_threshold=0]
|
103
|
+
[query_expansion=null]
|
104
|
+
[query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
|
105
|
+
</pre></div>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
<div class="section" id="usage">
|
109
|
+
<h2>8.4.17.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
110
|
+
<p>例を使いながら <tt class="docutils literal"><span class="pre">select</span></tt> の使い方を学びましょう。このセクションではよく使われる使い方を紹介します。</p>
|
111
|
+
<p>使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。</p>
|
112
|
+
<p>実行例:</p>
|
113
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Entries TABLE_HASH_KEY ShortText
|
114
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
115
|
+
column_create Entries content COLUMN_SCALAR Text
|
116
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
117
|
+
column_create Entries n_likes COLUMN_SCALAR UInt32
|
118
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
119
|
+
table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
|
120
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
121
|
+
column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
122
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
123
|
+
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
|
124
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
125
|
+
load --table Entries
|
126
|
+
[
|
127
|
+
{"_key": "The first post!",
|
128
|
+
"content": "Welcome! This is my first post!",
|
129
|
+
"n_likes": 5},
|
130
|
+
{"_key": "Groonga",
|
131
|
+
"content": "I started to use groonga. It's very fast!",
|
132
|
+
"n_likes": 10},
|
133
|
+
{"_key": "Mroonga",
|
134
|
+
"content": "I also started to use mroonga. It's also very fast! Really fast!",
|
135
|
+
"n_likes": 15},
|
136
|
+
{"_key": "Good-bye Senna",
|
137
|
+
"content": "I migrated all Senna system!",
|
138
|
+
"n_likes": 3},
|
139
|
+
{"_key": "Good-bye Tritonn",
|
140
|
+
"content": "I also migrated all Tritonn system!",
|
141
|
+
"n_likes": 3}
|
142
|
+
]
|
143
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
144
|
+
</pre></div>
|
145
|
+
</div>
|
146
|
+
<p>ブログエントリ用の <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルがあります。各エントリはタイトルと内容と「いいね!」数を持っています。タイトルは <tt class="docutils literal"><span class="pre">Entries</span></tt> のキーとします。内容は <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムの値とします。「いいね!」数は <tt class="docutils literal"><span class="pre">Entries.n_likes</span></tt> カラムの値とします。</p>
|
147
|
+
<p><tt class="docutils literal"><span class="pre">Entries._key</span></tt> カラムと <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムには <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> トークナイザーを使ったインデックスを作成します。そのため、 <tt class="docutils literal"><span class="pre">Entries._key</span></tt> と <tt class="docutils literal"><span class="pre">Entries.content</span></tt> は両方とも全文検索できます。</p>
|
148
|
+
<p>これで例を示すためのスキーマとデータの準備ができました。</p>
|
149
|
+
<div class="section" id="simple-usage">
|
150
|
+
<h3>8.4.17.3.1. 簡単な使い方<a class="headerlink" href="#simple-usage" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
151
|
+
<p>上記のスキーマとデータを使った一番簡単な使い方は以下の通りです。これは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルのすべてのレコードを出力します。</p>
|
152
|
+
<p>実行例:</p>
|
153
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries
|
154
|
+
# [
|
155
|
+
# [
|
156
|
+
# 0,
|
157
|
+
# 1337566253.89858,
|
158
|
+
# 0.000355720520019531
|
159
|
+
# ],
|
160
|
+
# [
|
161
|
+
# [
|
162
|
+
# [
|
163
|
+
# 5
|
164
|
+
# ],
|
165
|
+
# [
|
166
|
+
# [
|
167
|
+
# "_id",
|
168
|
+
# "UInt32"
|
169
|
+
# ],
|
170
|
+
# [
|
171
|
+
# "_key",
|
172
|
+
# "ShortText"
|
173
|
+
# ],
|
174
|
+
# [
|
175
|
+
# "content",
|
176
|
+
# "Text"
|
177
|
+
# ],
|
178
|
+
# [
|
179
|
+
# "n_likes",
|
180
|
+
# "UInt32"
|
181
|
+
# ]
|
182
|
+
# ],
|
183
|
+
# [
|
184
|
+
# 1,
|
185
|
+
# "The first post!",
|
186
|
+
# "Welcome! This is my first post!",
|
187
|
+
# 5
|
188
|
+
# ],
|
189
|
+
# [
|
190
|
+
# 2,
|
191
|
+
# "Groonga",
|
192
|
+
# "I started to use groonga. It's very fast!",
|
193
|
+
# 10
|
194
|
+
# ],
|
195
|
+
# [
|
196
|
+
# 3,
|
197
|
+
# "Mroonga",
|
198
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
199
|
+
# 15
|
200
|
+
# ],
|
201
|
+
# [
|
202
|
+
# 4,
|
203
|
+
# "Good-bye Senna",
|
204
|
+
# "I migrated all Senna system!",
|
205
|
+
# 3
|
206
|
+
# ],
|
207
|
+
# [
|
208
|
+
# 5,
|
209
|
+
# "Good-bye Tritonn",
|
210
|
+
# "I also migrated all Tritonn system!",
|
211
|
+
# 3
|
212
|
+
# ]
|
213
|
+
# ]
|
214
|
+
# ]
|
215
|
+
# ]
|
216
|
+
</pre></div>
|
217
|
+
</div>
|
218
|
+
<p>どうしてこのコマンドがすべてのレコードを出力するのでしょうか?理由は2つです。1つ目の理由はこのコマンドが検索条件を何も指定していないからです。検索条件を指定しないとすべてのレコードがマッチします。2つ目の理由は全レコード数が5だからです。 <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはデフォルトでは最大10レコードを出力します。この例では5レコードしかありません。これは10よりも少ないのですべてのレコードを出力します。</p>
|
219
|
+
</div>
|
220
|
+
<div class="section" id="search-conditions">
|
221
|
+
<h3>8.4.17.3.2. 検索条件<a class="headerlink" href="#search-conditions" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
222
|
+
<p>検索条件は <tt class="docutils literal"><span class="pre">query</span></tt> または <tt class="docutils literal"><span class="pre">filter</span></tt> で指定します。 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> を両方指定することもできます。この場合は <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> の両方の条件にマッチしたレコードが出力されます。</p>
|
223
|
+
<div class="section" id="search-condition-query">
|
224
|
+
<h4>8.4.17.3.2.1. 検索条件: <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#search-condition-query" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
225
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> はWebページの検索ボックス用に用意されています。例えば、google.co.jpにあるような検索ボックスです。 <tt class="docutils literal"><span class="pre">query</span></tt> の検索条件はスペース区切りでキーワードを指定します。例えば、 <tt class="docutils literal"><span class="pre">検索</span> <span class="pre">エンジン</span></tt> は <tt class="docutils literal"><span class="pre">検索</span></tt> と <tt class="docutils literal"><span class="pre">エンジン</span></tt> という2つのキーワードを含むレコードを検索します。</p>
|
226
|
+
<p>通常は <tt class="docutils literal"><span class="pre">query</span></tt> 引数は全文検索条件を指定するために使います。全文検索条件以外も指定できますが、その用途には <tt class="docutils literal"><span class="pre">filter</span></tt> 引数の方が向いています。</p>
|
227
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数で全文検索条件を指定する場合は、 <tt class="docutils literal"><span class="pre">match_columns</span></tt> 引数と一緒に使います。 <tt class="docutils literal"><span class="pre">match_columns</span></tt> はどのカラムまたはインデックスを使って <tt class="docutils literal"><span class="pre">query</span></tt> を検索するかを指定します。</p>
|
228
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">query</span></tt> の使用例です。</p>
|
229
|
+
<p>実行例:</p>
|
230
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast
|
231
|
+
# [
|
232
|
+
# [
|
233
|
+
# 0,
|
234
|
+
# 1337566253.89858,
|
235
|
+
# 0.000355720520019531
|
236
|
+
# ],
|
237
|
+
# [
|
238
|
+
# [
|
239
|
+
# [
|
240
|
+
# 2
|
241
|
+
# ],
|
242
|
+
# [
|
243
|
+
# [
|
244
|
+
# "_id",
|
245
|
+
# "UInt32"
|
246
|
+
# ],
|
247
|
+
# [
|
248
|
+
# "_key",
|
249
|
+
# "ShortText"
|
250
|
+
# ],
|
251
|
+
# [
|
252
|
+
# "content",
|
253
|
+
# "Text"
|
254
|
+
# ],
|
255
|
+
# [
|
256
|
+
# "n_likes",
|
257
|
+
# "UInt32"
|
258
|
+
# ]
|
259
|
+
# ],
|
260
|
+
# [
|
261
|
+
# 2,
|
262
|
+
# "Groonga",
|
263
|
+
# "I started to use groonga. It's very fast!",
|
264
|
+
# 10
|
265
|
+
# ],
|
266
|
+
# [
|
267
|
+
# 3,
|
268
|
+
# "Mroonga",
|
269
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
270
|
+
# 15
|
271
|
+
# ]
|
272
|
+
# ]
|
273
|
+
# ]
|
274
|
+
# ]
|
275
|
+
</pre></div>
|
276
|
+
</div>
|
277
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> を含んでいるレコードを検索します。</p>
|
278
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> はクエリ構文という構文を使いますが、詳細はここでは説明しません。詳細は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリ構文</em></a> を参照してください。</p>
|
279
|
+
</div>
|
280
|
+
<div class="section" id="search-condition-filter">
|
281
|
+
<h4>8.4.17.3.2.2. 検索条件: <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#search-condition-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
282
|
+
<p><tt class="docutils literal"><span class="pre">filter</span></tt> は複雑な検索条件を指定するために用意されています。ECMAScriptのような構文で <tt class="docutils literal"><span class="pre">filter</span></tt> に検索条件を指定します。</p>
|
283
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">filter</span></tt> の使用例です。</p>
|
284
|
+
<p>実行例:</p>
|
285
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && _key == "Groonga"'
|
286
|
+
# [
|
287
|
+
# [
|
288
|
+
# 0,
|
289
|
+
# 1337566253.89858,
|
290
|
+
# 0.000355720520019531
|
291
|
+
# ],
|
292
|
+
# [
|
293
|
+
# [
|
294
|
+
# [
|
295
|
+
# 1
|
296
|
+
# ],
|
297
|
+
# [
|
298
|
+
# [
|
299
|
+
# "_id",
|
300
|
+
# "UInt32"
|
301
|
+
# ],
|
302
|
+
# [
|
303
|
+
# "_key",
|
304
|
+
# "ShortText"
|
305
|
+
# ],
|
306
|
+
# [
|
307
|
+
# "content",
|
308
|
+
# "Text"
|
309
|
+
# ],
|
310
|
+
# [
|
311
|
+
# "n_likes",
|
312
|
+
# "UInt32"
|
313
|
+
# ]
|
314
|
+
# ],
|
315
|
+
# [
|
316
|
+
# 2,
|
317
|
+
# "Groonga",
|
318
|
+
# "I started to use groonga. It's very fast!",
|
319
|
+
# 10
|
320
|
+
# ]
|
321
|
+
# ]
|
322
|
+
# ]
|
323
|
+
# ]
|
324
|
+
</pre></div>
|
325
|
+
</div>
|
326
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中の <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> という単語を含んでいて、かつ、 <tt class="docutils literal"><span class="pre">_key</span></tt> が <tt class="docutils literal"><span class="pre">Groonga</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> という3つの演算子があります。 <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> はECMAScriptと同じ意味です。 <tt class="docutils literal"><span class="pre">&&</span></tt> が論理積用の演算子で <tt class="docutils literal"><span class="pre">==</span></tt> が等価演算子です。</p>
|
327
|
+
<p><tt class="docutils literal"><span class="pre">filter</span></tt> にはもっと演算子や構文があります。例えば、 <tt class="docutils literal"><span class="pre">(...)</span></tt> を使った検索条件のグループ化などです。しかし、ここでは詳細は説明しません。詳細は <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> を参照してください。</p>
|
328
|
+
</div>
|
329
|
+
</div>
|
330
|
+
<div class="section" id="paging">
|
331
|
+
<h3>8.4.17.3.3. ページング<a class="headerlink" href="#paging" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
332
|
+
<p><tt class="docutils literal"><span class="pre">offset</span></tt> と <tt class="docutils literal"><span class="pre">limit</span></tt> を指定することで出力されるレコードの範囲を指定できます。以下は2番目のレコードだけを出力する例です。</p>
|
333
|
+
<p>実行例:</p>
|
334
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --offset 1 --limit 1
|
335
|
+
# [
|
336
|
+
# [
|
337
|
+
# 0,
|
338
|
+
# 1337566253.89858,
|
339
|
+
# 0.000355720520019531
|
340
|
+
# ],
|
341
|
+
# [
|
342
|
+
# [
|
343
|
+
# [
|
344
|
+
# 5
|
345
|
+
# ],
|
346
|
+
# [
|
347
|
+
# [
|
348
|
+
# "_id",
|
349
|
+
# "UInt32"
|
350
|
+
# ],
|
351
|
+
# [
|
352
|
+
# "_key",
|
353
|
+
# "ShortText"
|
354
|
+
# ],
|
355
|
+
# [
|
356
|
+
# "content",
|
357
|
+
# "Text"
|
358
|
+
# ],
|
359
|
+
# [
|
360
|
+
# "n_likes",
|
361
|
+
# "UInt32"
|
362
|
+
# ]
|
363
|
+
# ],
|
364
|
+
# [
|
365
|
+
# 2,
|
366
|
+
# "Groonga",
|
367
|
+
# "I started to use groonga. It's very fast!",
|
368
|
+
# 10
|
369
|
+
# ]
|
370
|
+
# ]
|
371
|
+
# ]
|
372
|
+
# ]
|
373
|
+
</pre></div>
|
374
|
+
</div>
|
375
|
+
<p><tt class="docutils literal"><span class="pre">offset</span></tt> は0基点です。 <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> は2番目以降のレコードを出力するという意味になります。</p>
|
376
|
+
<p><tt class="docutils literal"><span class="pre">limit</span></tt> は出力レコード数の最大値を指定します。 <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">1</span></tt> は多くても1レコードを出力するという意味になります。もし、1つもレコードがマッチしていなければ <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはどのレコードも出力しません。</p>
|
377
|
+
</div>
|
378
|
+
<div class="section" id="the-total-number-of-records">
|
379
|
+
<h3>8.4.17.3.4. 全レコード数<a class="headerlink" href="#the-total-number-of-records" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
380
|
+
<p><tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> を使うとレコードの内容は取得せずに全レコード数だけを取得できます。</p>
|
381
|
+
<p>実行例:</p>
|
382
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --limit 0
|
383
|
+
# [
|
384
|
+
# [
|
385
|
+
# 0,
|
386
|
+
# 1337566253.89858,
|
387
|
+
# 0.000355720520019531
|
388
|
+
# ],
|
389
|
+
# [
|
390
|
+
# [
|
391
|
+
# [
|
392
|
+
# 5
|
393
|
+
# ],
|
394
|
+
# [
|
395
|
+
# [
|
396
|
+
# "_id",
|
397
|
+
# "UInt32"
|
398
|
+
# ],
|
399
|
+
# [
|
400
|
+
# "_key",
|
401
|
+
# "ShortText"
|
402
|
+
# ],
|
403
|
+
# [
|
404
|
+
# "content",
|
405
|
+
# "Text"
|
406
|
+
# ],
|
407
|
+
# [
|
408
|
+
# "n_likes",
|
409
|
+
# "UInt32"
|
410
|
+
# ]
|
411
|
+
# ]
|
412
|
+
# ]
|
413
|
+
# ]
|
414
|
+
# ]
|
415
|
+
</pre></div>
|
416
|
+
</div>
|
417
|
+
<p><tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> はマッチしたレコード数だけを取得したいときにも便利です。</p>
|
418
|
+
</div>
|
419
|
+
</div>
|
420
|
+
<div class="section" id="parameters">
|
421
|
+
<h2>8.4.17.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
422
|
+
<p>このセクションではすべての引数について説明します。引数はカテゴリわけしています。</p>
|
423
|
+
<div class="section" id="required-parameter">
|
424
|
+
<h3>8.4.17.4.1. 必須引数<a class="headerlink" href="#required-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
425
|
+
<p><tt class="docutils literal"><span class="pre">table</span></tt> だけが必須の引数です。</p>
|
426
|
+
<div class="section" id="table">
|
427
|
+
<h4>8.4.17.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt><a class="headerlink" href="#table" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
428
|
+
<p>検索対象のテーブルを指定します。 <tt class="docutils literal"><span class="pre">table</span></tt> は必ず指定しなければいけません。</p>
|
429
|
+
<p>存在しないテーブルを指定するとエラーが返ります。</p>
|
430
|
+
<p>実行例:</p>
|
431
|
+
<div class="highlight-none"><div class="highlight"><pre>select Nonexistent
|
432
|
+
# [
|
433
|
+
# [
|
434
|
+
# -22,
|
435
|
+
# 1337566253.89858,
|
436
|
+
# 0.000355720520019531,
|
437
|
+
# "invalid table name: <Nonexistent>",
|
438
|
+
# [
|
439
|
+
# [
|
440
|
+
# "grn_select",
|
441
|
+
# "proc.c",
|
442
|
+
# 542
|
443
|
+
# ]
|
444
|
+
# ]
|
445
|
+
# ]
|
446
|
+
# ]
|
447
|
+
</pre></div>
|
448
|
+
</div>
|
449
|
+
</div>
|
450
|
+
</div>
|
451
|
+
<div class="section" id="search-related-parameters">
|
452
|
+
<h3>8.4.17.4.2. 検索関係の引数<a class="headerlink" href="#search-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
453
|
+
<p>検索関係の引数がいくつかあります。一般的には、検索ボックスを実装するために <tt class="docutils literal"><span class="pre">match_columns</span></tt> と <tt class="docutils literal"><span class="pre">query</span></tt> 引数を使い、複雑な検索機能を実装するために <tt class="docutils literal"><span class="pre">filter</span></tt> 引数を使います。</p>
|
454
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> を指定した場合は、 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> にマッチしたレコードが選択されます。 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> のどちらも指定しなかった場合はすべてのレコードが選択されます。</p>
|
455
|
+
<div class="section" id="match-columns">
|
456
|
+
<h4>8.4.17.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt><a class="headerlink" href="#match-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
457
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数の値で全文検索をするときに使うデフォルトの検索対象カラムを指定します。全文検索対象のカラムは <tt class="docutils literal"><span class="pre">query</span></tt> 引数でも指定できます。検索対象カラムを <tt class="docutils literal"><span class="pre">match_columns</span></tt> で指定する場合と <tt class="docutils literal"><span class="pre">query</span></tt> で指定する場合の違いは重みを指定できるかどうかです。 <tt class="docutils literal"><span class="pre">match_columns</span></tt> では重みを指定できますが、 <tt class="docutils literal"><span class="pre">query</span></tt> では指定できません。</p>
|
458
|
+
<p>重みは検索対象カラムの相対的な重要度です。重みの大きい検索対象カラムでマッチした場合は小さい検索対象カラムでマッチした場合よりも多くのヒットスコアがつきます。デフォルトの重みは1です。</p>
|
459
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">match_columns</span></tt> の使用例です。</p>
|
460
|
+
<p>実行例:</p>
|
461
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --output_columns '_key, _score'
|
462
|
+
# [
|
463
|
+
# [
|
464
|
+
# 0,
|
465
|
+
# 1337566253.89858,
|
466
|
+
# 0.000355720520019531
|
467
|
+
# ],
|
468
|
+
# [
|
469
|
+
# [
|
470
|
+
# [
|
471
|
+
# 2
|
472
|
+
# ],
|
473
|
+
# [
|
474
|
+
# [
|
475
|
+
# "_key",
|
476
|
+
# "ShortText"
|
477
|
+
# ],
|
478
|
+
# [
|
479
|
+
# "_score",
|
480
|
+
# "Int32"
|
481
|
+
# ]
|
482
|
+
# ],
|
483
|
+
# [
|
484
|
+
# "Groonga",
|
485
|
+
# 1
|
486
|
+
# ],
|
487
|
+
# [
|
488
|
+
# "Mroonga",
|
489
|
+
# 2
|
490
|
+
# ]
|
491
|
+
# ]
|
492
|
+
# ]
|
493
|
+
# ]
|
494
|
+
</pre></div>
|
495
|
+
</div>
|
496
|
+
<p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">content</span></tt> はデフォルトの全文検索対象カラムに <tt class="docutils literal"><span class="pre">content</span></tt> カラムを使用し、その重みは1、という意味になります。 <tt class="docutils literal"><span class="pre">--output_columns</span> <span class="pre">'_key,</span> <span class="pre">_score'</span></tt> はこの <tt class="docutils literal"><span class="pre">select</span></tt> コマンドがマッチしたレコードの <tt class="docutils literal"><span class="pre">_key</span></tt> の値と <tt class="docutils literal"><span class="pre">_score</span></tt> の値を出力する、ということを指定しています。</p>
|
497
|
+
<p><tt class="docutils literal"><span class="pre">_score</span></tt> の値に注目してください。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値は <tt class="docutils literal"><span class="pre">query</span></tt> 引数の値に何個マッチしたかになっています。この例では、 <tt class="docutils literal"><span class="pre">query</span></tt> 引数の値は <tt class="docutils literal"><span class="pre">fast</span></tt> です。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値が1ということは <tt class="docutils literal"><span class="pre">content</span></tt> カラムの中に <tt class="docutils literal"><span class="pre">fast</span></tt> が1つだけあるということです。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値が2ということは <tt class="docutils literal"><span class="pre">content</span></tt> カラムの中に <tt class="docutils literal"><span class="pre">fast</span></tt> が2つあるということです。</p>
|
498
|
+
<p>重みを指定するためには <tt class="docutils literal"><span class="pre">column</span> <span class="pre">*</span> <span class="pre">weight</span></tt> という構文を使います。以下は重みの使用例です。</p>
|
499
|
+
<p>実行例:</p>
|
500
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns 'content * 2' --query fast --output_columns '_key, _score'
|
501
|
+
# [
|
502
|
+
# [
|
503
|
+
# 0,
|
504
|
+
# 1337566253.89858,
|
505
|
+
# 0.000355720520019531
|
506
|
+
# ],
|
507
|
+
# [
|
508
|
+
# [
|
509
|
+
# [
|
510
|
+
# 2
|
511
|
+
# ],
|
512
|
+
# [
|
513
|
+
# [
|
514
|
+
# "_key",
|
515
|
+
# "ShortText"
|
516
|
+
# ],
|
517
|
+
# [
|
518
|
+
# "_score",
|
519
|
+
# "Int32"
|
520
|
+
# ]
|
521
|
+
# ],
|
522
|
+
# [
|
523
|
+
# "Groonga",
|
524
|
+
# 2
|
525
|
+
# ],
|
526
|
+
# [
|
527
|
+
# "Mroonga",
|
528
|
+
# 4
|
529
|
+
# ]
|
530
|
+
# ]
|
531
|
+
# ]
|
532
|
+
# ]
|
533
|
+
</pre></div>
|
534
|
+
</div>
|
535
|
+
<p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'content</span> <span class="pre">*</span> <span class="pre">2'</span></tt> はデフォルトの全文検索用カラムとして <tt class="docutils literal"><span class="pre">content</span></tt> カラムを使い、その重みは2という意味です。</p>
|
536
|
+
<p><tt class="docutils literal"><span class="pre">_score</span></tt> の値に注目してください。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値が2倍になっています。これは重みを2にしたからです。</p>
|
537
|
+
<p>デフォルトの全文検索対象カラムとして複数のカラムを指定することができます。複数のカラムを指定した場合はすべてのカラムに対して全文検索が行われ、ヒットスコアが積算されます。つまり、 <tt class="docutils literal"><span class="pre">query</span></tt> 引数の値がどれか1つでも全文検索対象カラムにマッチしたら、そのレコードはマッチしたものとして扱われます。</p>
|
538
|
+
<p>複数のカラムを指定するには <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">*</span> <span class="pre">weight1</span> <span class="pre">||</span> <span class="pre">column2</span> <span class="pre">*</span> <span class="pre">weight2</span> <span class="pre">||</span> <span class="pre">...</span></tt> という構文を使います。 <tt class="docutils literal"><span class="pre">*</span> <span class="pre">weight</span></tt> は省略することができます。省略した場合は重みが1になります。以下は複数カラムの使用例です。</p>
|
539
|
+
<p>実行例:</p>
|
540
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns '_key * 10 || content' --query groonga --output_columns '_key, _score'
|
541
|
+
# [
|
542
|
+
# [
|
543
|
+
# 0,
|
544
|
+
# 1337566253.89858,
|
545
|
+
# 0.000355720520019531
|
546
|
+
# ],
|
547
|
+
# [
|
548
|
+
# [
|
549
|
+
# [
|
550
|
+
# 1
|
551
|
+
# ],
|
552
|
+
# [
|
553
|
+
# [
|
554
|
+
# "_key",
|
555
|
+
# "ShortText"
|
556
|
+
# ],
|
557
|
+
# [
|
558
|
+
# "_score",
|
559
|
+
# "Int32"
|
560
|
+
# ]
|
561
|
+
# ],
|
562
|
+
# [
|
563
|
+
# "Groonga",
|
564
|
+
# 11
|
565
|
+
# ]
|
566
|
+
# ]
|
567
|
+
# ]
|
568
|
+
# ]
|
569
|
+
</pre></div>
|
570
|
+
</div>
|
571
|
+
<p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'_key</span> <span class="pre">*</span> <span class="pre">10</span> <span class="pre">||</span> <span class="pre">content'</span></tt> はデフォルト検索対象カラムが <tt class="docutils literal"><span class="pre">_key</span></tt> カラムと <tt class="docutils literal"><span class="pre">content</span></tt> カラムで、 <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの重みは10、 <tt class="docutils literal"><span class="pre">content</span></tt> カラムの重みは1という意味です。この重み付けは <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値よりも重要だという意味になります。この例では、ブログエントリのタイトルはブログエントリの内容よりも重要だということです。</p>
|
572
|
+
</div>
|
573
|
+
<div class="section" id="query">
|
574
|
+
<h4>8.4.17.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#query" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
575
|
+
<p>クエリテキストを指定します。通常、全文検索をするために <tt class="docutils literal"><span class="pre">match_columns</span></tt> 引数と一緒に使います。 <tt class="docutils literal"><span class="pre">query</span></tt> 引数はWebページにある全文検索フォームで使いやすいように設計されています。クエリテキストは <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリ構文</em></a> という書式を使います。この書式は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>
|
576
|
+
<p>以下は論理積を使った検索の簡単な例です。</p>
|
577
|
+
<p>実行例:</p>
|
578
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "fast groonga"
|
579
|
+
# [
|
580
|
+
# [
|
581
|
+
# 0,
|
582
|
+
# 1337566253.89858,
|
583
|
+
# 0.000355720520019531
|
584
|
+
# ],
|
585
|
+
# [
|
586
|
+
# [
|
587
|
+
# [
|
588
|
+
# 1
|
589
|
+
# ],
|
590
|
+
# [
|
591
|
+
# [
|
592
|
+
# "_id",
|
593
|
+
# "UInt32"
|
594
|
+
# ],
|
595
|
+
# [
|
596
|
+
# "_key",
|
597
|
+
# "ShortText"
|
598
|
+
# ],
|
599
|
+
# [
|
600
|
+
# "content",
|
601
|
+
# "Text"
|
602
|
+
# ],
|
603
|
+
# [
|
604
|
+
# "n_likes",
|
605
|
+
# "UInt32"
|
606
|
+
# ]
|
607
|
+
# ],
|
608
|
+
# [
|
609
|
+
# 2,
|
610
|
+
# "Groonga",
|
611
|
+
# "I started to use groonga. It's very fast!",
|
612
|
+
# 10
|
613
|
+
# ]
|
614
|
+
# ]
|
615
|
+
# ]
|
616
|
+
# ]
|
617
|
+
</pre></div>
|
618
|
+
</div>
|
619
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> と <tt class="docutils literal"><span class="pre">groonga</span></tt> の2つの単語を含んでいるレコードを検索します。</p>
|
620
|
+
<p>以下は論理和を使った検索の簡単な例です。</p>
|
621
|
+
<p>実行例:</p>
|
622
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "groonga OR mroonga"
|
623
|
+
# [
|
624
|
+
# [
|
625
|
+
# 0,
|
626
|
+
# 1337566253.89858,
|
627
|
+
# 0.000355720520019531
|
628
|
+
# ],
|
629
|
+
# [
|
630
|
+
# [
|
631
|
+
# [
|
632
|
+
# 2
|
633
|
+
# ],
|
634
|
+
# [
|
635
|
+
# [
|
636
|
+
# "_id",
|
637
|
+
# "UInt32"
|
638
|
+
# ],
|
639
|
+
# [
|
640
|
+
# "_key",
|
641
|
+
# "ShortText"
|
642
|
+
# ],
|
643
|
+
# [
|
644
|
+
# "content",
|
645
|
+
# "Text"
|
646
|
+
# ],
|
647
|
+
# [
|
648
|
+
# "n_likes",
|
649
|
+
# "UInt32"
|
650
|
+
# ]
|
651
|
+
# ],
|
652
|
+
# [
|
653
|
+
# 2,
|
654
|
+
# "Groonga",
|
655
|
+
# "I started to use groonga. It's very fast!",
|
656
|
+
# 10
|
657
|
+
# ],
|
658
|
+
# [
|
659
|
+
# 3,
|
660
|
+
# "Mroonga",
|
661
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
662
|
+
# 15
|
663
|
+
# ]
|
664
|
+
# ]
|
665
|
+
# ]
|
666
|
+
# ]
|
667
|
+
</pre></div>
|
668
|
+
</div>
|
669
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> または <tt class="docutils literal"><span class="pre">groonga</span></tt> のどちらかの単語を含んでいるレコードを検索します。</p>
|
670
|
+
<p>他の構文は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリ構文</em></a> を参照してください。</p>
|
671
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> では全文検索だけではなく他の条件も使えます。例えば、 <tt class="docutils literal"><span class="pre">column:value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> と等しいという意味です。 <tt class="docutils literal"><span class="pre">column:<value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> より小さいという意味です。</p>
|
672
|
+
<p>以下は等価演算子を使った検索の簡単な例です。</p>
|
673
|
+
<p>実行例:</p>
|
674
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query _key:Groonga
|
675
|
+
# [
|
676
|
+
# [
|
677
|
+
# 0,
|
678
|
+
# 1337566253.89858,
|
679
|
+
# 0.000355720520019531
|
680
|
+
# ],
|
681
|
+
# [
|
682
|
+
# [
|
683
|
+
# [
|
684
|
+
# 1
|
685
|
+
# ],
|
686
|
+
# [
|
687
|
+
# [
|
688
|
+
# "_id",
|
689
|
+
# "UInt32"
|
690
|
+
# ],
|
691
|
+
# [
|
692
|
+
# "_key",
|
693
|
+
# "ShortText"
|
694
|
+
# ],
|
695
|
+
# [
|
696
|
+
# "content",
|
697
|
+
# "Text"
|
698
|
+
# ],
|
699
|
+
# [
|
700
|
+
# "n_likes",
|
701
|
+
# "UInt32"
|
702
|
+
# ]
|
703
|
+
# ],
|
704
|
+
# [
|
705
|
+
# 2,
|
706
|
+
# "Groonga",
|
707
|
+
# "I started to use groonga. It's very fast!",
|
708
|
+
# 10
|
709
|
+
# ]
|
710
|
+
# ]
|
711
|
+
# ]
|
712
|
+
# ]
|
713
|
+
</pre></div>
|
714
|
+
</div>
|
715
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> であるレコードを検索します。</p>
|
716
|
+
<p>以下は比較演算子を使った検索の簡単な例です。</p>
|
717
|
+
<p>実行例:</p>
|
718
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:<11
|
719
|
+
# [
|
720
|
+
# [
|
721
|
+
# 0,
|
722
|
+
# 1337566253.89858,
|
723
|
+
# 0.000355720520019531
|
724
|
+
# ],
|
725
|
+
# [
|
726
|
+
# [
|
727
|
+
# [
|
728
|
+
# 4
|
729
|
+
# ],
|
730
|
+
# [
|
731
|
+
# [
|
732
|
+
# "_id",
|
733
|
+
# "UInt32"
|
734
|
+
# ],
|
735
|
+
# [
|
736
|
+
# "_key",
|
737
|
+
# "ShortText"
|
738
|
+
# ],
|
739
|
+
# [
|
740
|
+
# "content",
|
741
|
+
# "Text"
|
742
|
+
# ],
|
743
|
+
# [
|
744
|
+
# "n_likes",
|
745
|
+
# "UInt32"
|
746
|
+
# ]
|
747
|
+
# ],
|
748
|
+
# [
|
749
|
+
# 1,
|
750
|
+
# "The first post!",
|
751
|
+
# "Welcome! This is my first post!",
|
752
|
+
# 5
|
753
|
+
# ],
|
754
|
+
# [
|
755
|
+
# 2,
|
756
|
+
# "Groonga",
|
757
|
+
# "I started to use groonga. It's very fast!",
|
758
|
+
# 10
|
759
|
+
# ],
|
760
|
+
# [
|
761
|
+
# 4,
|
762
|
+
# "Good-bye Senna",
|
763
|
+
# "I migrated all Senna system!",
|
764
|
+
# 3
|
765
|
+
# ],
|
766
|
+
# [
|
767
|
+
# 5,
|
768
|
+
# "Good-bye Tritonn",
|
769
|
+
# "I also migrated all Tritonn system!",
|
770
|
+
# 3
|
771
|
+
# ]
|
772
|
+
# ]
|
773
|
+
# ]
|
774
|
+
# ]
|
775
|
+
</pre></div>
|
776
|
+
</div>
|
777
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">11</span></tt> より小さいレコードを検索します。</p>
|
778
|
+
<p>他の演算子は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリ構文</em></a> を参照してください。</p>
|
779
|
+
</div>
|
780
|
+
<div class="section" id="filter">
|
781
|
+
<h4>8.4.17.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
782
|
+
<p>フィルターテキストを指定します。通常、 <tt class="docutils literal"><span class="pre">filter</span></tt> は複雑な条件を指定するために使います。 <tt class="docutils literal"><span class="pre">filter</span></tt> は <tt class="docutils literal"><span class="pre">query</span></tt> 引数と一緒に使うこともできます。 <tt class="docutils literal"><span class="pre">filter</span></tt> と <tt class="docutils literal"><span class="pre">query</span></tt> を両方指定した場合はそれらを論理積で組み合わせます。つまり、マッチするレコードは <tt class="docutils literal"><span class="pre">filter</span></tt> にも <tt class="docutils literal"><span class="pre">query</span></tt> にもマッチしなければいけないということです。</p>
|
783
|
+
<p><tt class="docutils literal"><span class="pre">filter</span></tt> 引数は複雑な条件用に設計されています。フィルターテキストは <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> 書式で指定します。この書式はECMAScriptに似ています。例えば、 <tt class="docutils literal"><span class="pre">column</span> <span class="pre">==</span> <span class="pre">"value"</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">"value"</span></tt> と等しいという意味です。 <tt class="docutils literal"><span class="pre">column</span> <span class="pre"><</span> <span class="pre">value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">value</span></tt> よりも小さいという意味です。</p>
|
784
|
+
<p>以下は等価演算子を使った検索の簡単な例です。</p>
|
785
|
+
<p>実行例:</p>
|
786
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '_key == "Groonga"'
|
787
|
+
# [
|
788
|
+
# [
|
789
|
+
# 0,
|
790
|
+
# 1337566253.89858,
|
791
|
+
# 0.000355720520019531
|
792
|
+
# ],
|
793
|
+
# [
|
794
|
+
# [
|
795
|
+
# [
|
796
|
+
# 1
|
797
|
+
# ],
|
798
|
+
# [
|
799
|
+
# [
|
800
|
+
# "_id",
|
801
|
+
# "UInt32"
|
802
|
+
# ],
|
803
|
+
# [
|
804
|
+
# "_key",
|
805
|
+
# "ShortText"
|
806
|
+
# ],
|
807
|
+
# [
|
808
|
+
# "content",
|
809
|
+
# "Text"
|
810
|
+
# ],
|
811
|
+
# [
|
812
|
+
# "n_likes",
|
813
|
+
# "UInt32"
|
814
|
+
# ]
|
815
|
+
# ],
|
816
|
+
# [
|
817
|
+
# 2,
|
818
|
+
# "Groonga",
|
819
|
+
# "I started to use groonga. It's very fast!",
|
820
|
+
# 10
|
821
|
+
# ]
|
822
|
+
# ]
|
823
|
+
# ]
|
824
|
+
# ]
|
825
|
+
</pre></div>
|
826
|
+
</div>
|
827
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> であるレコードを検索します。</p>
|
828
|
+
<p>以下は比較演算子を使った検索の簡単な例です。</p>
|
829
|
+
<p>実行例:</p>
|
830
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 11'
|
831
|
+
# [
|
832
|
+
# [
|
833
|
+
# 0,
|
834
|
+
# 1337566253.89858,
|
835
|
+
# 0.000355720520019531
|
836
|
+
# ],
|
837
|
+
# [
|
838
|
+
# [
|
839
|
+
# [
|
840
|
+
# 4
|
841
|
+
# ],
|
842
|
+
# [
|
843
|
+
# [
|
844
|
+
# "_id",
|
845
|
+
# "UInt32"
|
846
|
+
# ],
|
847
|
+
# [
|
848
|
+
# "_key",
|
849
|
+
# "ShortText"
|
850
|
+
# ],
|
851
|
+
# [
|
852
|
+
# "content",
|
853
|
+
# "Text"
|
854
|
+
# ],
|
855
|
+
# [
|
856
|
+
# "n_likes",
|
857
|
+
# "UInt32"
|
858
|
+
# ]
|
859
|
+
# ],
|
860
|
+
# [
|
861
|
+
# 1,
|
862
|
+
# "The first post!",
|
863
|
+
# "Welcome! This is my first post!",
|
864
|
+
# 5
|
865
|
+
# ],
|
866
|
+
# [
|
867
|
+
# 2,
|
868
|
+
# "Groonga",
|
869
|
+
# "I started to use groonga. It's very fast!",
|
870
|
+
# 10
|
871
|
+
# ],
|
872
|
+
# [
|
873
|
+
# 4,
|
874
|
+
# "Good-bye Senna",
|
875
|
+
# "I migrated all Senna system!",
|
876
|
+
# 3
|
877
|
+
# ],
|
878
|
+
# [
|
879
|
+
# 5,
|
880
|
+
# "Good-bye Tritonn",
|
881
|
+
# "I also migrated all Tritonn system!",
|
882
|
+
# 3
|
883
|
+
# ]
|
884
|
+
# ]
|
885
|
+
# ]
|
886
|
+
# ]
|
887
|
+
</pre></div>
|
888
|
+
</div>
|
889
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">11</span></tt> より小さいレコードを検索します。</p>
|
890
|
+
<p>他の演算子は <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> を参照してください。</p>
|
891
|
+
</div>
|
892
|
+
</div>
|
893
|
+
<div class="section" id="advanced-search-parameters">
|
894
|
+
<h3>8.4.17.4.3. 高度な検索のための引数<a class="headerlink" href="#advanced-search-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
895
|
+
<div class="section" id="match-escalation-threshold">
|
896
|
+
<span id="id1"></span><h4>8.4.17.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt><a class="headerlink" href="#match-escalation-threshold" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
897
|
+
<p>検索方法をエスカレーションするかどうかを決定するための閾値を指定します。この閾値はマッチしたレコード数との比較に使われます。マッチしたレコード数がこの閾値以下の場合は検索方法をエスカレーションします。検索方法のエスカレーションについては <a class="reference internal" href="../../spec/search.html"><em>検索</em></a> を参照してください。</p>
|
898
|
+
<p>デフォルトの閾値は0です。これは1つもレコードがマッチしなかったときだけ検索方法をエスカレーションするということです。</p>
|
899
|
+
<p>デフォルトの閾値は以下の方法でカスタマイズできます。</p>
|
900
|
+
<blockquote>
|
901
|
+
<div><ul class="simple">
|
902
|
+
<li>configureの <tt class="docutils literal"><span class="pre">--with-match-escalation-threshold</span></tt> オプション</li>
|
903
|
+
<li>groongaコマンドの <tt class="docutils literal"><span class="pre">--match-escalation-threshold</span></tt> オプション</li>
|
904
|
+
<li>設定ファイルの <tt class="docutils literal"><span class="pre">match-escalation-threshold</span></tt> 設定項目</li>
|
905
|
+
</ul>
|
906
|
+
</div></blockquote>
|
907
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> の使用例です。最初の <tt class="docutils literal"><span class="pre">select</span></tt> は <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> 引数がありません。2番目の <tt class="docutils literal"><span class="pre">select</span></tt> は <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> 引数があります。</p>
|
908
|
+
<p>実行例:</p>
|
909
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query groo
|
910
|
+
# [
|
911
|
+
# [
|
912
|
+
# 0,
|
913
|
+
# 1337566253.89858,
|
914
|
+
# 0.000355720520019531
|
915
|
+
# ],
|
916
|
+
# [
|
917
|
+
# [
|
918
|
+
# [
|
919
|
+
# 1
|
920
|
+
# ],
|
921
|
+
# [
|
922
|
+
# [
|
923
|
+
# "_id",
|
924
|
+
# "UInt32"
|
925
|
+
# ],
|
926
|
+
# [
|
927
|
+
# "_key",
|
928
|
+
# "ShortText"
|
929
|
+
# ],
|
930
|
+
# [
|
931
|
+
# "content",
|
932
|
+
# "Text"
|
933
|
+
# ],
|
934
|
+
# [
|
935
|
+
# "n_likes",
|
936
|
+
# "UInt32"
|
937
|
+
# ]
|
938
|
+
# ],
|
939
|
+
# [
|
940
|
+
# 2,
|
941
|
+
# "Groonga",
|
942
|
+
# "I started to use groonga. It's very fast!",
|
943
|
+
# 10
|
944
|
+
# ]
|
945
|
+
# ]
|
946
|
+
# ]
|
947
|
+
# ]
|
948
|
+
select Entries --match_columns content --query groo --match_escalation_threshold -1
|
949
|
+
# [
|
950
|
+
# [
|
951
|
+
# 0,
|
952
|
+
# 1337566253.89858,
|
953
|
+
# 0.000355720520019531
|
954
|
+
# ],
|
955
|
+
# [
|
956
|
+
# [
|
957
|
+
# [
|
958
|
+
# 0
|
959
|
+
# ],
|
960
|
+
# [
|
961
|
+
# [
|
962
|
+
# "_id",
|
963
|
+
# "UInt32"
|
964
|
+
# ],
|
965
|
+
# [
|
966
|
+
# "_key",
|
967
|
+
# "ShortText"
|
968
|
+
# ],
|
969
|
+
# [
|
970
|
+
# "content",
|
971
|
+
# "Text"
|
972
|
+
# ],
|
973
|
+
# [
|
974
|
+
# "n_likes",
|
975
|
+
# "UInt32"
|
976
|
+
# ]
|
977
|
+
# ]
|
978
|
+
# ]
|
979
|
+
# ]
|
980
|
+
# ]
|
981
|
+
</pre></div>
|
982
|
+
</div>
|
983
|
+
<p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルから <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">groo</span></tt> という単語を含むレコードを検索します。しかし、この検索ではどのレコードにもマッチしません。これは、 <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> トークナイザーは <tt class="docutils literal"><span class="pre">groonga</span></tt> を <tt class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></tt> ではなく <tt class="docutils literal"><span class="pre">groonga</span></tt> にトークナイズするからです。( <tt class="docutils literal"><span class="pre">TokenBigramSplitSymbolAlpha</span></tt> は <tt class="docutils literal"><span class="pre">groonga</span></tt> を <tt class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></tt> にトークナイズします。詳細は <a class="reference internal" href="../tokenizers.html"><em>Tokenizers</em></a> を見てください。)つまり、 <tt class="docutils literal"><span class="pre">groonga</span></tt> はインデックスに登録されていますが、 <tt class="docutils literal"><span class="pre">groo</span></tt> はインデックスに登録されていないということです。インデックスに登録されていないので完全一致検索では <tt class="docutils literal"><span class="pre">groo</span></tt> はどのレコードにもマッチしません。このケースでは検索方法のエスカレーションが行われています。なぜならばマッチしたレコード数(0)が <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> (0)の値と等しいからです。非分かち書き検索では <tt class="docutils literal"><span class="pre">groo</span></tt> で1つのレコードがマッチします。</p>
|
984
|
+
<p>2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドも <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルから <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">groo</span></tt> という単語を含むレコードを検索します。そして、この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドもマッチしません。この場合、マッチしたレコード数(0)が <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> (-1)より大きいので、検索方法をエスカレーションしません。そして、1つもレコードがマッチしません。</p>
|
985
|
+
</div>
|
986
|
+
<div class="section" id="query-expansion">
|
987
|
+
<h4>8.4.17.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt><a class="headerlink" href="#query-expansion" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
988
|
+
<p>クエリ展開用の引数です。クエリ展開はクエリ中の特定の単語を別の単語に置換します。通常は類義語検索に使います。</p>
|
989
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数の値を置換するために使うカラムを指定します。この引数の値の書式は「 <tt class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></tt> 」です。例えば、 「 <tt class="docutils literal"><span class="pre">Terms.synonym</span></tt> 」は <tt class="docutils literal"><span class="pre">Terms</span></tt> テーブルの <tt class="docutils literal"><span class="pre">synonym</span></tt> カラムを指定しています。</p>
|
990
|
+
<p>クエリ展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。そのため、配列テーブル( <tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt> )は置換テーブルに使うことはできません。なぜなら、配列テーブルにはキーがないからです。</p>
|
991
|
+
<p>クエリ展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。カラムの種類はベクター( <tt class="docutils literal"><span class="pre">COLUMN_VECTOR</span></tt> )にしてください。</p>
|
992
|
+
<p>クエリ展開はクエリの中にある置換テーブルのキーを置換カラムの値で置換します。 <tt class="docutils literal"><span class="pre">query</span></tt> の中にある単語が置換テーブルのキーだったら、キーに対応する置換カラムの値でその単語を置換します。置換は再帰的に実行しません。これは、置換されたクエリ内に置換対象の単語があっても置換されないということです。</p>
|
993
|
+
<p>以下は <tt class="docutils literal"><span class="pre">query_expansion</span></tt> の簡単な使用例を示すためのサンプル置換テーブルです。</p>
|
994
|
+
<p>実行例:</p>
|
995
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
996
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
997
|
+
column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
998
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
999
|
+
load --table Thesaurus
|
1000
|
+
[
|
1001
|
+
{"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
1002
|
+
{"_key": "groonga", "synonym": ["groonga", "senna"]}
|
1003
|
+
]
|
1004
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1005
|
+
</pre></div>
|
1006
|
+
</div>
|
1007
|
+
<p><tt class="docutils literal"><span class="pre">Thesaurus</span></tt> 置換テーブルは2つの類義語があります。 <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> と <tt class="docutils literal"><span class="pre">"groonga"</span></tt> です。ユーザが <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> で検索すると、groongaは <tt class="docutils literal"><span class="pre">"((mroonga)</span> <span class="pre">OR</span> <span class="pre">(tritonn)</span> <span class="pre">OR</span> <span class="pre">(groonga</span> <span class="pre">mysql))"</span></tt> で検索します。ユーザーが <tt class="docutils literal"><span class="pre">"groonga"</span></tt> で検索すると、groongaは <tt class="docutils literal"><span class="pre">"((groonga)</span> <span class="pre">OR</span> <span class="pre">(senna))"</span></tt> で検索します。通常、置換テーブルには <tt class="docutils literal"><span class="pre">KEY_NORMALIZE</span></tt> フラグをつけた方がよいです。このフラグを使うと、置換対象の単語が大文字小文字区別せずにマッチするようになります。</p>
|
1008
|
+
<p>これらの類義語の値の中に <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> や <tt class="docutils literal"><span class="pre">"groonga"</span></tt> といったキーの値も含まれていることに注意してください。このように類義語にキーの値も含めることを推奨します。もしキーの値を含めないと、置換した値には元の置換対象の値が含まれません。通常、元の値が含まれていた方がよい検索結果になります。もし、検索してほしくない単語がある場合は、元の単語を含めないでください。例えば、空のベクター値を指定することで「ストップワード」機能を実現することもできます。</p>
|
1009
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">query_expansion</span></tt> の使用例です。</p>
|
1010
|
+
<p>実行例:</p>
|
1011
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "mroonga"
|
1012
|
+
# [
|
1013
|
+
# [
|
1014
|
+
# 0,
|
1015
|
+
# 1337566253.89858,
|
1016
|
+
# 0.000355720520019531
|
1017
|
+
# ],
|
1018
|
+
# [
|
1019
|
+
# [
|
1020
|
+
# [
|
1021
|
+
# 1
|
1022
|
+
# ],
|
1023
|
+
# [
|
1024
|
+
# [
|
1025
|
+
# "_id",
|
1026
|
+
# "UInt32"
|
1027
|
+
# ],
|
1028
|
+
# [
|
1029
|
+
# "_key",
|
1030
|
+
# "ShortText"
|
1031
|
+
# ],
|
1032
|
+
# [
|
1033
|
+
# "content",
|
1034
|
+
# "Text"
|
1035
|
+
# ],
|
1036
|
+
# [
|
1037
|
+
# "n_likes",
|
1038
|
+
# "UInt32"
|
1039
|
+
# ]
|
1040
|
+
# ],
|
1041
|
+
# [
|
1042
|
+
# 3,
|
1043
|
+
# "Mroonga",
|
1044
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1045
|
+
# 15
|
1046
|
+
# ]
|
1047
|
+
# ]
|
1048
|
+
# ]
|
1049
|
+
# ]
|
1050
|
+
select Entries --match_columns content --query "mroonga" --query_expansion Thesaurus.synonym
|
1051
|
+
# [
|
1052
|
+
# [
|
1053
|
+
# 0,
|
1054
|
+
# 1337566253.89858,
|
1055
|
+
# 0.000355720520019531
|
1056
|
+
# ],
|
1057
|
+
# [
|
1058
|
+
# [
|
1059
|
+
# [
|
1060
|
+
# 2
|
1061
|
+
# ],
|
1062
|
+
# [
|
1063
|
+
# [
|
1064
|
+
# "_id",
|
1065
|
+
# "UInt32"
|
1066
|
+
# ],
|
1067
|
+
# [
|
1068
|
+
# "_key",
|
1069
|
+
# "ShortText"
|
1070
|
+
# ],
|
1071
|
+
# [
|
1072
|
+
# "content",
|
1073
|
+
# "Text"
|
1074
|
+
# ],
|
1075
|
+
# [
|
1076
|
+
# "n_likes",
|
1077
|
+
# "UInt32"
|
1078
|
+
# ]
|
1079
|
+
# ],
|
1080
|
+
# [
|
1081
|
+
# 3,
|
1082
|
+
# "Mroonga",
|
1083
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1084
|
+
# 15
|
1085
|
+
# ],
|
1086
|
+
# [
|
1087
|
+
# 5,
|
1088
|
+
# "Good-bye Tritonn",
|
1089
|
+
# "I also migrated all Tritonn system!",
|
1090
|
+
# 3
|
1091
|
+
# ]
|
1092
|
+
# ]
|
1093
|
+
# ]
|
1094
|
+
# ]
|
1095
|
+
select Entries --match_columns content --query "((mroonga) OR (tritonn) OR (groonga mysql))"
|
1096
|
+
# [
|
1097
|
+
# [
|
1098
|
+
# 0,
|
1099
|
+
# 1337566253.89858,
|
1100
|
+
# 0.000355720520019531
|
1101
|
+
# ],
|
1102
|
+
# [
|
1103
|
+
# [
|
1104
|
+
# [
|
1105
|
+
# 2
|
1106
|
+
# ],
|
1107
|
+
# [
|
1108
|
+
# [
|
1109
|
+
# "_id",
|
1110
|
+
# "UInt32"
|
1111
|
+
# ],
|
1112
|
+
# [
|
1113
|
+
# "_key",
|
1114
|
+
# "ShortText"
|
1115
|
+
# ],
|
1116
|
+
# [
|
1117
|
+
# "content",
|
1118
|
+
# "Text"
|
1119
|
+
# ],
|
1120
|
+
# [
|
1121
|
+
# "n_likes",
|
1122
|
+
# "UInt32"
|
1123
|
+
# ]
|
1124
|
+
# ],
|
1125
|
+
# [
|
1126
|
+
# 3,
|
1127
|
+
# "Mroonga",
|
1128
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1129
|
+
# 15
|
1130
|
+
# ],
|
1131
|
+
# [
|
1132
|
+
# 5,
|
1133
|
+
# "Good-bye Tritonn",
|
1134
|
+
# "I also migrated all Tritonn system!",
|
1135
|
+
# 3
|
1136
|
+
# ]
|
1137
|
+
# ]
|
1138
|
+
# ]
|
1139
|
+
# ]
|
1140
|
+
</pre></div>
|
1141
|
+
</div>
|
1142
|
+
<p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリ展開を使いません。そのため、 <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> という単語を含んでいるレコードは見つかりません。2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリ展開を使っています。そのため、 <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> という単語を含んでいるレコードが見つかります。3番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリ展開を使っていませんが、2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドと同じ結果になります。これは、3番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは展開後のクエリを使っているからです。</p>
|
1143
|
+
<p>それぞれの置換する値は <tt class="docutils literal"><span class="pre">(...)</span></tt> や <tt class="docutils literal"><span class="pre">OR</span></tt> といった <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリ構文</em></a> を使えます。これらの構文を使うことにより複雑な置換をすることができます。</p>
|
1144
|
+
<p>以下はクエリ構文を使った複雑な置換の使用例です。</p>
|
1145
|
+
<p>実行例:</p>
|
1146
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table Thesaurus
|
1147
|
+
[
|
1148
|
+
{"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
1149
|
+
]
|
1150
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 1]
|
1151
|
+
select Entries --match_columns content --query "popular" --query_expansion Thesaurus.synonym
|
1152
|
+
# [
|
1153
|
+
# [
|
1154
|
+
# 0,
|
1155
|
+
# 1337566253.89858,
|
1156
|
+
# 0.000355720520019531
|
1157
|
+
# ],
|
1158
|
+
# [
|
1159
|
+
# [
|
1160
|
+
# [
|
1161
|
+
# 2
|
1162
|
+
# ],
|
1163
|
+
# [
|
1164
|
+
# [
|
1165
|
+
# "_id",
|
1166
|
+
# "UInt32"
|
1167
|
+
# ],
|
1168
|
+
# [
|
1169
|
+
# "_key",
|
1170
|
+
# "ShortText"
|
1171
|
+
# ],
|
1172
|
+
# [
|
1173
|
+
# "content",
|
1174
|
+
# "Text"
|
1175
|
+
# ],
|
1176
|
+
# [
|
1177
|
+
# "n_likes",
|
1178
|
+
# "UInt32"
|
1179
|
+
# ]
|
1180
|
+
# ],
|
1181
|
+
# [
|
1182
|
+
# 2,
|
1183
|
+
# "Groonga",
|
1184
|
+
# "I started to use groonga. It's very fast!",
|
1185
|
+
# 10
|
1186
|
+
# ],
|
1187
|
+
# [
|
1188
|
+
# 3,
|
1189
|
+
# "Mroonga",
|
1190
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1191
|
+
# 15
|
1192
|
+
# ]
|
1193
|
+
# ]
|
1194
|
+
# ]
|
1195
|
+
# ]
|
1196
|
+
</pre></div>
|
1197
|
+
</div>
|
1198
|
+
<p>この <tt class="docutils literal"><span class="pre">load</span></tt> コマンドは新しく <tt class="docutils literal"><span class="pre">"popular"</span></tt> という類義語を登録しています。これは <tt class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:>=10))</span></tt> に置換されます。置換されたクエリは、「popular」というのは「popular」という単語を含んでいるか10以上の「いいね!」数を持つエントリという意味になります。</p>
|
1199
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> 以上のレコードを出力します。</p>
|
1200
|
+
</div>
|
1201
|
+
<div class="section" id="query-flags">
|
1202
|
+
<span id="id2"></span><h4>8.4.17.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt><a class="headerlink" href="#query-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1203
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> パラメーターの構文をカスタマイズします。デフォルトでは <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> を指定することで <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新することができます。</p>
|
1204
|
+
<p>指定可能な値は以下の通りです。</p>
|
1205
|
+
<ul class="simple">
|
1206
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt></li>
|
1207
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt></li>
|
1208
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt></li>
|
1209
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt></li>
|
1210
|
+
<li><tt class="docutils literal"><span class="pre">NONE</span></tt></li>
|
1211
|
+
</ul>
|
1212
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt> を指定すると <tt class="docutils literal"><span class="pre">query</span></tt> の先頭でプラグマを指定することができます。この機能はまだ実装されていません。</p>
|
1213
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> を指定すると <tt class="docutils literal"><span class="pre">match_columns</span></tt> で指定していないカラムでも検索できるように成ります。カラムを指定するには <tt class="docutils literal"><span class="pre">COLUMN:...</span></tt> というような構文を使います。</p>
|
1214
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> を指定すると <tt class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></tt> という構文を使って <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新できます。カラム更新用の構文ではカラムを指定する必要があるため、 <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> も一緒に指定する必要があります。</p>
|
1215
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> を指定すると <tt class="docutils literal"><span class="pre">-WORD</span></tt> という構文を使って最初の条件として否定条件を指定できます。このクエリは <tt class="docutils literal"><span class="pre">WORD</span></tt> にマッチしないレコードを検索します。最初の条件に否定条件を使ったクエリは多くの場合重いクエリになります。これは多くのレコードにマッチするからです。そのため、このフラグはデフォルトでは無効になっています。もし、このフラグを使う場合は重いクエリとなるということを十分気をつけてください。</p>
|
1216
|
+
<p><tt class="docutils literal"><span class="pre">NONE</span></tt> は単に無視されます。フラグを指定しないときに <tt class="docutils literal"><span class="pre">NONE</span></tt> を使えます。</p>
|
1217
|
+
<p>これらのフラグは <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> のように <tt class="docutils literal"><span class="pre">|</span></tt> で区切って同時に指定することができます。</p>
|
1218
|
+
<p>デフォルト値は <tt class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></tt> です。</p>
|
1219
|
+
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> の使用例です。</p>
|
1220
|
+
<p>実行例:</p>
|
1221
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
|
1222
|
+
# [
|
1223
|
+
# [
|
1224
|
+
# 0,
|
1225
|
+
# 1337566253.89858,
|
1226
|
+
# 0.000355720520019531
|
1227
|
+
# ],
|
1228
|
+
# [
|
1229
|
+
# [
|
1230
|
+
# [
|
1231
|
+
# 1
|
1232
|
+
# ],
|
1233
|
+
# [
|
1234
|
+
# [
|
1235
|
+
# "_id",
|
1236
|
+
# "UInt32"
|
1237
|
+
# ],
|
1238
|
+
# [
|
1239
|
+
# "_key",
|
1240
|
+
# "ShortText"
|
1241
|
+
# ],
|
1242
|
+
# [
|
1243
|
+
# "content",
|
1244
|
+
# "Text"
|
1245
|
+
# ],
|
1246
|
+
# [
|
1247
|
+
# "n_likes",
|
1248
|
+
# "UInt32"
|
1249
|
+
# ]
|
1250
|
+
# ],
|
1251
|
+
# [
|
1252
|
+
# 3,
|
1253
|
+
# "Mroonga",
|
1254
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1255
|
+
# 15
|
1256
|
+
# ]
|
1257
|
+
# ]
|
1258
|
+
# ]
|
1259
|
+
# ]
|
1260
|
+
</pre></div>
|
1261
|
+
</div>
|
1262
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> を含んでいるレコードを検索します。</p>
|
1263
|
+
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> の使用例です。</p>
|
1264
|
+
<p>実行例:</p>
|
1265
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
|
1266
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1267
|
+
column_create Users age COLUMN_SCALAR UInt32
|
1268
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1269
|
+
load --table Users
|
1270
|
+
[
|
1271
|
+
{"_key": "alice", "age": 18},
|
1272
|
+
{"_key": "bob", "age": 20}
|
1273
|
+
]
|
1274
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1275
|
+
select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
1276
|
+
# [
|
1277
|
+
# [
|
1278
|
+
# 0,
|
1279
|
+
# 1337566253.89858,
|
1280
|
+
# 0.000355720520019531
|
1281
|
+
# ],
|
1282
|
+
# [
|
1283
|
+
# [
|
1284
|
+
# [
|
1285
|
+
# 2
|
1286
|
+
# ],
|
1287
|
+
# [
|
1288
|
+
# [
|
1289
|
+
# "_id",
|
1290
|
+
# "UInt32"
|
1291
|
+
# ],
|
1292
|
+
# [
|
1293
|
+
# "_key",
|
1294
|
+
# "ShortText"
|
1295
|
+
# ],
|
1296
|
+
# [
|
1297
|
+
# "age",
|
1298
|
+
# "UInt32"
|
1299
|
+
# ]
|
1300
|
+
# ],
|
1301
|
+
# [
|
1302
|
+
# 1,
|
1303
|
+
# "alice",
|
1304
|
+
# 19
|
1305
|
+
# ],
|
1306
|
+
# [
|
1307
|
+
# 2,
|
1308
|
+
# "bob",
|
1309
|
+
# 19
|
1310
|
+
# ]
|
1311
|
+
# ]
|
1312
|
+
# ]
|
1313
|
+
# ]
|
1314
|
+
select Users
|
1315
|
+
# [
|
1316
|
+
# [
|
1317
|
+
# 0,
|
1318
|
+
# 1337566253.89858,
|
1319
|
+
# 0.000355720520019531
|
1320
|
+
# ],
|
1321
|
+
# [
|
1322
|
+
# [
|
1323
|
+
# [
|
1324
|
+
# 2
|
1325
|
+
# ],
|
1326
|
+
# [
|
1327
|
+
# [
|
1328
|
+
# "_id",
|
1329
|
+
# "UInt32"
|
1330
|
+
# ],
|
1331
|
+
# [
|
1332
|
+
# "_key",
|
1333
|
+
# "ShortText"
|
1334
|
+
# ],
|
1335
|
+
# [
|
1336
|
+
# "age",
|
1337
|
+
# "UInt32"
|
1338
|
+
# ]
|
1339
|
+
# ],
|
1340
|
+
# [
|
1341
|
+
# 1,
|
1342
|
+
# "alice",
|
1343
|
+
# 19
|
1344
|
+
# ],
|
1345
|
+
# [
|
1346
|
+
# 2,
|
1347
|
+
# "bob",
|
1348
|
+
# 19
|
1349
|
+
# ]
|
1350
|
+
# ]
|
1351
|
+
# ]
|
1352
|
+
# ]
|
1353
|
+
</pre></div>
|
1354
|
+
</div>
|
1355
|
+
<p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは全てのレコードの <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を <tt class="docutils literal"><span class="pre">19</span></tt> にします。二番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を出力します。</p>
|
1356
|
+
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> の使用例です。</p>
|
1357
|
+
<p>実行例:</p>
|
1358
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
|
1359
|
+
# [
|
1360
|
+
# [
|
1361
|
+
# 0,
|
1362
|
+
# 1337566253.89858,
|
1363
|
+
# 0.000355720520019531
|
1364
|
+
# ],
|
1365
|
+
# [
|
1366
|
+
# [
|
1367
|
+
# [
|
1368
|
+
# 4
|
1369
|
+
# ],
|
1370
|
+
# [
|
1371
|
+
# [
|
1372
|
+
# "_id",
|
1373
|
+
# "UInt32"
|
1374
|
+
# ],
|
1375
|
+
# [
|
1376
|
+
# "_key",
|
1377
|
+
# "ShortText"
|
1378
|
+
# ],
|
1379
|
+
# [
|
1380
|
+
# "content",
|
1381
|
+
# "Text"
|
1382
|
+
# ],
|
1383
|
+
# [
|
1384
|
+
# "n_likes",
|
1385
|
+
# "UInt32"
|
1386
|
+
# ]
|
1387
|
+
# ],
|
1388
|
+
# [
|
1389
|
+
# 1,
|
1390
|
+
# "The first post!",
|
1391
|
+
# "Welcome! This is my first post!",
|
1392
|
+
# 5
|
1393
|
+
# ],
|
1394
|
+
# [
|
1395
|
+
# 2,
|
1396
|
+
# "Groonga",
|
1397
|
+
# "I started to use groonga. It's very fast!",
|
1398
|
+
# 10
|
1399
|
+
# ],
|
1400
|
+
# [
|
1401
|
+
# 4,
|
1402
|
+
# "Good-bye Senna",
|
1403
|
+
# "I migrated all Senna system!",
|
1404
|
+
# 3
|
1405
|
+
# ],
|
1406
|
+
# [
|
1407
|
+
# 5,
|
1408
|
+
# "Good-bye Tritonn",
|
1409
|
+
# "I also migrated all Tritonn system!",
|
1410
|
+
# 3
|
1411
|
+
# ]
|
1412
|
+
# ]
|
1413
|
+
# ]
|
1414
|
+
# ]
|
1415
|
+
</pre></div>
|
1416
|
+
</div>
|
1417
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> を含んでいないレコードを検索します。</p>
|
1418
|
+
<p>以下は <tt class="docutils literal"><span class="pre">NONE</span></tt> の使用例です。</p>
|
1419
|
+
<p>実行例:</p>
|
1420
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query 'mroonga OR _key:Groonga' --query_flags NONE
|
1421
|
+
# [
|
1422
|
+
# [
|
1423
|
+
# 0,
|
1424
|
+
# 1337566253.89858,
|
1425
|
+
# 0.000355720520019531
|
1426
|
+
# ],
|
1427
|
+
# [
|
1428
|
+
# [
|
1429
|
+
# [
|
1430
|
+
# 1
|
1431
|
+
# ],
|
1432
|
+
# [
|
1433
|
+
# [
|
1434
|
+
# "_id",
|
1435
|
+
# "UInt32"
|
1436
|
+
# ],
|
1437
|
+
# [
|
1438
|
+
# "_key",
|
1439
|
+
# "ShortText"
|
1440
|
+
# ],
|
1441
|
+
# [
|
1442
|
+
# "content",
|
1443
|
+
# "Text"
|
1444
|
+
# ],
|
1445
|
+
# [
|
1446
|
+
# "n_likes",
|
1447
|
+
# "UInt32"
|
1448
|
+
# ]
|
1449
|
+
# ],
|
1450
|
+
# [
|
1451
|
+
# 3,
|
1452
|
+
# "Mroonga",
|
1453
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1454
|
+
# 15
|
1455
|
+
# ]
|
1456
|
+
# ]
|
1457
|
+
# ]
|
1458
|
+
# ]
|
1459
|
+
</pre></div>
|
1460
|
+
</div>
|
1461
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> または <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> のどちらかの単語を含んでいるレコードを検索します。 <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> が <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> という条件にはならないことに注意してください。これは <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> フラグが指定されていないからです。</p>
|
1462
|
+
<p><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリ構文</em></a> も見てください。</p>
|
1463
|
+
</div>
|
1464
|
+
</div>
|
1465
|
+
<div class="section" id="output-related-parameters">
|
1466
|
+
<h3>8.4.17.4.4. 出力関連の引数<a class="headerlink" href="#output-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1467
|
+
<div class="section" id="output-columns">
|
1468
|
+
<h4>8.4.17.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt><a class="headerlink" href="#output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1469
|
+
<p>出力するカラムを <tt class="docutils literal"><span class="pre">,</span></tt> 区切りで指定します。</p>
|
1470
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">output_columns</span></tt> の使用例です。</p>
|
1471
|
+
<p>実行例:</p>
|
1472
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_id, _key' --limit 1
|
1473
|
+
# [
|
1474
|
+
# [
|
1475
|
+
# 0,
|
1476
|
+
# 1337566253.89858,
|
1477
|
+
# 0.000355720520019531
|
1478
|
+
# ],
|
1479
|
+
# [
|
1480
|
+
# [
|
1481
|
+
# [
|
1482
|
+
# 5
|
1483
|
+
# ],
|
1484
|
+
# [
|
1485
|
+
# [
|
1486
|
+
# "_id",
|
1487
|
+
# "UInt32"
|
1488
|
+
# ],
|
1489
|
+
# [
|
1490
|
+
# "_key",
|
1491
|
+
# "ShortText"
|
1492
|
+
# ]
|
1493
|
+
# ],
|
1494
|
+
# [
|
1495
|
+
# 1,
|
1496
|
+
# "The first post!"
|
1497
|
+
# ]
|
1498
|
+
# ]
|
1499
|
+
# ]
|
1500
|
+
# ]
|
1501
|
+
</pre></div>
|
1502
|
+
</div>
|
1503
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">_id</span></tt> と <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値だけを出力します。</p>
|
1504
|
+
<p><tt class="docutils literal"><span class="pre">*</span></tt> is a special value. It means that all columns that are not
|
1505
|
+
<a class="reference internal" href="../pseudo_column.html"><em>疑似カラム (pseudo_column)</em></a>.</p>
|
1506
|
+
<p>以下は <tt class="docutils literal"><span class="pre">*</span></tt> の使用例です。</p>
|
1507
|
+
<p>実行例:</p>
|
1508
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_key, *' --limit 1
|
1509
|
+
# [
|
1510
|
+
# [
|
1511
|
+
# 0,
|
1512
|
+
# 1337566253.89858,
|
1513
|
+
# 0.000355720520019531
|
1514
|
+
# ],
|
1515
|
+
# [
|
1516
|
+
# [
|
1517
|
+
# [
|
1518
|
+
# 5
|
1519
|
+
# ],
|
1520
|
+
# [
|
1521
|
+
# [
|
1522
|
+
# "_key",
|
1523
|
+
# "ShortText"
|
1524
|
+
# ],
|
1525
|
+
# [
|
1526
|
+
# "content",
|
1527
|
+
# "Text"
|
1528
|
+
# ],
|
1529
|
+
# [
|
1530
|
+
# "n_likes",
|
1531
|
+
# "UInt32"
|
1532
|
+
# ]
|
1533
|
+
# ],
|
1534
|
+
# [
|
1535
|
+
# "The first post!",
|
1536
|
+
# "Welcome! This is my first post!",
|
1537
|
+
# 5
|
1538
|
+
# ]
|
1539
|
+
# ]
|
1540
|
+
# ]
|
1541
|
+
# ]
|
1542
|
+
</pre></div>
|
1543
|
+
</div>
|
1544
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">_key</span></tt> 擬似カラム、 <tt class="docutils literal"><span class="pre">content</span></tt> カラム、 <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値を出力しますが、 <tt class="docutils literal"><span class="pre">_id</span></tt> 擬似カラムの値は出力しません。</p>
|
1545
|
+
<p>デフォルト値は <tt class="docutils literal"><span class="pre">_id,</span> <span class="pre">_key,</span> <span class="pre">*</span></tt> です。これは <tt class="docutils literal"><span class="pre">_score</span></tt> 以外の全てのカラムを出力するという意味です。</p>
|
1546
|
+
</div>
|
1547
|
+
<div class="section" id="sortby">
|
1548
|
+
<h4>8.4.17.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt><a class="headerlink" href="#sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1549
|
+
<p>ソートキーを <tt class="docutils literal"><span class="pre">,</span></tt> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
|
1550
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">sortby</span></tt> の使用例です。</p>
|
1551
|
+
<p>実行例:</p>
|
1552
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby 'n_likes, _id'
|
1553
|
+
# [
|
1554
|
+
# [
|
1555
|
+
# 0,
|
1556
|
+
# 1337566253.89858,
|
1557
|
+
# 0.000355720520019531
|
1558
|
+
# ],
|
1559
|
+
# [
|
1560
|
+
# [
|
1561
|
+
# [
|
1562
|
+
# 5
|
1563
|
+
# ],
|
1564
|
+
# [
|
1565
|
+
# [
|
1566
|
+
# "_id",
|
1567
|
+
# "UInt32"
|
1568
|
+
# ],
|
1569
|
+
# [
|
1570
|
+
# "_key",
|
1571
|
+
# "ShortText"
|
1572
|
+
# ],
|
1573
|
+
# [
|
1574
|
+
# "content",
|
1575
|
+
# "Text"
|
1576
|
+
# ],
|
1577
|
+
# [
|
1578
|
+
# "n_likes",
|
1579
|
+
# "UInt32"
|
1580
|
+
# ]
|
1581
|
+
# ],
|
1582
|
+
# [
|
1583
|
+
# 4,
|
1584
|
+
# "Good-bye Senna",
|
1585
|
+
# "I migrated all Senna system!",
|
1586
|
+
# 3
|
1587
|
+
# ],
|
1588
|
+
# [
|
1589
|
+
# 5,
|
1590
|
+
# "Good-bye Tritonn",
|
1591
|
+
# "I also migrated all Tritonn system!",
|
1592
|
+
# 3
|
1593
|
+
# ],
|
1594
|
+
# [
|
1595
|
+
# 1,
|
1596
|
+
# "The first post!",
|
1597
|
+
# "Welcome! This is my first post!",
|
1598
|
+
# 5
|
1599
|
+
# ],
|
1600
|
+
# [
|
1601
|
+
# 2,
|
1602
|
+
# "Groonga",
|
1603
|
+
# "I started to use groonga. It's very fast!",
|
1604
|
+
# 10
|
1605
|
+
# ],
|
1606
|
+
# [
|
1607
|
+
# 3,
|
1608
|
+
# "Mroonga",
|
1609
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1610
|
+
# 15
|
1611
|
+
# ]
|
1612
|
+
# ]
|
1613
|
+
# ]
|
1614
|
+
# ]
|
1615
|
+
</pre></div>
|
1616
|
+
</div>
|
1617
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値で昇順にソートします。 <tt class="docutils literal"><span class="pre">n_likes</span></tt> の値が同じレコードについては <tt class="docutils literal"><span class="pre">_id</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> が <tt class="docutils literal"><span class="pre">_id</span></tt> カラムの値でソートしているケースです。</p>
|
1618
|
+
<p>降順でソートしたい場合はカラム名の前に <tt class="docutils literal"><span class="pre">-</span></tt> をつけてください。</p>
|
1619
|
+
<p>以下は降順の <tt class="docutils literal"><span class="pre">sortby</span></tt> の使用例です。</p>
|
1620
|
+
<p>実行例:</p>
|
1621
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby '-n_likes, _id'
|
1622
|
+
# [
|
1623
|
+
# [
|
1624
|
+
# 0,
|
1625
|
+
# 1337566253.89858,
|
1626
|
+
# 0.000355720520019531
|
1627
|
+
# ],
|
1628
|
+
# [
|
1629
|
+
# [
|
1630
|
+
# [
|
1631
|
+
# 5
|
1632
|
+
# ],
|
1633
|
+
# [
|
1634
|
+
# [
|
1635
|
+
# "_id",
|
1636
|
+
# "UInt32"
|
1637
|
+
# ],
|
1638
|
+
# [
|
1639
|
+
# "_key",
|
1640
|
+
# "ShortText"
|
1641
|
+
# ],
|
1642
|
+
# [
|
1643
|
+
# "content",
|
1644
|
+
# "Text"
|
1645
|
+
# ],
|
1646
|
+
# [
|
1647
|
+
# "n_likes",
|
1648
|
+
# "UInt32"
|
1649
|
+
# ]
|
1650
|
+
# ],
|
1651
|
+
# [
|
1652
|
+
# 3,
|
1653
|
+
# "Mroonga",
|
1654
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1655
|
+
# 15
|
1656
|
+
# ],
|
1657
|
+
# [
|
1658
|
+
# 2,
|
1659
|
+
# "Groonga",
|
1660
|
+
# "I started to use groonga. It's very fast!",
|
1661
|
+
# 10
|
1662
|
+
# ],
|
1663
|
+
# [
|
1664
|
+
# 1,
|
1665
|
+
# "The first post!",
|
1666
|
+
# "Welcome! This is my first post!",
|
1667
|
+
# 5
|
1668
|
+
# ],
|
1669
|
+
# [
|
1670
|
+
# 4,
|
1671
|
+
# "Good-bye Senna",
|
1672
|
+
# "I migrated all Senna system!",
|
1673
|
+
# 3
|
1674
|
+
# ],
|
1675
|
+
# [
|
1676
|
+
# 5,
|
1677
|
+
# "Good-bye Tritonn",
|
1678
|
+
# "I also migrated all Tritonn system!",
|
1679
|
+
# 3
|
1680
|
+
# ]
|
1681
|
+
# ]
|
1682
|
+
# ]
|
1683
|
+
# ]
|
1684
|
+
</pre></div>
|
1685
|
+
</div>
|
1686
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値で降順にソートします。しかし、 <tt class="docutils literal"><span class="pre">_id</span></tt> でソートするときは昇順でソートします。</p>
|
1687
|
+
<p>もし、 <tt class="docutils literal"><span class="pre">query</span></tt> または <tt class="docutils literal"><span class="pre">filter</span></tt> 引数を使っているときは、 <tt class="docutils literal"><span class="pre">sortby</span></tt> の中で <tt class="docutils literal"><span class="pre">_score</span></tt> 擬似カラムを使うことができます。</p>
|
1688
|
+
<p>実行例:</p>
|
1689
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --sortby -_score --output_columns '_key, _score'
|
1690
|
+
# [
|
1691
|
+
# [
|
1692
|
+
# 0,
|
1693
|
+
# 1337566253.89858,
|
1694
|
+
# 0.000355720520019531
|
1695
|
+
# ],
|
1696
|
+
# [
|
1697
|
+
# [
|
1698
|
+
# [
|
1699
|
+
# 2
|
1700
|
+
# ],
|
1701
|
+
# [
|
1702
|
+
# [
|
1703
|
+
# "_key",
|
1704
|
+
# "ShortText"
|
1705
|
+
# ],
|
1706
|
+
# [
|
1707
|
+
# "_score",
|
1708
|
+
# "Int32"
|
1709
|
+
# ]
|
1710
|
+
# ],
|
1711
|
+
# [
|
1712
|
+
# "Mroonga",
|
1713
|
+
# 2
|
1714
|
+
# ],
|
1715
|
+
# [
|
1716
|
+
# "Groonga",
|
1717
|
+
# 1
|
1718
|
+
# ]
|
1719
|
+
# ]
|
1720
|
+
# ]
|
1721
|
+
# ]
|
1722
|
+
</pre></div>
|
1723
|
+
</div>
|
1724
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはマッチしたレコードをヒットスコアで降順にソートし、レコードのキーとヒットスコアを出力します。</p>
|
1725
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数も <tt class="docutils literal"><span class="pre">filter</span></tt> 引数も指定しないで <tt class="docutils literal"><span class="pre">_score</span></tt> を使った場合は、 <tt class="docutils literal"><span class="pre">_score</span></tt> を無視して、ログファイルに警告を出力します。</p>
|
1726
|
+
</div>
|
1727
|
+
<div class="section" id="offset">
|
1728
|
+
<h4>8.4.17.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt><a class="headerlink" href="#offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1729
|
+
<p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0基点です。 <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> は2番目以降のレコードを出力するという意味になります。</p>
|
1730
|
+
<p>実行例:</p>
|
1731
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 3 --output_columns _key
|
1732
|
+
# [
|
1733
|
+
# [
|
1734
|
+
# 0,
|
1735
|
+
# 1337566253.89858,
|
1736
|
+
# 0.000355720520019531
|
1737
|
+
# ],
|
1738
|
+
# [
|
1739
|
+
# [
|
1740
|
+
# [
|
1741
|
+
# 5
|
1742
|
+
# ],
|
1743
|
+
# [
|
1744
|
+
# [
|
1745
|
+
# "_key",
|
1746
|
+
# "ShortText"
|
1747
|
+
# ]
|
1748
|
+
# ],
|
1749
|
+
# [
|
1750
|
+
# "Good-bye Senna"
|
1751
|
+
# ],
|
1752
|
+
# [
|
1753
|
+
# "Good-bye Tritonn"
|
1754
|
+
# ]
|
1755
|
+
# ]
|
1756
|
+
# ]
|
1757
|
+
# ]
|
1758
|
+
</pre></div>
|
1759
|
+
</div>
|
1760
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは4番目以降のレコードを出力します。</p>
|
1761
|
+
<p>負の値を指定することもできます。負の値の場合は <tt class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">offset</span></tt> 番目のレコードから始まる範囲という意味になります。もし、マッチしたレコードが3つあり、 <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></tt> を指定した場合は1番目( <tt class="docutils literal"><span class="pre">3</span> <span class="pre">+</span> <span class="pre">-2</span> <span class="pre">=</span> <span class="pre">1</span></tt> ) のレコードから3番目のレコードが出力されます。</p>
|
1762
|
+
<p>実行例:</p>
|
1763
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset -2 --output_columns _key
|
1764
|
+
# [
|
1765
|
+
# [
|
1766
|
+
# 0,
|
1767
|
+
# 1337566253.89858,
|
1768
|
+
# 0.000355720520019531
|
1769
|
+
# ],
|
1770
|
+
# [
|
1771
|
+
# [
|
1772
|
+
# [
|
1773
|
+
# 5
|
1774
|
+
# ],
|
1775
|
+
# [
|
1776
|
+
# [
|
1777
|
+
# "_key",
|
1778
|
+
# "ShortText"
|
1779
|
+
# ]
|
1780
|
+
# ],
|
1781
|
+
# [
|
1782
|
+
# "Good-bye Senna"
|
1783
|
+
# ],
|
1784
|
+
# [
|
1785
|
+
# "Good-bye Tritonn"
|
1786
|
+
# ]
|
1787
|
+
# ]
|
1788
|
+
# ]
|
1789
|
+
# ]
|
1790
|
+
</pre></div>
|
1791
|
+
</div>
|
1792
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは4番目以降のレコードを出力します。なぜなら、全レコード数が <tt class="docutils literal"><span class="pre">5</span></tt> だからです。</p>
|
1793
|
+
<p>デフォルト値は <tt class="docutils literal"><span class="pre">0</span></tt> です。</p>
|
1794
|
+
</div>
|
1795
|
+
<div class="section" id="limit">
|
1796
|
+
<h4>8.4.17.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt><a class="headerlink" href="#limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1797
|
+
<p><tt class="docutils literal"><span class="pre">limit</span></tt> は出力レコード数の最大値を指定します。 もし、マッチしたレコード数が <tt class="docutils literal"><span class="pre">limit</span></tt> よりも小さい場合はすべてのレコードが出力されます。</p>
|
1798
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">limit</span></tt> の使用例です。</p>
|
1799
|
+
<p>実行例:</p>
|
1800
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 2 --limit 3 --output_columns _key
|
1801
|
+
# [
|
1802
|
+
# [
|
1803
|
+
# 0,
|
1804
|
+
# 1337566253.89858,
|
1805
|
+
# 0.000355720520019531
|
1806
|
+
# ],
|
1807
|
+
# [
|
1808
|
+
# [
|
1809
|
+
# [
|
1810
|
+
# 5
|
1811
|
+
# ],
|
1812
|
+
# [
|
1813
|
+
# [
|
1814
|
+
# "_key",
|
1815
|
+
# "ShortText"
|
1816
|
+
# ]
|
1817
|
+
# ],
|
1818
|
+
# [
|
1819
|
+
# "Mroonga"
|
1820
|
+
# ],
|
1821
|
+
# [
|
1822
|
+
# "Good-bye Senna"
|
1823
|
+
# ],
|
1824
|
+
# [
|
1825
|
+
# "Good-bye Tritonn"
|
1826
|
+
# ]
|
1827
|
+
# ]
|
1828
|
+
# ]
|
1829
|
+
# ]
|
1830
|
+
</pre></div>
|
1831
|
+
</div>
|
1832
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは3番目、4番目、5番目のレコードを出力します。</p>
|
1833
|
+
<p>負の値を指定することもできます。負の値の場合は、最大で <tt class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">limit</span> <span class="pre">+</span> <span class="pre">1</span></tt> 件のレコードを出力するという意味になります。 例えば、 <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">-1</span></tt> はすべてのレコードを出力します。これはすべてのレコードを表示する場合にとても便利です。</p>
|
1834
|
+
<p>以下は負の値を使った <tt class="docutils literal"><span class="pre">limit</span></tt> の簡単な使用例です。</p>
|
1835
|
+
<p>実行例:</p>
|
1836
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --limit -1
|
1837
|
+
# [
|
1838
|
+
# [
|
1839
|
+
# 0,
|
1840
|
+
# 1337566253.89858,
|
1841
|
+
# 0.000355720520019531
|
1842
|
+
# ],
|
1843
|
+
# [
|
1844
|
+
# [
|
1845
|
+
# [
|
1846
|
+
# 5
|
1847
|
+
# ],
|
1848
|
+
# [
|
1849
|
+
# [
|
1850
|
+
# "_id",
|
1851
|
+
# "UInt32"
|
1852
|
+
# ],
|
1853
|
+
# [
|
1854
|
+
# "_key",
|
1855
|
+
# "ShortText"
|
1856
|
+
# ],
|
1857
|
+
# [
|
1858
|
+
# "content",
|
1859
|
+
# "Text"
|
1860
|
+
# ],
|
1861
|
+
# [
|
1862
|
+
# "n_likes",
|
1863
|
+
# "UInt32"
|
1864
|
+
# ]
|
1865
|
+
# ],
|
1866
|
+
# [
|
1867
|
+
# 1,
|
1868
|
+
# "The first post!",
|
1869
|
+
# "Welcome! This is my first post!",
|
1870
|
+
# 5
|
1871
|
+
# ],
|
1872
|
+
# [
|
1873
|
+
# 2,
|
1874
|
+
# "Groonga",
|
1875
|
+
# "I started to use groonga. It's very fast!",
|
1876
|
+
# 10
|
1877
|
+
# ],
|
1878
|
+
# [
|
1879
|
+
# 3,
|
1880
|
+
# "Mroonga",
|
1881
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1882
|
+
# 15
|
1883
|
+
# ],
|
1884
|
+
# [
|
1885
|
+
# 4,
|
1886
|
+
# "Good-bye Senna",
|
1887
|
+
# "I migrated all Senna system!",
|
1888
|
+
# 3
|
1889
|
+
# ],
|
1890
|
+
# [
|
1891
|
+
# 5,
|
1892
|
+
# "Good-bye Tritonn",
|
1893
|
+
# "I also migrated all Tritonn system!",
|
1894
|
+
# 3
|
1895
|
+
# ]
|
1896
|
+
# ]
|
1897
|
+
# ]
|
1898
|
+
# ]
|
1899
|
+
</pre></div>
|
1900
|
+
</div>
|
1901
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはすべてのレコードを出力します。</p>
|
1902
|
+
<p>デフォルト値は <tt class="docutils literal"><span class="pre">10</span></tt> です。</p>
|
1903
|
+
</div>
|
1904
|
+
<div class="section" id="scorer">
|
1905
|
+
<h4>8.4.17.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt><a class="headerlink" href="#scorer" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1906
|
+
<p>TODO: write in English and add example.</p>
|
1907
|
+
<p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
|
1908
|
+
<p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
|
1909
|
+
</div>
|
1910
|
+
</div>
|
1911
|
+
<div class="section" id="facet-related-parameters">
|
1912
|
+
<h3>8.4.17.4.5. ファセット関連の引数<a class="headerlink" href="#facet-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1913
|
+
<div class="section" id="drilldown">
|
1914
|
+
<h4>8.4.17.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt><a class="headerlink" href="#drilldown" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1915
|
+
<p>TODO: write in English and add example.</p>
|
1916
|
+
<p>グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。</p>
|
1917
|
+
</div>
|
1918
|
+
<div class="section" id="drilldown-sortby">
|
1919
|
+
<h4>8.4.17.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt><a class="headerlink" href="#drilldown-sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1920
|
+
<p>TODO: write in English and add example.</p>
|
1921
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。</p>
|
1922
|
+
</div>
|
1923
|
+
<div class="section" id="drilldown-output-columns">
|
1924
|
+
<h4>8.4.17.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt><a class="headerlink" href="#drilldown-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1925
|
+
<p>TODO: write in English and add example.</p>
|
1926
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
|
1927
|
+
</div>
|
1928
|
+
<div class="section" id="drilldown-offset">
|
1929
|
+
<h4>8.4.17.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt><a class="headerlink" href="#drilldown-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1930
|
+
<p>TODO: write in English and add example.</p>
|
1931
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。</p>
|
1932
|
+
</div>
|
1933
|
+
<div class="section" id="drilldown-limit">
|
1934
|
+
<h4>8.4.17.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt><a class="headerlink" href="#drilldown-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1935
|
+
<p>TODO: write in English and add example.</p>
|
1936
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。</p>
|
1937
|
+
</div>
|
1938
|
+
</div>
|
1939
|
+
<div class="section" id="cache-related-parameter">
|
1940
|
+
<h3>8.4.17.4.6. キャッシュ関連の引数<a class="headerlink" href="#cache-related-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1941
|
+
<div class="section" id="cache">
|
1942
|
+
<h4>8.4.17.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt><a class="headerlink" href="#cache" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1943
|
+
<p>TODO: write in English and add example.</p>
|
1944
|
+
<p>クエリキャッシュに関する動作を設定します。</p>
|
1945
|
+
<p><tt class="docutils literal"><span class="pre">no</span></tt></p>
|
1946
|
+
<blockquote>
|
1947
|
+
<div>検索結果をクエリキャッシュに残しません。キャッシュして再利用される可能性が低いクエリに対して用います。キャッシュ容量は有限です。有効なキャッシュが多くヒットするために、このパラメータは有効です。</div></blockquote>
|
1948
|
+
</div>
|
1949
|
+
</div>
|
1950
|
+
</div>
|
1951
|
+
<div class="section" id="id3">
|
1952
|
+
<h2>8.4.17.5. 返値<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
1953
|
+
<p>TODO: write in English and add example.</p>
|
1954
|
+
<p>以下のようなjson形式で値が返却されます。</p>
|
1955
|
+
<div class="highlight-none"><div class="highlight"><pre>[[リターンコード, 処理開始時間, 処理時間], [検索結果, ドリルダウン結果]]
|
1956
|
+
</pre></div>
|
1957
|
+
</div>
|
1958
|
+
<p><tt class="docutils literal"><span class="pre">リターンコード</span></tt></p>
|
1959
|
+
<blockquote>
|
1960
|
+
<div>grn_rcに対応する数値が返されます。0(GRN_SUCCESS)以外の場合は、続いてエラー内容を示す
|
1961
|
+
文字列が返されます。</div></blockquote>
|
1962
|
+
<p><tt class="docutils literal"><span class="pre">処理開始時間</span></tt></p>
|
1963
|
+
<blockquote>
|
1964
|
+
<div>処理を開始した時間について、1970年1月1日0時0分0秒を起点とした秒数を小数で返します。</div></blockquote>
|
1965
|
+
<p><tt class="docutils literal"><span class="pre">処理時間</span></tt></p>
|
1966
|
+
<blockquote>
|
1967
|
+
<div>処理にかかった秒数を返します。</div></blockquote>
|
1968
|
+
<p><tt class="docutils literal"><span class="pre">検索結果</span></tt></p>
|
1969
|
+
<blockquote>
|
1970
|
+
<div><p>drilldown条件が実行される前の検索結果が以下のように出力されます。:</p>
|
1971
|
+
<div class="highlight-none"><div class="highlight"><pre>[[検索件数], [[カラム名1,カラム型1],..], 検索結果1,..]
|
1972
|
+
</pre></div>
|
1973
|
+
</div>
|
1974
|
+
<p><tt class="docutils literal"><span class="pre">検索件数</span></tt></p>
|
1975
|
+
<blockquote>
|
1976
|
+
<div>検索件数が出力されます。</div></blockquote>
|
1977
|
+
<p><tt class="docutils literal"><span class="pre">カラム名n</span></tt></p>
|
1978
|
+
<blockquote>
|
1979
|
+
<div>output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
|
1980
|
+
<p><tt class="docutils literal"><span class="pre">カラム型n</span></tt></p>
|
1981
|
+
<blockquote>
|
1982
|
+
<div>output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
|
1983
|
+
<p><tt class="docutils literal"><span class="pre">検索結果n</span></tt></p>
|
1984
|
+
<blockquote>
|
1985
|
+
<div>output_columns, offset, limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
|
1986
|
+
</div></blockquote>
|
1987
|
+
<p><tt class="docutils literal"><span class="pre">drilldown結果</span></tt></p>
|
1988
|
+
<blockquote>
|
1989
|
+
<div><p>drilldown処理の結果が以下のように出力されます。:</p>
|
1990
|
+
<div class="highlight-none"><div class="highlight"><pre>[[[件数], [[カラム名1,カラム型1],..], 検索結果1,..],..]
|
1991
|
+
</pre></div>
|
1992
|
+
</div>
|
1993
|
+
<p><tt class="docutils literal"><span class="pre">件数</span></tt></p>
|
1994
|
+
<blockquote>
|
1995
|
+
<div>drilldownに指定されたカラムの値の異なり数が出力されます。</div></blockquote>
|
1996
|
+
<p><tt class="docutils literal"><span class="pre">カラム名n</span></tt></p>
|
1997
|
+
<blockquote>
|
1998
|
+
<div>drilldown_output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
|
1999
|
+
<p><tt class="docutils literal"><span class="pre">カラム型n</span></tt></p>
|
2000
|
+
<blockquote>
|
2001
|
+
<div>drilldown_output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
|
2002
|
+
<p><tt class="docutils literal"><span class="pre">ドリルダウン結果n</span></tt></p>
|
2003
|
+
<blockquote>
|
2004
|
+
<div>drilldown_output_columns, drilldown_offset, drilldown_limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
|
2005
|
+
</div></blockquote>
|
2006
|
+
</div>
|
2007
|
+
<div class="section" id="see-also">
|
2008
|
+
<h2>8.4.17.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
2009
|
+
<blockquote>
|
2010
|
+
<div><ul class="simple">
|
2011
|
+
<li><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリ構文</em></a></li>
|
2012
|
+
<li><a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a></li>
|
2013
|
+
</ul>
|
2014
|
+
</div></blockquote>
|
2015
|
+
</div>
|
2016
|
+
</div>
|
2017
|
+
|
2018
|
+
|
2019
|
+
</div>
|
2020
|
+
</div>
|
2021
|
+
</div>
|
2022
|
+
<div class="sphinxsidebar">
|
2023
|
+
<div class="sphinxsidebarwrapper">
|
2024
|
+
<h3><a href="../../index.html">目次</a></h3>
|
2025
|
+
<ul>
|
2026
|
+
<li><a class="reference internal" href="#">8.4.17. select</a><ul>
|
2027
|
+
<li><a class="reference internal" href="#summary">8.4.17.1. 概要</a></li>
|
2028
|
+
<li><a class="reference internal" href="#syntax">8.4.17.2. 構文</a></li>
|
2029
|
+
<li><a class="reference internal" href="#usage">8.4.17.3. 使い方</a><ul>
|
2030
|
+
<li><a class="reference internal" href="#simple-usage">8.4.17.3.1. 簡単な使い方</a></li>
|
2031
|
+
<li><a class="reference internal" href="#search-conditions">8.4.17.3.2. 検索条件</a><ul>
|
2032
|
+
<li><a class="reference internal" href="#search-condition-query">8.4.17.3.2.1. 検索条件: <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
|
2033
|
+
<li><a class="reference internal" href="#search-condition-filter">8.4.17.3.2.2. 検索条件: <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
|
2034
|
+
</ul>
|
2035
|
+
</li>
|
2036
|
+
<li><a class="reference internal" href="#paging">8.4.17.3.3. ページング</a></li>
|
2037
|
+
<li><a class="reference internal" href="#the-total-number-of-records">8.4.17.3.4. 全レコード数</a></li>
|
2038
|
+
</ul>
|
2039
|
+
</li>
|
2040
|
+
<li><a class="reference internal" href="#parameters">8.4.17.4. 引数</a><ul>
|
2041
|
+
<li><a class="reference internal" href="#required-parameter">8.4.17.4.1. 必須引数</a><ul>
|
2042
|
+
<li><a class="reference internal" href="#table">8.4.17.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt></a></li>
|
2043
|
+
</ul>
|
2044
|
+
</li>
|
2045
|
+
<li><a class="reference internal" href="#search-related-parameters">8.4.17.4.2. 検索関係の引数</a><ul>
|
2046
|
+
<li><a class="reference internal" href="#match-columns">8.4.17.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt></a></li>
|
2047
|
+
<li><a class="reference internal" href="#query">8.4.17.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
|
2048
|
+
<li><a class="reference internal" href="#filter">8.4.17.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
|
2049
|
+
</ul>
|
2050
|
+
</li>
|
2051
|
+
<li><a class="reference internal" href="#advanced-search-parameters">8.4.17.4.3. 高度な検索のための引数</a><ul>
|
2052
|
+
<li><a class="reference internal" href="#match-escalation-threshold">8.4.17.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt></a></li>
|
2053
|
+
<li><a class="reference internal" href="#query-expansion">8.4.17.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt></a></li>
|
2054
|
+
<li><a class="reference internal" href="#query-flags">8.4.17.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt></a></li>
|
2055
|
+
</ul>
|
2056
|
+
</li>
|
2057
|
+
<li><a class="reference internal" href="#output-related-parameters">8.4.17.4.4. 出力関連の引数</a><ul>
|
2058
|
+
<li><a class="reference internal" href="#output-columns">8.4.17.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt></a></li>
|
2059
|
+
<li><a class="reference internal" href="#sortby">8.4.17.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt></a></li>
|
2060
|
+
<li><a class="reference internal" href="#offset">8.4.17.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt></a></li>
|
2061
|
+
<li><a class="reference internal" href="#limit">8.4.17.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt></a></li>
|
2062
|
+
<li><a class="reference internal" href="#scorer">8.4.17.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt></a></li>
|
2063
|
+
</ul>
|
2064
|
+
</li>
|
2065
|
+
<li><a class="reference internal" href="#facet-related-parameters">8.4.17.4.5. ファセット関連の引数</a><ul>
|
2066
|
+
<li><a class="reference internal" href="#drilldown">8.4.17.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt></a></li>
|
2067
|
+
<li><a class="reference internal" href="#drilldown-sortby">8.4.17.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt></a></li>
|
2068
|
+
<li><a class="reference internal" href="#drilldown-output-columns">8.4.17.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt></a></li>
|
2069
|
+
<li><a class="reference internal" href="#drilldown-offset">8.4.17.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt></a></li>
|
2070
|
+
<li><a class="reference internal" href="#drilldown-limit">8.4.17.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt></a></li>
|
2071
|
+
</ul>
|
2072
|
+
</li>
|
2073
|
+
<li><a class="reference internal" href="#cache-related-parameter">8.4.17.4.6. キャッシュ関連の引数</a><ul>
|
2074
|
+
<li><a class="reference internal" href="#cache">8.4.17.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt></a></li>
|
2075
|
+
</ul>
|
2076
|
+
</li>
|
2077
|
+
</ul>
|
2078
|
+
</li>
|
2079
|
+
<li><a class="reference internal" href="#id3">8.4.17.5. 返値</a></li>
|
2080
|
+
<li><a class="reference internal" href="#see-also">8.4.17.6. 参考</a></li>
|
2081
|
+
</ul>
|
2082
|
+
</li>
|
2083
|
+
</ul>
|
2084
|
+
|
2085
|
+
<h4>前のトピックへ</h4>
|
2086
|
+
<p class="topless"><a href="quit.html"
|
2087
|
+
title="前の章へ">8.4.16. quit</a></p>
|
2088
|
+
<h4>次のトピックへ</h4>
|
2089
|
+
<p class="topless"><a href="shutdown.html"
|
2090
|
+
title="次の章へ">8.4.18. shutdown</a></p>
|
2091
|
+
<h3>このページ</h3>
|
2092
|
+
<ul class="this-page-menu">
|
2093
|
+
<li><a href="../../_sources/reference/commands/select.txt"
|
2094
|
+
rel="nofollow">ソースコードを表示</a></li>
|
2095
|
+
</ul>
|
2096
|
+
<div id="searchbox" style="display: none">
|
2097
|
+
<h3>クイック検索</h3>
|
2098
|
+
<form class="search" action="../../search.html" method="get">
|
2099
|
+
<input type="text" name="q" />
|
2100
|
+
<input type="submit" value="検索" />
|
2101
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
2102
|
+
<input type="hidden" name="area" value="default" />
|
2103
|
+
</form>
|
2104
|
+
<p class="searchtip" style="font-size: 90%">
|
2105
|
+
モジュール、クラス、または関数名を入力してください
|
2106
|
+
</p>
|
2107
|
+
</div>
|
2108
|
+
<script type="text/javascript">$('#searchbox').show(0);</script>
|
2109
|
+
</div>
|
2110
|
+
</div>
|
2111
|
+
<div class="clearer"></div>
|
2112
|
+
</div>
|
2113
|
+
<div class="related">
|
2114
|
+
<h3>ナビゲーション</h3>
|
2115
|
+
<ul>
|
2116
|
+
<li class="right" style="margin-right: 10px">
|
2117
|
+
<a href="../../genindex.html" title="総合索引"
|
2118
|
+
>索引</a></li>
|
2119
|
+
<li class="right" >
|
2120
|
+
<a href="shutdown.html" title="8.4.18. shutdown"
|
2121
|
+
>次へ</a> |</li>
|
2122
|
+
<li class="right" >
|
2123
|
+
<a href="quit.html" title="8.4.16. quit"
|
2124
|
+
>前へ</a> |</li>
|
2125
|
+
<li><a href="../../index.html">groonga v2.0.7ドキュメント</a> »</li>
|
2126
|
+
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
2127
|
+
<li><a href="../commands.html" >8.4. コマンド</a> »</li>
|
2128
|
+
</ul>
|
2129
|
+
</div>
|
2130
|
+
<div class="footer">
|
2131
|
+
© Copyright 2009-2012, Brazil, Inc.
|
2132
|
+
</div>
|
2133
|
+
</body>
|
2134
|
+
</html>
|