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,2340 @@
|
|
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.5-316-g23cc017 documentation</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.5-316-g23cc017',
|
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
|
+
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
|
30
|
+
<link rel="top" title="groonga v2.0.5-316-g23cc017 documentation" href="../../index.html" />
|
31
|
+
<link rel="up" title="8.4. コマンド" href="../commands.html" />
|
32
|
+
<link rel="next" title="8.4.18. shutdown" href="shutdown.html" />
|
33
|
+
<link rel="prev" title="8.4.16. quit" href="quit.html" />
|
34
|
+
</head>
|
35
|
+
<body>
|
36
|
+
<div class="header">
|
37
|
+
<h1 class="title">
|
38
|
+
<a id="top-link" href="../../index.html">
|
39
|
+
<span class="project">groonga</span>
|
40
|
+
<span class="separator">-</span>
|
41
|
+
<span class="description">An open-source fulltext search engine and column store.</span>
|
42
|
+
</a>
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<div class="other-language-links">
|
46
|
+
<ul>
|
47
|
+
<li><a href="../../../../ja/html/reference/commands/select.html"><img src="../../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
|
48
|
+
</ul>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
<div class="related">
|
54
|
+
<h3>Navigation</h3>
|
55
|
+
<ul>
|
56
|
+
<li class="right" style="margin-right: 10px">
|
57
|
+
<a href="../../genindex.html" title="General Index"
|
58
|
+
accesskey="I">index</a></li>
|
59
|
+
<li class="right" >
|
60
|
+
<a href="shutdown.html" title="8.4.18. shutdown"
|
61
|
+
accesskey="N">next</a> |</li>
|
62
|
+
<li class="right" >
|
63
|
+
<a href="quit.html" title="8.4.16. quit"
|
64
|
+
accesskey="P">previous</a> |</li>
|
65
|
+
<li><a href="../../index.html">groonga v2.0.5-316-g23cc017 documentation</a> »</li>
|
66
|
+
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
67
|
+
<li><a href="../commands.html" accesskey="U">8.4. コマンド</a> »</li>
|
68
|
+
</ul>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div class="document">
|
72
|
+
<div class="documentwrapper">
|
73
|
+
<div class="bodywrapper">
|
74
|
+
<div class="body">
|
75
|
+
|
76
|
+
<div class="section" id="select">
|
77
|
+
<h1>8.4.17. select<a class="headerlink" href="#select" title="Permalink to this headline">¶</a></h1>
|
78
|
+
<div class="section" id="summary">
|
79
|
+
<h2>8.4.17.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
|
80
|
+
<p><tt class="docutils literal"><span class="pre">select</span></tt> searches records that are matched to specified conditions
|
81
|
+
from a table and then outputs them.</p>
|
82
|
+
<p><tt class="docutils literal"><span class="pre">select</span></tt> is the most important command in groonga. You need to
|
83
|
+
understand <tt class="docutils literal"><span class="pre">select</span></tt> to use the full power of groonga.</p>
|
84
|
+
</div>
|
85
|
+
<div class="section" id="syntax">
|
86
|
+
<h2>8.4.17.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
|
87
|
+
<p><tt class="docutils literal"><span class="pre">select</span></tt> has many parameters. The required parameter is only
|
88
|
+
<tt class="docutils literal"><span class="pre">table</span></tt> and others are optional:</p>
|
89
|
+
<div class="highlight-none"><div class="highlight"><pre>select table
|
90
|
+
[match_columns=null]
|
91
|
+
[query=null]
|
92
|
+
[filter=null]
|
93
|
+
[scorer=null]
|
94
|
+
[sortby=null]
|
95
|
+
[output_columns="_id, _key, *"]
|
96
|
+
[offset=0]
|
97
|
+
[limit=10]
|
98
|
+
[drilldown=null]
|
99
|
+
[drilldown_sortby=null]
|
100
|
+
[drilldown_output_columns=null]
|
101
|
+
[drilldown_offset=0]
|
102
|
+
[drilldown_limit=10]
|
103
|
+
[cache=yes]
|
104
|
+
[match_escalation_threshold=0]
|
105
|
+
[query_expansion=null]
|
106
|
+
[query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
|
107
|
+
</pre></div>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="section" id="usage">
|
111
|
+
<h2>8.4.17.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
|
112
|
+
<p>Let's learn about <tt class="docutils literal"><span class="pre">select</span></tt> usage with examples. This section shows
|
113
|
+
many popular usages.</p>
|
114
|
+
<p>Here are a schema definition and sample data to show usage.</p>
|
115
|
+
<p>Execution example:</p>
|
116
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Entries TABLE_HASH_KEY ShortText
|
117
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
118
|
+
column_create Entries content COLUMN_SCALAR Text
|
119
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
120
|
+
column_create Entries n_likes COLUMN_SCALAR UInt32
|
121
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
122
|
+
table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
|
123
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
124
|
+
column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
125
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
126
|
+
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
|
127
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
128
|
+
load --table Entries
|
129
|
+
[
|
130
|
+
{"_key": "The first post!",
|
131
|
+
"content": "Welcome! This is my first post!",
|
132
|
+
"n_likes": 5},
|
133
|
+
{"_key": "Groonga",
|
134
|
+
"content": "I started to use groonga. It's very fast!",
|
135
|
+
"n_likes": 10},
|
136
|
+
{"_key": "Mroonga",
|
137
|
+
"content": "I also started to use mroonga. It's also very fast! Really fast!",
|
138
|
+
"n_likes": 15},
|
139
|
+
{"_key": "Good-bye Senna",
|
140
|
+
"content": "I migrated all Senna system!",
|
141
|
+
"n_likes": 3},
|
142
|
+
{"_key": "Good-bye Tritonn",
|
143
|
+
"content": "I also migrated all Tritonn system!",
|
144
|
+
"n_likes": 3}
|
145
|
+
]
|
146
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
147
|
+
</pre></div>
|
148
|
+
</div>
|
149
|
+
<p>There is a table, <tt class="docutils literal"><span class="pre">Entries</span></tt>, for blog entries. An entry has title,
|
150
|
+
content and the number of likes for the entry. Title is key of
|
151
|
+
<tt class="docutils literal"><span class="pre">Entries</span></tt>. Content is value of <tt class="docutils literal"><span class="pre">Entries.content</span></tt> column. The
|
152
|
+
number of likes is value of <tt class="docutils literal"><span class="pre">Entries.n_likes</span></tt> column.</p>
|
153
|
+
<p><tt class="docutils literal"><span class="pre">Entries._key</span></tt> column and <tt class="docutils literal"><span class="pre">Entries.content</span></tt> column are indexed
|
154
|
+
using <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> tokenizer. So both <tt class="docutils literal"><span class="pre">Entries._key</span></tt> and
|
155
|
+
<tt class="docutils literal"><span class="pre">Entries.content</span></tt> are fulltext search ready.</p>
|
156
|
+
<p>OK. The schema and data for examples are ready.</p>
|
157
|
+
<div class="section" id="simple-usage">
|
158
|
+
<h3>8.4.17.3.1. Simple usage<a class="headerlink" href="#simple-usage" title="Permalink to this headline">¶</a></h3>
|
159
|
+
<p>Here is the most simple usage with the above schema and data. It outputs
|
160
|
+
all records in <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
161
|
+
<p>Execution example:</p>
|
162
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries
|
163
|
+
# [
|
164
|
+
# [
|
165
|
+
# 0,
|
166
|
+
# 1337566253.89858,
|
167
|
+
# 0.000355720520019531
|
168
|
+
# ],
|
169
|
+
# [
|
170
|
+
# [
|
171
|
+
# [
|
172
|
+
# 5
|
173
|
+
# ],
|
174
|
+
# [
|
175
|
+
# [
|
176
|
+
# "_id",
|
177
|
+
# "UInt32"
|
178
|
+
# ],
|
179
|
+
# [
|
180
|
+
# "_key",
|
181
|
+
# "ShortText"
|
182
|
+
# ],
|
183
|
+
# [
|
184
|
+
# "content",
|
185
|
+
# "Text"
|
186
|
+
# ],
|
187
|
+
# [
|
188
|
+
# "n_likes",
|
189
|
+
# "UInt32"
|
190
|
+
# ]
|
191
|
+
# ],
|
192
|
+
# [
|
193
|
+
# 1,
|
194
|
+
# "The first post!",
|
195
|
+
# "Welcome! This is my first post!",
|
196
|
+
# 5
|
197
|
+
# ],
|
198
|
+
# [
|
199
|
+
# 2,
|
200
|
+
# "Groonga",
|
201
|
+
# "I started to use groonga. It's very fast!",
|
202
|
+
# 10
|
203
|
+
# ],
|
204
|
+
# [
|
205
|
+
# 3,
|
206
|
+
# "Mroonga",
|
207
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
208
|
+
# 15
|
209
|
+
# ],
|
210
|
+
# [
|
211
|
+
# 4,
|
212
|
+
# "Good-bye Senna",
|
213
|
+
# "I migrated all Senna system!",
|
214
|
+
# 3
|
215
|
+
# ],
|
216
|
+
# [
|
217
|
+
# 5,
|
218
|
+
# "Good-bye Tritonn",
|
219
|
+
# "I also migrated all Tritonn system!",
|
220
|
+
# 3
|
221
|
+
# ]
|
222
|
+
# ]
|
223
|
+
# ]
|
224
|
+
# ]
|
225
|
+
</pre></div>
|
226
|
+
</div>
|
227
|
+
<p>Why does the command output all records? There are two reasons. The
|
228
|
+
first reason is that the command doesn't specify any search
|
229
|
+
conditions. No search condition means all records are matched. The
|
230
|
+
second reason is that the number of all records is 5. <tt class="docutils literal"><span class="pre">select</span></tt>
|
231
|
+
command outputs 10 records at a maximum by default. There are only 5
|
232
|
+
records. It is less than 10. So the command outputs all records.</p>
|
233
|
+
</div>
|
234
|
+
<div class="section" id="search-conditions">
|
235
|
+
<h3>8.4.17.3.2. Search conditions<a class="headerlink" href="#search-conditions" title="Permalink to this headline">¶</a></h3>
|
236
|
+
<p>Search conditions are specified by <tt class="docutils literal"><span class="pre">query</span></tt> or <tt class="docutils literal"><span class="pre">filter</span></tt>. You can
|
237
|
+
also specify both <tt class="docutils literal"><span class="pre">query</span></tt> and <tt class="docutils literal"><span class="pre">filter</span></tt>. It means that selected
|
238
|
+
records must be matched against both <tt class="docutils literal"><span class="pre">query</span></tt> and <tt class="docutils literal"><span class="pre">filter</span></tt>.</p>
|
239
|
+
<div class="section" id="search-condition-query">
|
240
|
+
<h4>8.4.17.3.2.1. Search condition: <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#search-condition-query" title="Permalink to this headline">¶</a></h4>
|
241
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> is designed for search box in Web page. Imagine a search box
|
242
|
+
in google.com. You specify search conditions for <tt class="docutils literal"><span class="pre">query</span></tt> as space
|
243
|
+
separated keywords. For example, <tt class="docutils literal"><span class="pre">search</span> <span class="pre">engine</span></tt> means a matched
|
244
|
+
record should contain two words, <tt class="docutils literal"><span class="pre">search</span></tt> and <tt class="docutils literal"><span class="pre">engine</span></tt>.</p>
|
245
|
+
<p>Normally, <tt class="docutils literal"><span class="pre">query</span></tt> parameter is used for specifying fulltext search
|
246
|
+
conditions. It can be used for non fulltext search conditions but
|
247
|
+
<tt class="docutils literal"><span class="pre">filter</span></tt> is used for the propose.</p>
|
248
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> parameter is used with <tt class="docutils literal"><span class="pre">match_columns</span></tt> parameter when
|
249
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> parameter is used for specifying fulltext search
|
250
|
+
conditions. <tt class="docutils literal"><span class="pre">match_columns</span></tt> specifies which columnes and indexes are
|
251
|
+
matched against <tt class="docutils literal"><span class="pre">query</span></tt>.</p>
|
252
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">query</span></tt> usage example.</p>
|
253
|
+
<p>Execution example:</p>
|
254
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast
|
255
|
+
# [
|
256
|
+
# [
|
257
|
+
# 0,
|
258
|
+
# 1337566253.89858,
|
259
|
+
# 0.000355720520019531
|
260
|
+
# ],
|
261
|
+
# [
|
262
|
+
# [
|
263
|
+
# [
|
264
|
+
# 2
|
265
|
+
# ],
|
266
|
+
# [
|
267
|
+
# [
|
268
|
+
# "_id",
|
269
|
+
# "UInt32"
|
270
|
+
# ],
|
271
|
+
# [
|
272
|
+
# "_key",
|
273
|
+
# "ShortText"
|
274
|
+
# ],
|
275
|
+
# [
|
276
|
+
# "content",
|
277
|
+
# "Text"
|
278
|
+
# ],
|
279
|
+
# [
|
280
|
+
# "n_likes",
|
281
|
+
# "UInt32"
|
282
|
+
# ]
|
283
|
+
# ],
|
284
|
+
# [
|
285
|
+
# 2,
|
286
|
+
# "Groonga",
|
287
|
+
# "I started to use groonga. It's very fast!",
|
288
|
+
# 10
|
289
|
+
# ],
|
290
|
+
# [
|
291
|
+
# 3,
|
292
|
+
# "Mroonga",
|
293
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
294
|
+
# 15
|
295
|
+
# ]
|
296
|
+
# ]
|
297
|
+
# ]
|
298
|
+
# ]
|
299
|
+
</pre></div>
|
300
|
+
</div>
|
301
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain a word <tt class="docutils literal"><span class="pre">fast</span></tt>
|
302
|
+
in <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
303
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> has query syntax but its deatils aren't described here. See
|
304
|
+
<a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for datails.</p>
|
305
|
+
</div>
|
306
|
+
<div class="section" id="search-condition-filter">
|
307
|
+
<h4>8.4.17.3.2.2. Search condition: <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#search-condition-filter" title="Permalink to this headline">¶</a></h4>
|
308
|
+
<p><tt class="docutils literal"><span class="pre">filter</span></tt> is designed for complex search conditions. You specify
|
309
|
+
search conditions for <tt class="docutils literal"><span class="pre">filter</span></tt> as ECMAScript like syntax.</p>
|
310
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">filter</span></tt> usage example.</p>
|
311
|
+
<p>Execution example:</p>
|
312
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && _key == "Groonga"'
|
313
|
+
# [
|
314
|
+
# [
|
315
|
+
# 0,
|
316
|
+
# 1337566253.89858,
|
317
|
+
# 0.000355720520019531
|
318
|
+
# ],
|
319
|
+
# [
|
320
|
+
# [
|
321
|
+
# [
|
322
|
+
# 1
|
323
|
+
# ],
|
324
|
+
# [
|
325
|
+
# [
|
326
|
+
# "_id",
|
327
|
+
# "UInt32"
|
328
|
+
# ],
|
329
|
+
# [
|
330
|
+
# "_key",
|
331
|
+
# "ShortText"
|
332
|
+
# ],
|
333
|
+
# [
|
334
|
+
# "content",
|
335
|
+
# "Text"
|
336
|
+
# ],
|
337
|
+
# [
|
338
|
+
# "n_likes",
|
339
|
+
# "UInt32"
|
340
|
+
# ]
|
341
|
+
# ],
|
342
|
+
# [
|
343
|
+
# 2,
|
344
|
+
# "Groonga",
|
345
|
+
# "I started to use groonga. It's very fast!",
|
346
|
+
# 10
|
347
|
+
# ]
|
348
|
+
# ]
|
349
|
+
# ]
|
350
|
+
# ]
|
351
|
+
</pre></div>
|
352
|
+
</div>
|
353
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain a word <tt class="docutils literal"><span class="pre">fast</span></tt>
|
354
|
+
in <tt class="docutils literal"><span class="pre">content</span></tt> column value and has <tt class="docutils literal"><span class="pre">Groonga</span></tt> as <tt class="docutils literal"><span class="pre">_key</span></tt> from
|
355
|
+
<tt class="docutils literal"><span class="pre">Entries</span></tt> table. There are three operators in the command, <tt class="docutils literal"><span class="pre">@</span></tt>,
|
356
|
+
<tt class="docutils literal"><span class="pre">&&</span></tt> and <tt class="docutils literal"><span class="pre">==</span></tt>. <tt class="docutils literal"><span class="pre">@</span></tt> is fulltext search operator. <tt class="docutils literal"><span class="pre">&&</span></tt> and
|
357
|
+
<tt class="docutils literal"><span class="pre">==</span></tt> are the same as ECMAScript. <tt class="docutils literal"><span class="pre">&&</span></tt> is logical AND operator and
|
358
|
+
<tt class="docutils literal"><span class="pre">==</span></tt> is equality operator.</p>
|
359
|
+
<p><tt class="docutils literal"><span class="pre">filter</span></tt> has more operators and syntax like grouping by <tt class="docutils literal"><span class="pre">(...)</span></tt>
|
360
|
+
its deatils aren't described here. See <a class="reference internal" href="../grn_expr/script_syntax.html"><em>Script syntax</em></a> for
|
361
|
+
datails.</p>
|
362
|
+
</div>
|
363
|
+
</div>
|
364
|
+
<div class="section" id="paging">
|
365
|
+
<h3>8.4.17.3.3. Paging<a class="headerlink" href="#paging" title="Permalink to this headline">¶</a></h3>
|
366
|
+
<p>You can specify range of outputted records by <tt class="docutils literal"><span class="pre">offset</span></tt> and <tt class="docutils literal"><span class="pre">limit</span></tt>.
|
367
|
+
Here is an example to output only the 2nd record.</p>
|
368
|
+
<p>Execution example:</p>
|
369
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --offset 1 --limit 1
|
370
|
+
# [
|
371
|
+
# [
|
372
|
+
# 0,
|
373
|
+
# 1337566253.89858,
|
374
|
+
# 0.000355720520019531
|
375
|
+
# ],
|
376
|
+
# [
|
377
|
+
# [
|
378
|
+
# [
|
379
|
+
# 5
|
380
|
+
# ],
|
381
|
+
# [
|
382
|
+
# [
|
383
|
+
# "_id",
|
384
|
+
# "UInt32"
|
385
|
+
# ],
|
386
|
+
# [
|
387
|
+
# "_key",
|
388
|
+
# "ShortText"
|
389
|
+
# ],
|
390
|
+
# [
|
391
|
+
# "content",
|
392
|
+
# "Text"
|
393
|
+
# ],
|
394
|
+
# [
|
395
|
+
# "n_likes",
|
396
|
+
# "UInt32"
|
397
|
+
# ]
|
398
|
+
# ],
|
399
|
+
# [
|
400
|
+
# 2,
|
401
|
+
# "Groonga",
|
402
|
+
# "I started to use groonga. It's very fast!",
|
403
|
+
# 10
|
404
|
+
# ]
|
405
|
+
# ]
|
406
|
+
# ]
|
407
|
+
# ]
|
408
|
+
</pre></div>
|
409
|
+
</div>
|
410
|
+
<p><tt class="docutils literal"><span class="pre">offset</span></tt> is zero-origin. <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> means output range is
|
411
|
+
started from the 2nd record.</p>
|
412
|
+
<p><tt class="docutils literal"><span class="pre">limit</span></tt> specifies the max number of output records. <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">1</span></tt>
|
413
|
+
means the number of output records is 1 at a maximium. If no records
|
414
|
+
are matched, <tt class="docutils literal"><span class="pre">select</span></tt> command outputs no records.</p>
|
415
|
+
</div>
|
416
|
+
<div class="section" id="the-total-number-of-records">
|
417
|
+
<h3>8.4.17.3.4. The total number of records<a class="headerlink" href="#the-total-number-of-records" title="Permalink to this headline">¶</a></h3>
|
418
|
+
<p>You can use <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> to retrieve the total number of recrods
|
419
|
+
without any contents of records.</p>
|
420
|
+
<p>Execution example:</p>
|
421
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --limit 0
|
422
|
+
# [
|
423
|
+
# [
|
424
|
+
# 0,
|
425
|
+
# 1337566253.89858,
|
426
|
+
# 0.000355720520019531
|
427
|
+
# ],
|
428
|
+
# [
|
429
|
+
# [
|
430
|
+
# [
|
431
|
+
# 5
|
432
|
+
# ],
|
433
|
+
# [
|
434
|
+
# [
|
435
|
+
# "_id",
|
436
|
+
# "UInt32"
|
437
|
+
# ],
|
438
|
+
# [
|
439
|
+
# "_key",
|
440
|
+
# "ShortText"
|
441
|
+
# ],
|
442
|
+
# [
|
443
|
+
# "content",
|
444
|
+
# "Text"
|
445
|
+
# ],
|
446
|
+
# [
|
447
|
+
# "n_likes",
|
448
|
+
# "UInt32"
|
449
|
+
# ]
|
450
|
+
# ]
|
451
|
+
# ]
|
452
|
+
# ]
|
453
|
+
# ]
|
454
|
+
</pre></div>
|
455
|
+
</div>
|
456
|
+
<p><tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> is also useful for retrieving only the number of matched
|
457
|
+
records.</p>
|
458
|
+
</div>
|
459
|
+
</div>
|
460
|
+
<div class="section" id="parameters">
|
461
|
+
<h2>8.4.17.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
|
462
|
+
<p>This section describes all parameters. Parameters are categorized.</p>
|
463
|
+
<div class="section" id="required-parameter">
|
464
|
+
<h3>8.4.17.4.1. Required parameter<a class="headerlink" href="#required-parameter" title="Permalink to this headline">¶</a></h3>
|
465
|
+
<p>There is a required parameter, <tt class="docutils literal"><span class="pre">table</span></tt>.</p>
|
466
|
+
<div class="section" id="table">
|
467
|
+
<h4>8.4.17.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt><a class="headerlink" href="#table" title="Permalink to this headline">¶</a></h4>
|
468
|
+
<p>It specifies a table to be searched. <tt class="docutils literal"><span class="pre">table</span></tt> must be specified.</p>
|
469
|
+
<p>If nonexistent table is specified, an error is returned.</p>
|
470
|
+
<p>Execution example:</p>
|
471
|
+
<div class="highlight-none"><div class="highlight"><pre>select Nonexistent
|
472
|
+
# [
|
473
|
+
# [
|
474
|
+
# -22,
|
475
|
+
# 1337566253.89858,
|
476
|
+
# 0.000355720520019531,
|
477
|
+
# "invalid table name: <Nonexistent>",
|
478
|
+
# [
|
479
|
+
# [
|
480
|
+
# "grn_select",
|
481
|
+
# "proc.c",
|
482
|
+
# 542
|
483
|
+
# ]
|
484
|
+
# ]
|
485
|
+
# ]
|
486
|
+
# ]
|
487
|
+
</pre></div>
|
488
|
+
</div>
|
489
|
+
</div>
|
490
|
+
</div>
|
491
|
+
<div class="section" id="search-related-parameters">
|
492
|
+
<h3>8.4.17.4.2. Search related parameters<a class="headerlink" href="#search-related-parameters" title="Permalink to this headline">¶</a></h3>
|
493
|
+
<p>There are search related parameters. Typically, <tt class="docutils literal"><span class="pre">match_columns</span></tt> and
|
494
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> parameters are used for implementing a search
|
495
|
+
box. <tt class="docutils literal"><span class="pre">filter</span></tt> parameters is used for implementing complex search
|
496
|
+
feature.</p>
|
497
|
+
<p>If both <tt class="docutils literal"><span class="pre">query</span></tt> and <tt class="docutils literal"><span class="pre">filter</span></tt> are specified, selected records must
|
498
|
+
be matched against both <tt class="docutils literal"><span class="pre">query</span></tt> and <tt class="docutils literal"><span class="pre">filter</span></tt>. If both <tt class="docutils literal"><span class="pre">query</span></tt>
|
499
|
+
and <tt class="docutils literal"><span class="pre">filter</span></tt> aren't specified, all records are selected.</p>
|
500
|
+
<div class="section" id="match-columns">
|
501
|
+
<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="Permalink to this headline">¶</a></h4>
|
502
|
+
<p>It specifies the default target column for fulltext search by
|
503
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> parameter value. A target column for fulltext search can be
|
504
|
+
specified in <tt class="docutils literal"><span class="pre">query</span></tt> parameter. The difference between
|
505
|
+
<tt class="docutils literal"><span class="pre">match_columns</span></tt> and <tt class="docutils literal"><span class="pre">query</span></tt> is whether weight is supported or
|
506
|
+
not. <tt class="docutils literal"><span class="pre">match_columns</span></tt> supports weight but <tt class="docutils literal"><span class="pre">query</span></tt> doesn't.</p>
|
507
|
+
<p>Weight is relative importance of target column. A higher weight target
|
508
|
+
column gets more hit score rather than a lower weight target column
|
509
|
+
when a record is matched by fulltext search. The default weight is 1.</p>
|
510
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">match_columns</span></tt> usage example.</p>
|
511
|
+
<p>Execution example:</p>
|
512
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --output_columns '_key, _score'
|
513
|
+
# [
|
514
|
+
# [
|
515
|
+
# 0,
|
516
|
+
# 1337566253.89858,
|
517
|
+
# 0.000355720520019531
|
518
|
+
# ],
|
519
|
+
# [
|
520
|
+
# [
|
521
|
+
# [
|
522
|
+
# 2
|
523
|
+
# ],
|
524
|
+
# [
|
525
|
+
# [
|
526
|
+
# "_key",
|
527
|
+
# "ShortText"
|
528
|
+
# ],
|
529
|
+
# [
|
530
|
+
# "_score",
|
531
|
+
# "Int32"
|
532
|
+
# ]
|
533
|
+
# ],
|
534
|
+
# [
|
535
|
+
# "Groonga",
|
536
|
+
# 1
|
537
|
+
# ],
|
538
|
+
# [
|
539
|
+
# "Mroonga",
|
540
|
+
# 2
|
541
|
+
# ]
|
542
|
+
# ]
|
543
|
+
# ]
|
544
|
+
# ]
|
545
|
+
</pre></div>
|
546
|
+
</div>
|
547
|
+
<p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">content</span></tt> means the default target column for
|
548
|
+
fulltext search is <tt class="docutils literal"><span class="pre">content</span></tt> column and its weight
|
549
|
+
is 1. <tt class="docutils literal"><span class="pre">--output_columns</span> <span class="pre">'_key,</span> <span class="pre">_score'</span></tt> means that the <tt class="docutils literal"><span class="pre">select</span></tt>
|
550
|
+
command outputs <tt class="docutils literal"><span class="pre">_key</span></tt> value and <tt class="docutils literal"><span class="pre">_score</span></tt> value for matched
|
551
|
+
records.</p>
|
552
|
+
<p>Pay attention to <tt class="docutils literal"><span class="pre">_score</span></tt> value. <tt class="docutils literal"><span class="pre">_score</span></tt> value is the number of
|
553
|
+
matched counts against <tt class="docutils literal"><span class="pre">query</span></tt> parameter value. In the example,
|
554
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> parameter value is <tt class="docutils literal"><span class="pre">fast</span></tt>. The fact that <tt class="docutils literal"><span class="pre">_score</span></tt> value
|
555
|
+
is 1 means that <tt class="docutils literal"><span class="pre">fast</span></tt> appers in <tt class="docutils literal"><span class="pre">content</span></tt> column only once. The
|
556
|
+
fact that <tt class="docutils literal"><span class="pre">_score</span></tt> value is 2 means that <tt class="docutils literal"><span class="pre">fast</span></tt> appears in
|
557
|
+
<tt class="docutils literal"><span class="pre">content</span></tt> column twice.</p>
|
558
|
+
<p>To specify weight, <tt class="docutils literal"><span class="pre">column</span> <span class="pre">*</span> <span class="pre">weight</span></tt> syntax is used. Here is a
|
559
|
+
weight usage example.</p>
|
560
|
+
<p>Execution example:</p>
|
561
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns 'content * 2' --query fast --output_columns '_key, _score'
|
562
|
+
# [
|
563
|
+
# [
|
564
|
+
# 0,
|
565
|
+
# 1337566253.89858,
|
566
|
+
# 0.000355720520019531
|
567
|
+
# ],
|
568
|
+
# [
|
569
|
+
# [
|
570
|
+
# [
|
571
|
+
# 2
|
572
|
+
# ],
|
573
|
+
# [
|
574
|
+
# [
|
575
|
+
# "_key",
|
576
|
+
# "ShortText"
|
577
|
+
# ],
|
578
|
+
# [
|
579
|
+
# "_score",
|
580
|
+
# "Int32"
|
581
|
+
# ]
|
582
|
+
# ],
|
583
|
+
# [
|
584
|
+
# "Groonga",
|
585
|
+
# 2
|
586
|
+
# ],
|
587
|
+
# [
|
588
|
+
# "Mroonga",
|
589
|
+
# 4
|
590
|
+
# ]
|
591
|
+
# ]
|
592
|
+
# ]
|
593
|
+
# ]
|
594
|
+
</pre></div>
|
595
|
+
</div>
|
596
|
+
<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> means the default target column for
|
597
|
+
fulltext search is <tt class="docutils literal"><span class="pre">content</span></tt> column and its weight is 2.</p>
|
598
|
+
<p>Pay attention to <tt class="docutils literal"><span class="pre">_score</span></tt> value. <tt class="docutils literal"><span class="pre">_score</span></tt> value is doubled because
|
599
|
+
weight is 2.</p>
|
600
|
+
<p>You can specify one or more columns as the default target columns for
|
601
|
+
fulltext search. If one or more columns are specified, fulltext search
|
602
|
+
is done for all columns and scores are accumulated. If one of the
|
603
|
+
columns is matched against <tt class="docutils literal"><span class="pre">query</span></tt> parameter value, the record is
|
604
|
+
treated as matched.</p>
|
605
|
+
<p>To specify one or more columns, <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>
|
606
|
+
<span class="pre">weight2</span> <span class="pre">||</span> <span class="pre">...</span></tt> syntax is used. <tt class="docutils literal"><span class="pre">*</span> <span class="pre">weight</span></tt> can be omitted. If it is
|
607
|
+
omitted, 1 is used for weight. Here is a one or more columns usage
|
608
|
+
example.</p>
|
609
|
+
<p>Execution example:</p>
|
610
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns '_key * 10 || content' --query groonga --output_columns '_key, _score'
|
611
|
+
# [
|
612
|
+
# [
|
613
|
+
# 0,
|
614
|
+
# 1337566253.89858,
|
615
|
+
# 0.000355720520019531
|
616
|
+
# ],
|
617
|
+
# [
|
618
|
+
# [
|
619
|
+
# [
|
620
|
+
# 1
|
621
|
+
# ],
|
622
|
+
# [
|
623
|
+
# [
|
624
|
+
# "_key",
|
625
|
+
# "ShortText"
|
626
|
+
# ],
|
627
|
+
# [
|
628
|
+
# "_score",
|
629
|
+
# "Int32"
|
630
|
+
# ]
|
631
|
+
# ],
|
632
|
+
# [
|
633
|
+
# "Groonga",
|
634
|
+
# 11
|
635
|
+
# ]
|
636
|
+
# ]
|
637
|
+
# ]
|
638
|
+
# ]
|
639
|
+
</pre></div>
|
640
|
+
</div>
|
641
|
+
<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> means the default target
|
642
|
+
columns for fulltext search are <tt class="docutils literal"><span class="pre">_key</span></tt> and <tt class="docutils literal"><span class="pre">content</span></tt> columns and
|
643
|
+
<tt class="docutils literal"><span class="pre">_key</span></tt> column's weight is 10 and <tt class="docutils literal"><span class="pre">content</span></tt> column's weight
|
644
|
+
is 1. This weight allocation means <tt class="docutils literal"><span class="pre">_key</span></tt> column value is more
|
645
|
+
important rather than <tt class="docutils literal"><span class="pre">content</span></tt> column value. In this example, title
|
646
|
+
of blog entry is more important rather thatn content of blog entry.</p>
|
647
|
+
</div>
|
648
|
+
<div class="section" id="query">
|
649
|
+
<h4>8.4.17.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#query" title="Permalink to this headline">¶</a></h4>
|
650
|
+
<p>It specifies the query text. Normally, it is used for fulltext search
|
651
|
+
with <tt class="docutils literal"><span class="pre">match_columns</span></tt> parameter. <tt class="docutils literal"><span class="pre">query</span></tt> parameter is designed for
|
652
|
+
a fulltext search form in a Web page. A query text should be formatted
|
653
|
+
in <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a>. The syntax is similar to common search
|
654
|
+
form like Google's search form. For example, <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span></tt> means
|
655
|
+
that groonga searches records that contain both <tt class="docutils literal"><span class="pre">word1</span></tt> and
|
656
|
+
<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> means that groogna searches records that
|
657
|
+
contain either <tt class="docutils literal"><span class="pre">word1</span></tt> or <tt class="docutils literal"><span class="pre">word2</span></tt>.</p>
|
658
|
+
<p>Here is a simple logical and search example.</p>
|
659
|
+
<p>Execution example:</p>
|
660
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "fast groonga"
|
661
|
+
# [
|
662
|
+
# [
|
663
|
+
# 0,
|
664
|
+
# 1337566253.89858,
|
665
|
+
# 0.000355720520019531
|
666
|
+
# ],
|
667
|
+
# [
|
668
|
+
# [
|
669
|
+
# [
|
670
|
+
# 1
|
671
|
+
# ],
|
672
|
+
# [
|
673
|
+
# [
|
674
|
+
# "_id",
|
675
|
+
# "UInt32"
|
676
|
+
# ],
|
677
|
+
# [
|
678
|
+
# "_key",
|
679
|
+
# "ShortText"
|
680
|
+
# ],
|
681
|
+
# [
|
682
|
+
# "content",
|
683
|
+
# "Text"
|
684
|
+
# ],
|
685
|
+
# [
|
686
|
+
# "n_likes",
|
687
|
+
# "UInt32"
|
688
|
+
# ]
|
689
|
+
# ],
|
690
|
+
# [
|
691
|
+
# 2,
|
692
|
+
# "Groonga",
|
693
|
+
# "I started to use groonga. It's very fast!",
|
694
|
+
# 10
|
695
|
+
# ]
|
696
|
+
# ]
|
697
|
+
# ]
|
698
|
+
# ]
|
699
|
+
</pre></div>
|
700
|
+
</div>
|
701
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain two words
|
702
|
+
<tt class="docutils literal"><span class="pre">fast</span></tt> and <tt class="docutils literal"><span class="pre">groonga</span></tt> in <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt>
|
703
|
+
table.</p>
|
704
|
+
<p>Here is a simple logical or search example.</p>
|
705
|
+
<p>Execution example:</p>
|
706
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "groonga OR mroonga"
|
707
|
+
# [
|
708
|
+
# [
|
709
|
+
# 0,
|
710
|
+
# 1337566253.89858,
|
711
|
+
# 0.000355720520019531
|
712
|
+
# ],
|
713
|
+
# [
|
714
|
+
# [
|
715
|
+
# [
|
716
|
+
# 2
|
717
|
+
# ],
|
718
|
+
# [
|
719
|
+
# [
|
720
|
+
# "_id",
|
721
|
+
# "UInt32"
|
722
|
+
# ],
|
723
|
+
# [
|
724
|
+
# "_key",
|
725
|
+
# "ShortText"
|
726
|
+
# ],
|
727
|
+
# [
|
728
|
+
# "content",
|
729
|
+
# "Text"
|
730
|
+
# ],
|
731
|
+
# [
|
732
|
+
# "n_likes",
|
733
|
+
# "UInt32"
|
734
|
+
# ]
|
735
|
+
# ],
|
736
|
+
# [
|
737
|
+
# 2,
|
738
|
+
# "Groonga",
|
739
|
+
# "I started to use groonga. It's very fast!",
|
740
|
+
# 10
|
741
|
+
# ],
|
742
|
+
# [
|
743
|
+
# 3,
|
744
|
+
# "Mroonga",
|
745
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
746
|
+
# 15
|
747
|
+
# ]
|
748
|
+
# ]
|
749
|
+
# ]
|
750
|
+
# ]
|
751
|
+
</pre></div>
|
752
|
+
</div>
|
753
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain one of two words
|
754
|
+
<tt class="docutils literal"><span class="pre">groonga</span></tt> or <tt class="docutils literal"><span class="pre">mroonga</span></tt> in <tt class="docutils literal"><span class="pre">content</span></tt> column value from
|
755
|
+
<tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
756
|
+
<p>See <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for other syntax.</p>
|
757
|
+
<p>It can be used for not only fulltext search but also other
|
758
|
+
conditions. For example, <tt class="docutils literal"><span class="pre">column:value</span></tt> means the value of
|
759
|
+
<tt class="docutils literal"><span class="pre">column</span></tt> column is equal to <tt class="docutils literal"><span class="pre">value</span></tt>. <tt class="docutils literal"><span class="pre">column:<value</span></tt> means the
|
760
|
+
value of <tt class="docutils literal"><span class="pre">column</span></tt> column is less than <tt class="docutils literal"><span class="pre">value</span></tt>.</p>
|
761
|
+
<p>Here is a simple equality operator search example.</p>
|
762
|
+
<p>Execution example:</p>
|
763
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query _key:Groonga
|
764
|
+
# [
|
765
|
+
# [
|
766
|
+
# 0,
|
767
|
+
# 1337566253.89858,
|
768
|
+
# 0.000355720520019531
|
769
|
+
# ],
|
770
|
+
# [
|
771
|
+
# [
|
772
|
+
# [
|
773
|
+
# 1
|
774
|
+
# ],
|
775
|
+
# [
|
776
|
+
# [
|
777
|
+
# "_id",
|
778
|
+
# "UInt32"
|
779
|
+
# ],
|
780
|
+
# [
|
781
|
+
# "_key",
|
782
|
+
# "ShortText"
|
783
|
+
# ],
|
784
|
+
# [
|
785
|
+
# "content",
|
786
|
+
# "Text"
|
787
|
+
# ],
|
788
|
+
# [
|
789
|
+
# "n_likes",
|
790
|
+
# "UInt32"
|
791
|
+
# ]
|
792
|
+
# ],
|
793
|
+
# [
|
794
|
+
# 2,
|
795
|
+
# "Groonga",
|
796
|
+
# "I started to use groonga. It's very fast!",
|
797
|
+
# 10
|
798
|
+
# ]
|
799
|
+
# ]
|
800
|
+
# ]
|
801
|
+
# ]
|
802
|
+
</pre></div>
|
803
|
+
</div>
|
804
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that <tt class="docutils literal"><span class="pre">_key</span></tt> column value is
|
805
|
+
<tt class="docutils literal"><span class="pre">Groonga</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
806
|
+
<p>Here is a simple less than operator search example.</p>
|
807
|
+
<p>Execution example:</p>
|
808
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:<11
|
809
|
+
# [
|
810
|
+
# [
|
811
|
+
# 0,
|
812
|
+
# 1337566253.89858,
|
813
|
+
# 0.000355720520019531
|
814
|
+
# ],
|
815
|
+
# [
|
816
|
+
# [
|
817
|
+
# [
|
818
|
+
# 4
|
819
|
+
# ],
|
820
|
+
# [
|
821
|
+
# [
|
822
|
+
# "_id",
|
823
|
+
# "UInt32"
|
824
|
+
# ],
|
825
|
+
# [
|
826
|
+
# "_key",
|
827
|
+
# "ShortText"
|
828
|
+
# ],
|
829
|
+
# [
|
830
|
+
# "content",
|
831
|
+
# "Text"
|
832
|
+
# ],
|
833
|
+
# [
|
834
|
+
# "n_likes",
|
835
|
+
# "UInt32"
|
836
|
+
# ]
|
837
|
+
# ],
|
838
|
+
# [
|
839
|
+
# 1,
|
840
|
+
# "The first post!",
|
841
|
+
# "Welcome! This is my first post!",
|
842
|
+
# 5
|
843
|
+
# ],
|
844
|
+
# [
|
845
|
+
# 2,
|
846
|
+
# "Groonga",
|
847
|
+
# "I started to use groonga. It's very fast!",
|
848
|
+
# 10
|
849
|
+
# ],
|
850
|
+
# [
|
851
|
+
# 4,
|
852
|
+
# "Good-bye Senna",
|
853
|
+
# "I migrated all Senna system!",
|
854
|
+
# 3
|
855
|
+
# ],
|
856
|
+
# [
|
857
|
+
# 5,
|
858
|
+
# "Good-bye Tritonn",
|
859
|
+
# "I also migrated all Tritonn system!",
|
860
|
+
# 3
|
861
|
+
# ]
|
862
|
+
# ]
|
863
|
+
# ]
|
864
|
+
# ]
|
865
|
+
</pre></div>
|
866
|
+
</div>
|
867
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value
|
868
|
+
is less than <tt class="docutils literal"><span class="pre">11</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
869
|
+
<p>See <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for other operations.</p>
|
870
|
+
</div>
|
871
|
+
<div class="section" id="filter">
|
872
|
+
<h4>8.4.17.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#filter" title="Permalink to this headline">¶</a></h4>
|
873
|
+
<p>It specifies the filter text. Normally, it is used for complex search
|
874
|
+
conditions. <tt class="docutils literal"><span class="pre">filter</span></tt> can be used with <tt class="docutils literal"><span class="pre">query</span></tt> parameter. If both
|
875
|
+
<tt class="docutils literal"><span class="pre">filter</span></tt> and <tt class="docutils literal"><span class="pre">query</span></tt> are specified, there are conbined with
|
876
|
+
logical and. It means that matched records should be matched against
|
877
|
+
both <tt class="docutils literal"><span class="pre">filter</span></tt> and <tt class="docutils literal"><span class="pre">query</span></tt>.</p>
|
878
|
+
<p><tt class="docutils literal"><span class="pre">filter</span></tt> parameter is designed for complex conditions. A filter text
|
879
|
+
should be formated in <a class="reference internal" href="../grn_expr/script_syntax.html"><em>Script syntax</em></a>. The syntax is
|
880
|
+
similar to ECMAScript. For example, <tt class="docutils literal"><span class="pre">column</span> <span class="pre">==</span> <span class="pre">"value"</span></tt> means that
|
881
|
+
the value of <tt class="docutils literal"><span class="pre">column</span></tt> column is equal to <tt class="docutils literal"><span class="pre">"value"</span></tt>. <tt class="docutils literal"><span class="pre">column</span> <span class="pre"><</span>
|
882
|
+
<span class="pre">value</span></tt> means that the value of <tt class="docutils literal"><span class="pre">column</span></tt> column is less than
|
883
|
+
<tt class="docutils literal"><span class="pre">value</span></tt>.</p>
|
884
|
+
<p>Here is a simple equality operator search example.</p>
|
885
|
+
<p>Execution example:</p>
|
886
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '_key == "Groonga"'
|
887
|
+
# [
|
888
|
+
# [
|
889
|
+
# 0,
|
890
|
+
# 1337566253.89858,
|
891
|
+
# 0.000355720520019531
|
892
|
+
# ],
|
893
|
+
# [
|
894
|
+
# [
|
895
|
+
# [
|
896
|
+
# 1
|
897
|
+
# ],
|
898
|
+
# [
|
899
|
+
# [
|
900
|
+
# "_id",
|
901
|
+
# "UInt32"
|
902
|
+
# ],
|
903
|
+
# [
|
904
|
+
# "_key",
|
905
|
+
# "ShortText"
|
906
|
+
# ],
|
907
|
+
# [
|
908
|
+
# "content",
|
909
|
+
# "Text"
|
910
|
+
# ],
|
911
|
+
# [
|
912
|
+
# "n_likes",
|
913
|
+
# "UInt32"
|
914
|
+
# ]
|
915
|
+
# ],
|
916
|
+
# [
|
917
|
+
# 2,
|
918
|
+
# "Groonga",
|
919
|
+
# "I started to use groonga. It's very fast!",
|
920
|
+
# 10
|
921
|
+
# ]
|
922
|
+
# ]
|
923
|
+
# ]
|
924
|
+
# ]
|
925
|
+
</pre></div>
|
926
|
+
</div>
|
927
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that <tt class="docutils literal"><span class="pre">_key</span></tt> column value is
|
928
|
+
<tt class="docutils literal"><span class="pre">Groonga</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
929
|
+
<p>Here is a simple less than operator search example.</p>
|
930
|
+
<p>Execution example:</p>
|
931
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 11'
|
932
|
+
# [
|
933
|
+
# [
|
934
|
+
# 0,
|
935
|
+
# 1337566253.89858,
|
936
|
+
# 0.000355720520019531
|
937
|
+
# ],
|
938
|
+
# [
|
939
|
+
# [
|
940
|
+
# [
|
941
|
+
# 4
|
942
|
+
# ],
|
943
|
+
# [
|
944
|
+
# [
|
945
|
+
# "_id",
|
946
|
+
# "UInt32"
|
947
|
+
# ],
|
948
|
+
# [
|
949
|
+
# "_key",
|
950
|
+
# "ShortText"
|
951
|
+
# ],
|
952
|
+
# [
|
953
|
+
# "content",
|
954
|
+
# "Text"
|
955
|
+
# ],
|
956
|
+
# [
|
957
|
+
# "n_likes",
|
958
|
+
# "UInt32"
|
959
|
+
# ]
|
960
|
+
# ],
|
961
|
+
# [
|
962
|
+
# 1,
|
963
|
+
# "The first post!",
|
964
|
+
# "Welcome! This is my first post!",
|
965
|
+
# 5
|
966
|
+
# ],
|
967
|
+
# [
|
968
|
+
# 2,
|
969
|
+
# "Groonga",
|
970
|
+
# "I started to use groonga. It's very fast!",
|
971
|
+
# 10
|
972
|
+
# ],
|
973
|
+
# [
|
974
|
+
# 4,
|
975
|
+
# "Good-bye Senna",
|
976
|
+
# "I migrated all Senna system!",
|
977
|
+
# 3
|
978
|
+
# ],
|
979
|
+
# [
|
980
|
+
# 5,
|
981
|
+
# "Good-bye Tritonn",
|
982
|
+
# "I also migrated all Tritonn system!",
|
983
|
+
# 3
|
984
|
+
# ]
|
985
|
+
# ]
|
986
|
+
# ]
|
987
|
+
# ]
|
988
|
+
</pre></div>
|
989
|
+
</div>
|
990
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value
|
991
|
+
is less than <tt class="docutils literal"><span class="pre">11</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
992
|
+
<p>See <a class="reference internal" href="../grn_expr/script_syntax.html"><em>Script syntax</em></a> for other operators.</p>
|
993
|
+
</div>
|
994
|
+
</div>
|
995
|
+
<div class="section" id="advanced-search-parameters">
|
996
|
+
<h3>8.4.17.4.3. Advanced search parameters<a class="headerlink" href="#advanced-search-parameters" title="Permalink to this headline">¶</a></h3>
|
997
|
+
<div class="section" id="match-escalation-threshold">
|
998
|
+
<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="Permalink to this headline">¶</a></h4>
|
999
|
+
<p>It specifies threshold to determine whether search storategy
|
1000
|
+
escalation is used or not. The threshold is compared against the
|
1001
|
+
number of matched records. If the number of matched records is equal
|
1002
|
+
to or less than the threshold, the search storategy escalation is
|
1003
|
+
used. See <a class="reference internal" href="../../spec/search.html"><em>検索</em></a> about the search storategy escalation.</p>
|
1004
|
+
<p>The default threshold is 0. It means that search storategy escalation
|
1005
|
+
is used only when no records are matched.</p>
|
1006
|
+
<p>The default threshold can be customized by one of the followings.</p>
|
1007
|
+
<blockquote>
|
1008
|
+
<div><ul class="simple">
|
1009
|
+
<li><tt class="docutils literal"><span class="pre">--with-match-escalation-threshold</span></tt> option of configure</li>
|
1010
|
+
<li><tt class="docutils literal"><span class="pre">--match-escalation-threshold</span></tt> option of groogna command</li>
|
1011
|
+
<li><tt class="docutils literal"><span class="pre">match-escalation-threshold</span></tt> configuration item in configuration
|
1012
|
+
file</li>
|
1013
|
+
</ul>
|
1014
|
+
</div></blockquote>
|
1015
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> usage example. The
|
1016
|
+
first <tt class="docutils literal"><span class="pre">select</span></tt> doesn't have <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt>
|
1017
|
+
parameter. The second <tt class="docutils literal"><span class="pre">select</span></tt> has <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt>
|
1018
|
+
parameter.</p>
|
1019
|
+
<p>Execution example:</p>
|
1020
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query groo
|
1021
|
+
# [
|
1022
|
+
# [
|
1023
|
+
# 0,
|
1024
|
+
# 1337566253.89858,
|
1025
|
+
# 0.000355720520019531
|
1026
|
+
# ],
|
1027
|
+
# [
|
1028
|
+
# [
|
1029
|
+
# [
|
1030
|
+
# 1
|
1031
|
+
# ],
|
1032
|
+
# [
|
1033
|
+
# [
|
1034
|
+
# "_id",
|
1035
|
+
# "UInt32"
|
1036
|
+
# ],
|
1037
|
+
# [
|
1038
|
+
# "_key",
|
1039
|
+
# "ShortText"
|
1040
|
+
# ],
|
1041
|
+
# [
|
1042
|
+
# "content",
|
1043
|
+
# "Text"
|
1044
|
+
# ],
|
1045
|
+
# [
|
1046
|
+
# "n_likes",
|
1047
|
+
# "UInt32"
|
1048
|
+
# ]
|
1049
|
+
# ],
|
1050
|
+
# [
|
1051
|
+
# 2,
|
1052
|
+
# "Groonga",
|
1053
|
+
# "I started to use groonga. It's very fast!",
|
1054
|
+
# 10
|
1055
|
+
# ]
|
1056
|
+
# ]
|
1057
|
+
# ]
|
1058
|
+
# ]
|
1059
|
+
select Entries --match_columns content --query groo --match_escalation_threshold -1
|
1060
|
+
# [
|
1061
|
+
# [
|
1062
|
+
# 0,
|
1063
|
+
# 1337566253.89858,
|
1064
|
+
# 0.000355720520019531
|
1065
|
+
# ],
|
1066
|
+
# [
|
1067
|
+
# [
|
1068
|
+
# [
|
1069
|
+
# 0
|
1070
|
+
# ],
|
1071
|
+
# [
|
1072
|
+
# [
|
1073
|
+
# "_id",
|
1074
|
+
# "UInt32"
|
1075
|
+
# ],
|
1076
|
+
# [
|
1077
|
+
# "_key",
|
1078
|
+
# "ShortText"
|
1079
|
+
# ],
|
1080
|
+
# [
|
1081
|
+
# "content",
|
1082
|
+
# "Text"
|
1083
|
+
# ],
|
1084
|
+
# [
|
1085
|
+
# "n_likes",
|
1086
|
+
# "UInt32"
|
1087
|
+
# ]
|
1088
|
+
# ]
|
1089
|
+
# ]
|
1090
|
+
# ]
|
1091
|
+
# ]
|
1092
|
+
</pre></div>
|
1093
|
+
</div>
|
1094
|
+
<p>The first <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain a word
|
1095
|
+
<tt class="docutils literal"><span class="pre">groo</span></tt> in <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table. But no
|
1096
|
+
records are matched because the <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> tokenizer tokenizes
|
1097
|
+
<tt class="docutils literal"><span class="pre">groonga</span></tt> to <tt class="docutils literal"><span class="pre">groonga</span></tt> not <tt class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></tt>. (The
|
1098
|
+
<tt class="docutils literal"><span class="pre">TokenBigramSplitSymbolAlpha</span></tt> tokenizer tokenizes <tt class="docutils literal"><span class="pre">groonga</span></tt> to
|
1099
|
+
<tt class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></tt>. See <a class="reference internal" href="../tokenizers.html"><em>Tokenizers</em></a> for details.)
|
1100
|
+
It means that <tt class="docutils literal"><span class="pre">groonga</span></tt> is indexed but <tt class="docutils literal"><span class="pre">groo</span></tt> isn't indexed. So no
|
1101
|
+
records are matched against <tt class="docutils literal"><span class="pre">groo</span></tt> by exact match. In the case, the
|
1102
|
+
search storategy escalation is used because the number of matched
|
1103
|
+
records (0) is equal to <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> (0). One record
|
1104
|
+
is matched against <tt class="docutils literal"><span class="pre">groo</span></tt> by unsplit search.</p>
|
1105
|
+
<p>The second <tt class="docutils literal"><span class="pre">select</span></tt> command also searches records that contain a
|
1106
|
+
word <tt class="docutils literal"><span class="pre">groo</span></tt> in <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table. And
|
1107
|
+
it also doesn't found matched records. In this case, the search
|
1108
|
+
storategy escalation is not used because the number of matched
|
1109
|
+
records (0) is larger than <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> (-1). So no
|
1110
|
+
more searches aren't executed. And no records are matched.</p>
|
1111
|
+
</div>
|
1112
|
+
<div class="section" id="query-expansion">
|
1113
|
+
<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="Permalink to this headline">¶</a></h4>
|
1114
|
+
<p>It's for query expansion. Query expansion substitutes specific words
|
1115
|
+
to another words in query. Nomally, it's used for synonym search.</p>
|
1116
|
+
<p>It specifies a column that is used to substitute <tt class="docutils literal"><span class="pre">query</span></tt> parameter
|
1117
|
+
value. The format of this parameter value is
|
1118
|
+
"<tt class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></tt>". For example, "<tt class="docutils literal"><span class="pre">Terms.synonym</span></tt>" specifies
|
1119
|
+
<tt class="docutils literal"><span class="pre">synonym</span></tt> column in <tt class="docutils literal"><span class="pre">Terms</span></tt> table.</p>
|
1120
|
+
<p>Table for query expansion is called "substitution table". Substitution
|
1121
|
+
table's key must be <tt class="docutils literal"><span class="pre">ShortText</span></tt>. So array table (<tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt>)
|
1122
|
+
can't be used for query expansion. Because array table doesn't have
|
1123
|
+
key.</p>
|
1124
|
+
<p>Column for query expansion is called "substitution
|
1125
|
+
column". Substitution column's value type must be
|
1126
|
+
<tt class="docutils literal"><span class="pre">ShortText</span></tt>. Column type must be vector (<tt class="docutils literal"><span class="pre">COLUMN_VECTOR</span></tt>).</p>
|
1127
|
+
<p>Query expansion substitutes key of substitution table in query with
|
1128
|
+
values in substitution column. If a word in <tt class="docutils literal"><span class="pre">query</span></tt> is a key of
|
1129
|
+
substitution table, the word is substituted with substitution column
|
1130
|
+
value that is associated with the key. Substition isn't performed
|
1131
|
+
recursively. It means that substitution target words in substituted
|
1132
|
+
query aren't substituted.</p>
|
1133
|
+
<p>Here is a sample substitution table to show a simple
|
1134
|
+
<tt class="docutils literal"><span class="pre">query_expansion</span></tt> usage example.</p>
|
1135
|
+
<p>Execution example:</p>
|
1136
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
1137
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1138
|
+
column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
1139
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1140
|
+
load --table Thesaurus
|
1141
|
+
[
|
1142
|
+
{"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
1143
|
+
{"_key": "groonga", "synonym": ["groonga", "senna"]}
|
1144
|
+
]
|
1145
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1146
|
+
</pre></div>
|
1147
|
+
</div>
|
1148
|
+
<p><tt class="docutils literal"><span class="pre">Thesaurus</span></tt> substitution table has two synonyms, <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> and
|
1149
|
+
<tt class="docutils literal"><span class="pre">"groonga"</span></tt>. If an user searches with <tt class="docutils literal"><span class="pre">"mroonga"</span></tt>, groonga
|
1150
|
+
searches with <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>. If an
|
1151
|
+
user searches with <tt class="docutils literal"><span class="pre">"groonga"</span></tt>, groonga searchs with <tt class="docutils literal"><span class="pre">"((groonga)</span>
|
1152
|
+
<span class="pre">OR</span> <span class="pre">(senna))"</span></tt>. Nomrally, it's good idea that substitution table has
|
1153
|
+
<tt class="docutils literal"><span class="pre">KEY_NORMALIZE</span></tt> flag. If the flag is used, substitute target word is
|
1154
|
+
matched in case insensitive manner.</p>
|
1155
|
+
<p>Note that those synonym values include the key value such as
|
1156
|
+
<tt class="docutils literal"><span class="pre">"mroonga"</span></tt> and <tt class="docutils literal"><span class="pre">"groonga"</span></tt>. It's recommended that you include the
|
1157
|
+
key value. If you don't include key value, substituted value doesn't
|
1158
|
+
include the original substitute target value. Normally, including the
|
1159
|
+
original value is better search result. If you have a word that you
|
1160
|
+
don't want to be searched, you should not include the original
|
1161
|
+
word. For example, you can implement "stop words" by an empty vector
|
1162
|
+
value.</p>
|
1163
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">query_expansion</span></tt> usage example.</p>
|
1164
|
+
<p>Execution example:</p>
|
1165
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "mroonga"
|
1166
|
+
# [
|
1167
|
+
# [
|
1168
|
+
# 0,
|
1169
|
+
# 1337566253.89858,
|
1170
|
+
# 0.000355720520019531
|
1171
|
+
# ],
|
1172
|
+
# [
|
1173
|
+
# [
|
1174
|
+
# [
|
1175
|
+
# 1
|
1176
|
+
# ],
|
1177
|
+
# [
|
1178
|
+
# [
|
1179
|
+
# "_id",
|
1180
|
+
# "UInt32"
|
1181
|
+
# ],
|
1182
|
+
# [
|
1183
|
+
# "_key",
|
1184
|
+
# "ShortText"
|
1185
|
+
# ],
|
1186
|
+
# [
|
1187
|
+
# "content",
|
1188
|
+
# "Text"
|
1189
|
+
# ],
|
1190
|
+
# [
|
1191
|
+
# "n_likes",
|
1192
|
+
# "UInt32"
|
1193
|
+
# ]
|
1194
|
+
# ],
|
1195
|
+
# [
|
1196
|
+
# 3,
|
1197
|
+
# "Mroonga",
|
1198
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1199
|
+
# 15
|
1200
|
+
# ]
|
1201
|
+
# ]
|
1202
|
+
# ]
|
1203
|
+
# ]
|
1204
|
+
select Entries --match_columns content --query "mroonga" --query_expansion Thesaurus.synonym
|
1205
|
+
# [
|
1206
|
+
# [
|
1207
|
+
# 0,
|
1208
|
+
# 1337566253.89858,
|
1209
|
+
# 0.000355720520019531
|
1210
|
+
# ],
|
1211
|
+
# [
|
1212
|
+
# [
|
1213
|
+
# [
|
1214
|
+
# 2
|
1215
|
+
# ],
|
1216
|
+
# [
|
1217
|
+
# [
|
1218
|
+
# "_id",
|
1219
|
+
# "UInt32"
|
1220
|
+
# ],
|
1221
|
+
# [
|
1222
|
+
# "_key",
|
1223
|
+
# "ShortText"
|
1224
|
+
# ],
|
1225
|
+
# [
|
1226
|
+
# "content",
|
1227
|
+
# "Text"
|
1228
|
+
# ],
|
1229
|
+
# [
|
1230
|
+
# "n_likes",
|
1231
|
+
# "UInt32"
|
1232
|
+
# ]
|
1233
|
+
# ],
|
1234
|
+
# [
|
1235
|
+
# 3,
|
1236
|
+
# "Mroonga",
|
1237
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1238
|
+
# 15
|
1239
|
+
# ],
|
1240
|
+
# [
|
1241
|
+
# 5,
|
1242
|
+
# "Good-bye Tritonn",
|
1243
|
+
# "I also migrated all Tritonn system!",
|
1244
|
+
# 3
|
1245
|
+
# ]
|
1246
|
+
# ]
|
1247
|
+
# ]
|
1248
|
+
# ]
|
1249
|
+
select Entries --match_columns content --query "((mroonga) OR (tritonn) OR (groonga mysql))"
|
1250
|
+
# [
|
1251
|
+
# [
|
1252
|
+
# 0,
|
1253
|
+
# 1337566253.89858,
|
1254
|
+
# 0.000355720520019531
|
1255
|
+
# ],
|
1256
|
+
# [
|
1257
|
+
# [
|
1258
|
+
# [
|
1259
|
+
# 2
|
1260
|
+
# ],
|
1261
|
+
# [
|
1262
|
+
# [
|
1263
|
+
# "_id",
|
1264
|
+
# "UInt32"
|
1265
|
+
# ],
|
1266
|
+
# [
|
1267
|
+
# "_key",
|
1268
|
+
# "ShortText"
|
1269
|
+
# ],
|
1270
|
+
# [
|
1271
|
+
# "content",
|
1272
|
+
# "Text"
|
1273
|
+
# ],
|
1274
|
+
# [
|
1275
|
+
# "n_likes",
|
1276
|
+
# "UInt32"
|
1277
|
+
# ]
|
1278
|
+
# ],
|
1279
|
+
# [
|
1280
|
+
# 3,
|
1281
|
+
# "Mroonga",
|
1282
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1283
|
+
# 15
|
1284
|
+
# ],
|
1285
|
+
# [
|
1286
|
+
# 5,
|
1287
|
+
# "Good-bye Tritonn",
|
1288
|
+
# "I also migrated all Tritonn system!",
|
1289
|
+
# 3
|
1290
|
+
# ]
|
1291
|
+
# ]
|
1292
|
+
# ]
|
1293
|
+
# ]
|
1294
|
+
</pre></div>
|
1295
|
+
</div>
|
1296
|
+
<p>The first <tt class="docutils literal"><span class="pre">select</span></tt> command doesn't use query expansion. So a record
|
1297
|
+
that has <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> isn't found. The second <tt class="docutils literal"><span class="pre">select</span></tt> command uses
|
1298
|
+
query expansion. So a record that has <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> is found. The
|
1299
|
+
third <tt class="docutils literal"><span class="pre">select</span></tt> command doesn't use query expansion but it is same as
|
1300
|
+
the second <tt class="docutils literal"><span class="pre">select</span></tt> command. The third one uses expanded query.</p>
|
1301
|
+
<p>Each substitute value can contain any <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> syntax
|
1302
|
+
such as <tt class="docutils literal"><span class="pre">(...)</span></tt> and <tt class="docutils literal"><span class="pre">OR</span></tt>. You can use complex substitution by
|
1303
|
+
using those syntax.</p>
|
1304
|
+
<p>Here is a complex substitution usage example that uses query syntax.</p>
|
1305
|
+
<p>Execution example:</p>
|
1306
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table Thesaurus
|
1307
|
+
[
|
1308
|
+
{"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
1309
|
+
]
|
1310
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 1]
|
1311
|
+
select Entries --match_columns content --query "popular" --query_expansion Thesaurus.synonym
|
1312
|
+
# [
|
1313
|
+
# [
|
1314
|
+
# 0,
|
1315
|
+
# 1337566253.89858,
|
1316
|
+
# 0.000355720520019531
|
1317
|
+
# ],
|
1318
|
+
# [
|
1319
|
+
# [
|
1320
|
+
# [
|
1321
|
+
# 2
|
1322
|
+
# ],
|
1323
|
+
# [
|
1324
|
+
# [
|
1325
|
+
# "_id",
|
1326
|
+
# "UInt32"
|
1327
|
+
# ],
|
1328
|
+
# [
|
1329
|
+
# "_key",
|
1330
|
+
# "ShortText"
|
1331
|
+
# ],
|
1332
|
+
# [
|
1333
|
+
# "content",
|
1334
|
+
# "Text"
|
1335
|
+
# ],
|
1336
|
+
# [
|
1337
|
+
# "n_likes",
|
1338
|
+
# "UInt32"
|
1339
|
+
# ]
|
1340
|
+
# ],
|
1341
|
+
# [
|
1342
|
+
# 2,
|
1343
|
+
# "Groonga",
|
1344
|
+
# "I started to use groonga. It's very fast!",
|
1345
|
+
# 10
|
1346
|
+
# ],
|
1347
|
+
# [
|
1348
|
+
# 3,
|
1349
|
+
# "Mroonga",
|
1350
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1351
|
+
# 15
|
1352
|
+
# ]
|
1353
|
+
# ]
|
1354
|
+
# ]
|
1355
|
+
# ]
|
1356
|
+
</pre></div>
|
1357
|
+
</div>
|
1358
|
+
<p>The <tt class="docutils literal"><span class="pre">load</span></tt> command registers a new synonym <tt class="docutils literal"><span class="pre">"popular"</span></tt>. It is
|
1359
|
+
substituted with <tt class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:>=10))</span></tt>. The substituted
|
1360
|
+
query means that "popular" is containing the word "popular" or 10 or
|
1361
|
+
more liked entries.</p>
|
1362
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value
|
1363
|
+
is equal to or more than <tt class="docutils literal"><span class="pre">10</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
1364
|
+
</div>
|
1365
|
+
<div class="section" id="query-flags">
|
1366
|
+
<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="Permalink to this headline">¶</a></h4>
|
1367
|
+
<p>It customs <tt class="docutils literal"><span class="pre">query</span></tt> parameter syntax. You cannot update column value
|
1368
|
+
by <tt class="docutils literal"><span class="pre">query</span></tt> parameter by default. But if you specify
|
1369
|
+
<tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> as <tt class="docutils literal"><span class="pre">query_flags</span></tt>, you can update
|
1370
|
+
column value by <tt class="docutils literal"><span class="pre">query</span></tt>.</p>
|
1371
|
+
<p>Here are available values:</p>
|
1372
|
+
<ul class="simple">
|
1373
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt></li>
|
1374
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt></li>
|
1375
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt></li>
|
1376
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt></li>
|
1377
|
+
<li><tt class="docutils literal"><span class="pre">NONE</span></tt></li>
|
1378
|
+
</ul>
|
1379
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt> enables pragma at the head of <tt class="docutils literal"><span class="pre">query</span></tt>. This is not
|
1380
|
+
implemented yet.</p>
|
1381
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> enables search againt columns that are not included
|
1382
|
+
in <tt class="docutils literal"><span class="pre">match_columns</span></tt>. To specify column, there are <tt class="docutils literal"><span class="pre">COLUMN:...</span></tt>
|
1383
|
+
syntaxes.</p>
|
1384
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> enables column update by <tt class="docutils literal"><span class="pre">query</span></tt> with
|
1385
|
+
<tt class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></tt> syntax. <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> is also required to
|
1386
|
+
update column because the column update syntax specifies column.</p>
|
1387
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> enables leading NOT condition with <tt class="docutils literal"><span class="pre">-WORD</span></tt>
|
1388
|
+
syntax. The query searches records that doesn't match
|
1389
|
+
<tt class="docutils literal"><span class="pre">WORD</span></tt>. Leading NOT condition query is heavy query in many cases
|
1390
|
+
because it matches many records. So this flag is disabled by
|
1391
|
+
default. Be careful about it when you use the flag.</p>
|
1392
|
+
<p><tt class="docutils literal"><span class="pre">NONE</span></tt> is just ignores. You can use <tt class="docutils literal"><span class="pre">NONE</span></tt> for specifying no flags.</p>
|
1393
|
+
<p>They can be combined by separated <tt class="docutils literal"><span class="pre">|</span></tt> such as
|
1394
|
+
<tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt>.</p>
|
1395
|
+
<p>The default value is <tt class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></tt>.</p>
|
1396
|
+
<p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt>.</p>
|
1397
|
+
<p>Execution example:</p>
|
1398
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
|
1399
|
+
# [
|
1400
|
+
# [
|
1401
|
+
# 0,
|
1402
|
+
# 1337566253.89858,
|
1403
|
+
# 0.000355720520019531
|
1404
|
+
# ],
|
1405
|
+
# [
|
1406
|
+
# [
|
1407
|
+
# [
|
1408
|
+
# 1
|
1409
|
+
# ],
|
1410
|
+
# [
|
1411
|
+
# [
|
1412
|
+
# "_id",
|
1413
|
+
# "UInt32"
|
1414
|
+
# ],
|
1415
|
+
# [
|
1416
|
+
# "_key",
|
1417
|
+
# "ShortText"
|
1418
|
+
# ],
|
1419
|
+
# [
|
1420
|
+
# "content",
|
1421
|
+
# "Text"
|
1422
|
+
# ],
|
1423
|
+
# [
|
1424
|
+
# "n_likes",
|
1425
|
+
# "UInt32"
|
1426
|
+
# ]
|
1427
|
+
# ],
|
1428
|
+
# [
|
1429
|
+
# 3,
|
1430
|
+
# "Mroonga",
|
1431
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1432
|
+
# 15
|
1433
|
+
# ]
|
1434
|
+
# ]
|
1435
|
+
# ]
|
1436
|
+
# ]
|
1437
|
+
</pre></div>
|
1438
|
+
</div>
|
1439
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain <tt class="docutils literal"><span class="pre">mroonga</span></tt> in
|
1440
|
+
<tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
1441
|
+
<p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt>.</p>
|
1442
|
+
<p>Execution example:</p>
|
1443
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
|
1444
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1445
|
+
column_create Users age COLUMN_SCALAR UInt32
|
1446
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1447
|
+
load --table Users
|
1448
|
+
[
|
1449
|
+
{"_key": "alice", "age": 18},
|
1450
|
+
{"_key": "bob", "age": 20}
|
1451
|
+
]
|
1452
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1453
|
+
select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
1454
|
+
# [
|
1455
|
+
# [
|
1456
|
+
# 0,
|
1457
|
+
# 1337566253.89858,
|
1458
|
+
# 0.000355720520019531
|
1459
|
+
# ],
|
1460
|
+
# [
|
1461
|
+
# [
|
1462
|
+
# [
|
1463
|
+
# 2
|
1464
|
+
# ],
|
1465
|
+
# [
|
1466
|
+
# [
|
1467
|
+
# "_id",
|
1468
|
+
# "UInt32"
|
1469
|
+
# ],
|
1470
|
+
# [
|
1471
|
+
# "_key",
|
1472
|
+
# "ShortText"
|
1473
|
+
# ],
|
1474
|
+
# [
|
1475
|
+
# "age",
|
1476
|
+
# "UInt32"
|
1477
|
+
# ]
|
1478
|
+
# ],
|
1479
|
+
# [
|
1480
|
+
# 1,
|
1481
|
+
# "alice",
|
1482
|
+
# 19
|
1483
|
+
# ],
|
1484
|
+
# [
|
1485
|
+
# 2,
|
1486
|
+
# "bob",
|
1487
|
+
# 19
|
1488
|
+
# ]
|
1489
|
+
# ]
|
1490
|
+
# ]
|
1491
|
+
# ]
|
1492
|
+
select Users
|
1493
|
+
# [
|
1494
|
+
# [
|
1495
|
+
# 0,
|
1496
|
+
# 1337566253.89858,
|
1497
|
+
# 0.000355720520019531
|
1498
|
+
# ],
|
1499
|
+
# [
|
1500
|
+
# [
|
1501
|
+
# [
|
1502
|
+
# 2
|
1503
|
+
# ],
|
1504
|
+
# [
|
1505
|
+
# [
|
1506
|
+
# "_id",
|
1507
|
+
# "UInt32"
|
1508
|
+
# ],
|
1509
|
+
# [
|
1510
|
+
# "_key",
|
1511
|
+
# "ShortText"
|
1512
|
+
# ],
|
1513
|
+
# [
|
1514
|
+
# "age",
|
1515
|
+
# "UInt32"
|
1516
|
+
# ]
|
1517
|
+
# ],
|
1518
|
+
# [
|
1519
|
+
# 1,
|
1520
|
+
# "alice",
|
1521
|
+
# 19
|
1522
|
+
# ],
|
1523
|
+
# [
|
1524
|
+
# 2,
|
1525
|
+
# "bob",
|
1526
|
+
# 19
|
1527
|
+
# ]
|
1528
|
+
# ]
|
1529
|
+
# ]
|
1530
|
+
# ]
|
1531
|
+
</pre></div>
|
1532
|
+
</div>
|
1533
|
+
<p>The first <tt class="docutils literal"><span class="pre">select</span></tt> command sets <tt class="docutils literal"><span class="pre">age</span></tt> column value of all records
|
1534
|
+
to <tt class="docutils literal"><span class="pre">19</span></tt>. The second <tt class="docutils literal"><span class="pre">select</span></tt> command outputs updated <tt class="docutils literal"><span class="pre">age</span></tt>
|
1535
|
+
column values.</p>
|
1536
|
+
<p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt>.</p>
|
1537
|
+
<p>Execution example:</p>
|
1538
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
|
1539
|
+
# [
|
1540
|
+
# [
|
1541
|
+
# 0,
|
1542
|
+
# 1337566253.89858,
|
1543
|
+
# 0.000355720520019531
|
1544
|
+
# ],
|
1545
|
+
# [
|
1546
|
+
# [
|
1547
|
+
# [
|
1548
|
+
# 4
|
1549
|
+
# ],
|
1550
|
+
# [
|
1551
|
+
# [
|
1552
|
+
# "_id",
|
1553
|
+
# "UInt32"
|
1554
|
+
# ],
|
1555
|
+
# [
|
1556
|
+
# "_key",
|
1557
|
+
# "ShortText"
|
1558
|
+
# ],
|
1559
|
+
# [
|
1560
|
+
# "content",
|
1561
|
+
# "Text"
|
1562
|
+
# ],
|
1563
|
+
# [
|
1564
|
+
# "n_likes",
|
1565
|
+
# "UInt32"
|
1566
|
+
# ]
|
1567
|
+
# ],
|
1568
|
+
# [
|
1569
|
+
# 1,
|
1570
|
+
# "The first post!",
|
1571
|
+
# "Welcome! This is my first post!",
|
1572
|
+
# 5
|
1573
|
+
# ],
|
1574
|
+
# [
|
1575
|
+
# 2,
|
1576
|
+
# "Groonga",
|
1577
|
+
# "I started to use groonga. It's very fast!",
|
1578
|
+
# 10
|
1579
|
+
# ],
|
1580
|
+
# [
|
1581
|
+
# 4,
|
1582
|
+
# "Good-bye Senna",
|
1583
|
+
# "I migrated all Senna system!",
|
1584
|
+
# 3
|
1585
|
+
# ],
|
1586
|
+
# [
|
1587
|
+
# 5,
|
1588
|
+
# "Good-bye Tritonn",
|
1589
|
+
# "I also migrated all Tritonn system!",
|
1590
|
+
# 3
|
1591
|
+
# ]
|
1592
|
+
# ]
|
1593
|
+
# ]
|
1594
|
+
# ]
|
1595
|
+
</pre></div>
|
1596
|
+
</div>
|
1597
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that don't contain <tt class="docutils literal"><span class="pre">mroonga</span></tt>
|
1598
|
+
in <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
1599
|
+
<p>Here is a usage example of <tt class="docutils literal"><span class="pre">NONE</span></tt>.</p>
|
1600
|
+
<p>Execution example:</p>
|
1601
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query 'mroonga OR _key:Groonga' --query_flags NONE
|
1602
|
+
# [
|
1603
|
+
# [
|
1604
|
+
# 0,
|
1605
|
+
# 1337566253.89858,
|
1606
|
+
# 0.000355720520019531
|
1607
|
+
# ],
|
1608
|
+
# [
|
1609
|
+
# [
|
1610
|
+
# [
|
1611
|
+
# 1
|
1612
|
+
# ],
|
1613
|
+
# [
|
1614
|
+
# [
|
1615
|
+
# "_id",
|
1616
|
+
# "UInt32"
|
1617
|
+
# ],
|
1618
|
+
# [
|
1619
|
+
# "_key",
|
1620
|
+
# "ShortText"
|
1621
|
+
# ],
|
1622
|
+
# [
|
1623
|
+
# "content",
|
1624
|
+
# "Text"
|
1625
|
+
# ],
|
1626
|
+
# [
|
1627
|
+
# "n_likes",
|
1628
|
+
# "UInt32"
|
1629
|
+
# ]
|
1630
|
+
# ],
|
1631
|
+
# [
|
1632
|
+
# 3,
|
1633
|
+
# "Mroonga",
|
1634
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1635
|
+
# 15
|
1636
|
+
# ]
|
1637
|
+
# ]
|
1638
|
+
# ]
|
1639
|
+
# ]
|
1640
|
+
</pre></div>
|
1641
|
+
</div>
|
1642
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain one of two words
|
1643
|
+
<tt class="docutils literal"><span class="pre">mroonga</span></tt> or <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> in <tt class="docutils literal"><span class="pre">content</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.
|
1644
|
+
Note that <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> doesn't mean that the value of <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1645
|
+
column is equal to <tt class="docutils literal"><span class="pre">Groonga</span></tt>. Because <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> flag is not
|
1646
|
+
specified.</p>
|
1647
|
+
<p>See also <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a>.</p>
|
1648
|
+
</div>
|
1649
|
+
</div>
|
1650
|
+
<div class="section" id="output-related-parameters">
|
1651
|
+
<h3>8.4.17.4.4. Output related parameters<a class="headerlink" href="#output-related-parameters" title="Permalink to this headline">¶</a></h3>
|
1652
|
+
<div class="section" id="output-columns">
|
1653
|
+
<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="Permalink to this headline">¶</a></h4>
|
1654
|
+
<p>It specifies output columns separated by <tt class="docutils literal"><span class="pre">,</span></tt>.</p>
|
1655
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">output_columns</span></tt> usage example.</p>
|
1656
|
+
<p>Execution example:</p>
|
1657
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_id, _key' --limit 1
|
1658
|
+
# [
|
1659
|
+
# [
|
1660
|
+
# 0,
|
1661
|
+
# 1337566253.89858,
|
1662
|
+
# 0.000355720520019531
|
1663
|
+
# ],
|
1664
|
+
# [
|
1665
|
+
# [
|
1666
|
+
# [
|
1667
|
+
# 5
|
1668
|
+
# ],
|
1669
|
+
# [
|
1670
|
+
# [
|
1671
|
+
# "_id",
|
1672
|
+
# "UInt32"
|
1673
|
+
# ],
|
1674
|
+
# [
|
1675
|
+
# "_key",
|
1676
|
+
# "ShortText"
|
1677
|
+
# ]
|
1678
|
+
# ],
|
1679
|
+
# [
|
1680
|
+
# 1,
|
1681
|
+
# "The first post!"
|
1682
|
+
# ]
|
1683
|
+
# ]
|
1684
|
+
# ]
|
1685
|
+
# ]
|
1686
|
+
</pre></div>
|
1687
|
+
</div>
|
1688
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command just outputs <tt class="docutils literal"><span class="pre">_id</span></tt> and <tt class="docutils literal"><span class="pre">_key</span></tt> column
|
1689
|
+
values.</p>
|
1690
|
+
<p><tt class="docutils literal"><span class="pre">*</span></tt> is a special value. It means that all columns that are not
|
1691
|
+
<a class="reference internal" href="../pseudo_column.html"><em>疑似カラム (pseudo_column)</em></a>.</p>
|
1692
|
+
<p>Here is a <tt class="docutils literal"><span class="pre">*</span></tt> usage example.</p>
|
1693
|
+
<p>Execution example:</p>
|
1694
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_key, *' --limit 1
|
1695
|
+
# [
|
1696
|
+
# [
|
1697
|
+
# 0,
|
1698
|
+
# 1337566253.89858,
|
1699
|
+
# 0.000355720520019531
|
1700
|
+
# ],
|
1701
|
+
# [
|
1702
|
+
# [
|
1703
|
+
# [
|
1704
|
+
# 5
|
1705
|
+
# ],
|
1706
|
+
# [
|
1707
|
+
# [
|
1708
|
+
# "_key",
|
1709
|
+
# "ShortText"
|
1710
|
+
# ],
|
1711
|
+
# [
|
1712
|
+
# "content",
|
1713
|
+
# "Text"
|
1714
|
+
# ],
|
1715
|
+
# [
|
1716
|
+
# "n_likes",
|
1717
|
+
# "UInt32"
|
1718
|
+
# ]
|
1719
|
+
# ],
|
1720
|
+
# [
|
1721
|
+
# "The first post!",
|
1722
|
+
# "Welcome! This is my first post!",
|
1723
|
+
# 5
|
1724
|
+
# ]
|
1725
|
+
# ]
|
1726
|
+
# ]
|
1727
|
+
# ]
|
1728
|
+
</pre></div>
|
1729
|
+
</div>
|
1730
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs <tt class="docutils literal"><span class="pre">_key</span></tt> pseudo column, <tt class="docutils literal"><span class="pre">content</span></tt>
|
1731
|
+
column and <tt class="docutils literal"><span class="pre">n_likes</span></tt> column values but doesn't output <tt class="docutils literal"><span class="pre">_id</span></tt> pseudo
|
1732
|
+
column value.</p>
|
1733
|
+
<p>The default value is <tt class="docutils literal"><span class="pre">_id,</span> <span class="pre">_key,</span> <span class="pre">*</span></tt>. It means that all column
|
1734
|
+
values except <tt class="docutils literal"><span class="pre">_score</span></tt> are outputted.</p>
|
1735
|
+
</div>
|
1736
|
+
<div class="section" id="sortby">
|
1737
|
+
<h4>8.4.17.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt><a class="headerlink" href="#sortby" title="Permalink to this headline">¶</a></h4>
|
1738
|
+
<p>It specifies sort keys separated by <tt class="docutils literal"><span class="pre">,</span></tt>. Each sort key is column
|
1739
|
+
name.</p>
|
1740
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">sortby</span></tt> usage example.</p>
|
1741
|
+
<p>Execution example:</p>
|
1742
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby 'n_likes, _id'
|
1743
|
+
# [
|
1744
|
+
# [
|
1745
|
+
# 0,
|
1746
|
+
# 1337566253.89858,
|
1747
|
+
# 0.000355720520019531
|
1748
|
+
# ],
|
1749
|
+
# [
|
1750
|
+
# [
|
1751
|
+
# [
|
1752
|
+
# 5
|
1753
|
+
# ],
|
1754
|
+
# [
|
1755
|
+
# [
|
1756
|
+
# "_id",
|
1757
|
+
# "UInt32"
|
1758
|
+
# ],
|
1759
|
+
# [
|
1760
|
+
# "_key",
|
1761
|
+
# "ShortText"
|
1762
|
+
# ],
|
1763
|
+
# [
|
1764
|
+
# "content",
|
1765
|
+
# "Text"
|
1766
|
+
# ],
|
1767
|
+
# [
|
1768
|
+
# "n_likes",
|
1769
|
+
# "UInt32"
|
1770
|
+
# ]
|
1771
|
+
# ],
|
1772
|
+
# [
|
1773
|
+
# 4,
|
1774
|
+
# "Good-bye Senna",
|
1775
|
+
# "I migrated all Senna system!",
|
1776
|
+
# 3
|
1777
|
+
# ],
|
1778
|
+
# [
|
1779
|
+
# 5,
|
1780
|
+
# "Good-bye Tritonn",
|
1781
|
+
# "I also migrated all Tritonn system!",
|
1782
|
+
# 3
|
1783
|
+
# ],
|
1784
|
+
# [
|
1785
|
+
# 1,
|
1786
|
+
# "The first post!",
|
1787
|
+
# "Welcome! This is my first post!",
|
1788
|
+
# 5
|
1789
|
+
# ],
|
1790
|
+
# [
|
1791
|
+
# 2,
|
1792
|
+
# "Groonga",
|
1793
|
+
# "I started to use groonga. It's very fast!",
|
1794
|
+
# 10
|
1795
|
+
# ],
|
1796
|
+
# [
|
1797
|
+
# 3,
|
1798
|
+
# "Mroonga",
|
1799
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1800
|
+
# 15
|
1801
|
+
# ]
|
1802
|
+
# ]
|
1803
|
+
# ]
|
1804
|
+
# ]
|
1805
|
+
</pre></div>
|
1806
|
+
</div>
|
1807
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command sorts by <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value in ascending
|
1808
|
+
order. For records that has the same <tt class="docutils literal"><span class="pre">n_likes</span></tt> are sorted by <tt class="docutils literal"><span class="pre">_id</span></tt>
|
1809
|
+
in ascending order. <tt class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Senna"</span></tt> and <tt class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Tritonn"</span></tt>
|
1810
|
+
are the case.</p>
|
1811
|
+
<p>If you want to sort in descending order, add <tt class="docutils literal"><span class="pre">-</span></tt> before column name.</p>
|
1812
|
+
<p>Here is a descending order <tt class="docutils literal"><span class="pre">sortby</span></tt> usage example.</p>
|
1813
|
+
<p>Execution example:</p>
|
1814
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby '-n_likes, _id'
|
1815
|
+
# [
|
1816
|
+
# [
|
1817
|
+
# 0,
|
1818
|
+
# 1337566253.89858,
|
1819
|
+
# 0.000355720520019531
|
1820
|
+
# ],
|
1821
|
+
# [
|
1822
|
+
# [
|
1823
|
+
# [
|
1824
|
+
# 5
|
1825
|
+
# ],
|
1826
|
+
# [
|
1827
|
+
# [
|
1828
|
+
# "_id",
|
1829
|
+
# "UInt32"
|
1830
|
+
# ],
|
1831
|
+
# [
|
1832
|
+
# "_key",
|
1833
|
+
# "ShortText"
|
1834
|
+
# ],
|
1835
|
+
# [
|
1836
|
+
# "content",
|
1837
|
+
# "Text"
|
1838
|
+
# ],
|
1839
|
+
# [
|
1840
|
+
# "n_likes",
|
1841
|
+
# "UInt32"
|
1842
|
+
# ]
|
1843
|
+
# ],
|
1844
|
+
# [
|
1845
|
+
# 3,
|
1846
|
+
# "Mroonga",
|
1847
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1848
|
+
# 15
|
1849
|
+
# ],
|
1850
|
+
# [
|
1851
|
+
# 2,
|
1852
|
+
# "Groonga",
|
1853
|
+
# "I started to use groonga. It's very fast!",
|
1854
|
+
# 10
|
1855
|
+
# ],
|
1856
|
+
# [
|
1857
|
+
# 1,
|
1858
|
+
# "The first post!",
|
1859
|
+
# "Welcome! This is my first post!",
|
1860
|
+
# 5
|
1861
|
+
# ],
|
1862
|
+
# [
|
1863
|
+
# 4,
|
1864
|
+
# "Good-bye Senna",
|
1865
|
+
# "I migrated all Senna system!",
|
1866
|
+
# 3
|
1867
|
+
# ],
|
1868
|
+
# [
|
1869
|
+
# 5,
|
1870
|
+
# "Good-bye Tritonn",
|
1871
|
+
# "I also migrated all Tritonn system!",
|
1872
|
+
# 3
|
1873
|
+
# ]
|
1874
|
+
# ]
|
1875
|
+
# ]
|
1876
|
+
# ]
|
1877
|
+
</pre></div>
|
1878
|
+
</div>
|
1879
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command sorts by <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value in descending
|
1880
|
+
order. But ascending order is used for sorting by <tt class="docutils literal"><span class="pre">_id</span></tt>.</p>
|
1881
|
+
<p>You can use <tt class="docutils literal"><span class="pre">_score</span></tt> pseudo column in <tt class="docutils literal"><span class="pre">sortby</span></tt> if you use
|
1882
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> or <tt class="docutils literal"><span class="pre">filter</span></tt> parameter.</p>
|
1883
|
+
<p>Execution example:</p>
|
1884
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --sortby -_score --output_columns '_key, _score'
|
1885
|
+
# [
|
1886
|
+
# [
|
1887
|
+
# 0,
|
1888
|
+
# 1337566253.89858,
|
1889
|
+
# 0.000355720520019531
|
1890
|
+
# ],
|
1891
|
+
# [
|
1892
|
+
# [
|
1893
|
+
# [
|
1894
|
+
# 2
|
1895
|
+
# ],
|
1896
|
+
# [
|
1897
|
+
# [
|
1898
|
+
# "_key",
|
1899
|
+
# "ShortText"
|
1900
|
+
# ],
|
1901
|
+
# [
|
1902
|
+
# "_score",
|
1903
|
+
# "Int32"
|
1904
|
+
# ]
|
1905
|
+
# ],
|
1906
|
+
# [
|
1907
|
+
# "Mroonga",
|
1908
|
+
# 2
|
1909
|
+
# ],
|
1910
|
+
# [
|
1911
|
+
# "Groonga",
|
1912
|
+
# 1
|
1913
|
+
# ]
|
1914
|
+
# ]
|
1915
|
+
# ]
|
1916
|
+
# ]
|
1917
|
+
</pre></div>
|
1918
|
+
</div>
|
1919
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command sorts matched records by hit score in
|
1920
|
+
descending order and outputs record key and hit score.</p>
|
1921
|
+
<p>If you use <tt class="docutils literal"><span class="pre">_score</span></tt> without <tt class="docutils literal"><span class="pre">query</span></tt> nor <tt class="docutils literal"><span class="pre">filter</span></tt> parameters,
|
1922
|
+
it's just ignored but get a warning in log file.</p>
|
1923
|
+
</div>
|
1924
|
+
<div class="section" id="offset">
|
1925
|
+
<h4>8.4.17.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt><a class="headerlink" href="#offset" title="Permalink to this headline">¶</a></h4>
|
1926
|
+
<p>It specifies offset to determine output records range. Offset is
|
1927
|
+
zero-origin. <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> means output range is started from the 2nd
|
1928
|
+
record.</p>
|
1929
|
+
<p>Execution example:</p>
|
1930
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 3 --output_columns _key
|
1931
|
+
# [
|
1932
|
+
# [
|
1933
|
+
# 0,
|
1934
|
+
# 1337566253.89858,
|
1935
|
+
# 0.000355720520019531
|
1936
|
+
# ],
|
1937
|
+
# [
|
1938
|
+
# [
|
1939
|
+
# [
|
1940
|
+
# 5
|
1941
|
+
# ],
|
1942
|
+
# [
|
1943
|
+
# [
|
1944
|
+
# "_key",
|
1945
|
+
# "ShortText"
|
1946
|
+
# ]
|
1947
|
+
# ],
|
1948
|
+
# [
|
1949
|
+
# "Good-bye Senna"
|
1950
|
+
# ],
|
1951
|
+
# [
|
1952
|
+
# "Good-bye Tritonn"
|
1953
|
+
# ]
|
1954
|
+
# ]
|
1955
|
+
# ]
|
1956
|
+
# ]
|
1957
|
+
</pre></div>
|
1958
|
+
</div>
|
1959
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs from the 4th record.</p>
|
1960
|
+
<p>You can specify negative value. It means that <tt class="docutils literal"><span class="pre">the</span> <span class="pre">number</span> <span class="pre">of</span> <span class="pre">matched</span>
|
1961
|
+
<span class="pre">records</span> <span class="pre">+</span> <span class="pre">offset</span></tt>. If you have 3 matched records and specify
|
1962
|
+
<tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></tt>, you get records from the 1st (<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>) record
|
1963
|
+
to the 3rd record.</p>
|
1964
|
+
<p>Execution example:</p>
|
1965
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset -2 --output_columns _key
|
1966
|
+
# [
|
1967
|
+
# [
|
1968
|
+
# 0,
|
1969
|
+
# 1337566253.89858,
|
1970
|
+
# 0.000355720520019531
|
1971
|
+
# ],
|
1972
|
+
# [
|
1973
|
+
# [
|
1974
|
+
# [
|
1975
|
+
# 5
|
1976
|
+
# ],
|
1977
|
+
# [
|
1978
|
+
# [
|
1979
|
+
# "_key",
|
1980
|
+
# "ShortText"
|
1981
|
+
# ]
|
1982
|
+
# ],
|
1983
|
+
# [
|
1984
|
+
# "Good-bye Senna"
|
1985
|
+
# ],
|
1986
|
+
# [
|
1987
|
+
# "Good-bye Tritonn"
|
1988
|
+
# ]
|
1989
|
+
# ]
|
1990
|
+
# ]
|
1991
|
+
# ]
|
1992
|
+
</pre></div>
|
1993
|
+
</div>
|
1994
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs from the 4th record because the total
|
1995
|
+
number of records is <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
1996
|
+
<p>The default value is <tt class="docutils literal"><span class="pre">0</span></tt>.</p>
|
1997
|
+
</div>
|
1998
|
+
<div class="section" id="limit">
|
1999
|
+
<h4>8.4.17.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt><a class="headerlink" href="#limit" title="Permalink to this headline">¶</a></h4>
|
2000
|
+
<p>It specifies the max number of output records. If the number of
|
2001
|
+
matched records is less than <tt class="docutils literal"><span class="pre">limit</span></tt>, all records are outputted.</p>
|
2002
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">limit</span></tt> usage example.</p>
|
2003
|
+
<p>Execution example:</p>
|
2004
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 2 --limit 3 --output_columns _key
|
2005
|
+
# [
|
2006
|
+
# [
|
2007
|
+
# 0,
|
2008
|
+
# 1337566253.89858,
|
2009
|
+
# 0.000355720520019531
|
2010
|
+
# ],
|
2011
|
+
# [
|
2012
|
+
# [
|
2013
|
+
# [
|
2014
|
+
# 5
|
2015
|
+
# ],
|
2016
|
+
# [
|
2017
|
+
# [
|
2018
|
+
# "_key",
|
2019
|
+
# "ShortText"
|
2020
|
+
# ]
|
2021
|
+
# ],
|
2022
|
+
# [
|
2023
|
+
# "Mroonga"
|
2024
|
+
# ],
|
2025
|
+
# [
|
2026
|
+
# "Good-bye Senna"
|
2027
|
+
# ],
|
2028
|
+
# [
|
2029
|
+
# "Good-bye Tritonn"
|
2030
|
+
# ]
|
2031
|
+
# ]
|
2032
|
+
# ]
|
2033
|
+
# ]
|
2034
|
+
</pre></div>
|
2035
|
+
</div>
|
2036
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs the 3rd, the 4th and the 5th records.</p>
|
2037
|
+
<p>You can specify negative value. It means that <tt class="docutils literal"><span class="pre">the</span> <span class="pre">number</span> <span class="pre">of</span> <span class="pre">matched</span>
|
2038
|
+
<span class="pre">records</span> <span class="pre">+</span> <span class="pre">limit</span> <span class="pre">+</span> <span class="pre">1</span></tt>. For example, <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">-1</span></tt> outputs all
|
2039
|
+
records. It's very useful value to show all records.</p>
|
2040
|
+
<p>Here is a simple negative <tt class="docutils literal"><span class="pre">limit</span></tt> value usage example.</p>
|
2041
|
+
<p>Execution example:</p>
|
2042
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --limit -1
|
2043
|
+
# [
|
2044
|
+
# [
|
2045
|
+
# 0,
|
2046
|
+
# 1337566253.89858,
|
2047
|
+
# 0.000355720520019531
|
2048
|
+
# ],
|
2049
|
+
# [
|
2050
|
+
# [
|
2051
|
+
# [
|
2052
|
+
# 5
|
2053
|
+
# ],
|
2054
|
+
# [
|
2055
|
+
# [
|
2056
|
+
# "_id",
|
2057
|
+
# "UInt32"
|
2058
|
+
# ],
|
2059
|
+
# [
|
2060
|
+
# "_key",
|
2061
|
+
# "ShortText"
|
2062
|
+
# ],
|
2063
|
+
# [
|
2064
|
+
# "content",
|
2065
|
+
# "Text"
|
2066
|
+
# ],
|
2067
|
+
# [
|
2068
|
+
# "n_likes",
|
2069
|
+
# "UInt32"
|
2070
|
+
# ]
|
2071
|
+
# ],
|
2072
|
+
# [
|
2073
|
+
# 1,
|
2074
|
+
# "The first post!",
|
2075
|
+
# "Welcome! This is my first post!",
|
2076
|
+
# 5
|
2077
|
+
# ],
|
2078
|
+
# [
|
2079
|
+
# 2,
|
2080
|
+
# "Groonga",
|
2081
|
+
# "I started to use groonga. It's very fast!",
|
2082
|
+
# 10
|
2083
|
+
# ],
|
2084
|
+
# [
|
2085
|
+
# 3,
|
2086
|
+
# "Mroonga",
|
2087
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
2088
|
+
# 15
|
2089
|
+
# ],
|
2090
|
+
# [
|
2091
|
+
# 4,
|
2092
|
+
# "Good-bye Senna",
|
2093
|
+
# "I migrated all Senna system!",
|
2094
|
+
# 3
|
2095
|
+
# ],
|
2096
|
+
# [
|
2097
|
+
# 5,
|
2098
|
+
# "Good-bye Tritonn",
|
2099
|
+
# "I also migrated all Tritonn system!",
|
2100
|
+
# 3
|
2101
|
+
# ]
|
2102
|
+
# ]
|
2103
|
+
# ]
|
2104
|
+
# ]
|
2105
|
+
</pre></div>
|
2106
|
+
</div>
|
2107
|
+
<p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs all records.</p>
|
2108
|
+
<p>The default value is <tt class="docutils literal"><span class="pre">10</span></tt>.</p>
|
2109
|
+
</div>
|
2110
|
+
<div class="section" id="scorer">
|
2111
|
+
<h4>8.4.17.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt><a class="headerlink" href="#scorer" title="Permalink to this headline">¶</a></h4>
|
2112
|
+
<p>TODO: write in English and add example.</p>
|
2113
|
+
<p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
|
2114
|
+
<p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
|
2115
|
+
</div>
|
2116
|
+
</div>
|
2117
|
+
<div class="section" id="facet-related-parameters">
|
2118
|
+
<h3>8.4.17.4.5. Facet related parameters<a class="headerlink" href="#facet-related-parameters" title="Permalink to this headline">¶</a></h3>
|
2119
|
+
<div class="section" id="drilldown">
|
2120
|
+
<h4>8.4.17.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt><a class="headerlink" href="#drilldown" title="Permalink to this headline">¶</a></h4>
|
2121
|
+
<p>TODO: write in English and add example.</p>
|
2122
|
+
<p>グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。</p>
|
2123
|
+
</div>
|
2124
|
+
<div class="section" id="drilldown-sortby">
|
2125
|
+
<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="Permalink to this headline">¶</a></h4>
|
2126
|
+
<p>TODO: write in English and add example.</p>
|
2127
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。</p>
|
2128
|
+
</div>
|
2129
|
+
<div class="section" id="drilldown-output-columns">
|
2130
|
+
<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="Permalink to this headline">¶</a></h4>
|
2131
|
+
<p>TODO: write in English and add example.</p>
|
2132
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
|
2133
|
+
</div>
|
2134
|
+
<div class="section" id="drilldown-offset">
|
2135
|
+
<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="Permalink to this headline">¶</a></h4>
|
2136
|
+
<p>TODO: write in English and add example.</p>
|
2137
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。</p>
|
2138
|
+
</div>
|
2139
|
+
<div class="section" id="drilldown-limit">
|
2140
|
+
<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="Permalink to this headline">¶</a></h4>
|
2141
|
+
<p>TODO: write in English and add example.</p>
|
2142
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。</p>
|
2143
|
+
</div>
|
2144
|
+
</div>
|
2145
|
+
<div class="section" id="cache-related-parameter">
|
2146
|
+
<h3>8.4.17.4.6. Cache related parameter<a class="headerlink" href="#cache-related-parameter" title="Permalink to this headline">¶</a></h3>
|
2147
|
+
<div class="section" id="cache">
|
2148
|
+
<h4>8.4.17.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt><a class="headerlink" href="#cache" title="Permalink to this headline">¶</a></h4>
|
2149
|
+
<p>TODO: write in English and add example.</p>
|
2150
|
+
<p>クエリキャッシュに関する動作を設定します。</p>
|
2151
|
+
<p><tt class="docutils literal"><span class="pre">no</span></tt></p>
|
2152
|
+
<blockquote>
|
2153
|
+
<div>検索結果をクエリキャッシュに残しません。キャッシュして再利用される可能性が低いクエリに対して用います。キャッシュ容量は有限です。有効なキャッシュが多くヒットするために、このパラメータは有効です。</div></blockquote>
|
2154
|
+
</div>
|
2155
|
+
</div>
|
2156
|
+
</div>
|
2157
|
+
<div class="section" id="id3">
|
2158
|
+
<h2>8.4.17.5. 返値<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
|
2159
|
+
<p>TODO: write in English and add example.</p>
|
2160
|
+
<p>以下のようなjson形式で値が返却されます。</p>
|
2161
|
+
<div class="highlight-none"><div class="highlight"><pre>[[リターンコード, 処理開始時間, 処理時間], [検索結果, ドリルダウン結果]]
|
2162
|
+
</pre></div>
|
2163
|
+
</div>
|
2164
|
+
<p><tt class="docutils literal"><span class="pre">リターンコード</span></tt></p>
|
2165
|
+
<blockquote>
|
2166
|
+
<div>grn_rcに対応する数値が返されます。0(GRN_SUCCESS)以外の場合は、続いてエラー内容を示す
|
2167
|
+
文字列が返されます。</div></blockquote>
|
2168
|
+
<p><tt class="docutils literal"><span class="pre">処理開始時間</span></tt></p>
|
2169
|
+
<blockquote>
|
2170
|
+
<div>処理を開始した時間について、1970年1月1日0時0分0秒を起点とした秒数を小数で返します。</div></blockquote>
|
2171
|
+
<p><tt class="docutils literal"><span class="pre">処理時間</span></tt></p>
|
2172
|
+
<blockquote>
|
2173
|
+
<div>処理にかかった秒数を返します。</div></blockquote>
|
2174
|
+
<p><tt class="docutils literal"><span class="pre">検索結果</span></tt></p>
|
2175
|
+
<blockquote>
|
2176
|
+
<div><p>drilldown条件が実行される前の検索結果が以下のように出力されます。:</p>
|
2177
|
+
<div class="highlight-none"><div class="highlight"><pre>[[検索件数], [[カラム名1,カラム型1],..], 検索結果1,..]
|
2178
|
+
</pre></div>
|
2179
|
+
</div>
|
2180
|
+
<p><tt class="docutils literal"><span class="pre">検索件数</span></tt></p>
|
2181
|
+
<blockquote>
|
2182
|
+
<div>検索件数が出力されます。</div></blockquote>
|
2183
|
+
<p><tt class="docutils literal"><span class="pre">カラム名n</span></tt></p>
|
2184
|
+
<blockquote>
|
2185
|
+
<div>output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
|
2186
|
+
<p><tt class="docutils literal"><span class="pre">カラム型n</span></tt></p>
|
2187
|
+
<blockquote>
|
2188
|
+
<div>output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
|
2189
|
+
<p><tt class="docutils literal"><span class="pre">検索結果n</span></tt></p>
|
2190
|
+
<blockquote>
|
2191
|
+
<div>output_columns, offset, limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
|
2192
|
+
</div></blockquote>
|
2193
|
+
<p><tt class="docutils literal"><span class="pre">drilldown結果</span></tt></p>
|
2194
|
+
<blockquote>
|
2195
|
+
<div><p>drilldown処理の結果が以下のように出力されます。:</p>
|
2196
|
+
<div class="highlight-none"><div class="highlight"><pre>[[[件数], [[カラム名1,カラム型1],..], 検索結果1,..],..]
|
2197
|
+
</pre></div>
|
2198
|
+
</div>
|
2199
|
+
<p><tt class="docutils literal"><span class="pre">件数</span></tt></p>
|
2200
|
+
<blockquote>
|
2201
|
+
<div>drilldownに指定されたカラムの値の異なり数が出力されます。</div></blockquote>
|
2202
|
+
<p><tt class="docutils literal"><span class="pre">カラム名n</span></tt></p>
|
2203
|
+
<blockquote>
|
2204
|
+
<div>drilldown_output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
|
2205
|
+
<p><tt class="docutils literal"><span class="pre">カラム型n</span></tt></p>
|
2206
|
+
<blockquote>
|
2207
|
+
<div>drilldown_output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
|
2208
|
+
<p><tt class="docutils literal"><span class="pre">ドリルダウン結果n</span></tt></p>
|
2209
|
+
<blockquote>
|
2210
|
+
<div>drilldown_output_columns, drilldown_offset, drilldown_limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
|
2211
|
+
</div></blockquote>
|
2212
|
+
</div>
|
2213
|
+
<div class="section" id="see-also">
|
2214
|
+
<h2>8.4.17.6. See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
|
2215
|
+
<blockquote>
|
2216
|
+
<div><ul class="simple">
|
2217
|
+
<li><a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a></li>
|
2218
|
+
<li><a class="reference internal" href="../grn_expr/script_syntax.html"><em>Script syntax</em></a></li>
|
2219
|
+
</ul>
|
2220
|
+
</div></blockquote>
|
2221
|
+
</div>
|
2222
|
+
</div>
|
2223
|
+
|
2224
|
+
|
2225
|
+
</div>
|
2226
|
+
</div>
|
2227
|
+
</div>
|
2228
|
+
<div class="sphinxsidebar">
|
2229
|
+
<div class="sphinxsidebarwrapper">
|
2230
|
+
<h3><a href="../../index.html">Table Of Contents</a></h3>
|
2231
|
+
<ul>
|
2232
|
+
<li><a class="reference internal" href="#">8.4.17. select</a><ul>
|
2233
|
+
<li><a class="reference internal" href="#summary">8.4.17.1. Summary</a></li>
|
2234
|
+
<li><a class="reference internal" href="#syntax">8.4.17.2. Syntax</a></li>
|
2235
|
+
<li><a class="reference internal" href="#usage">8.4.17.3. Usage</a><ul>
|
2236
|
+
<li><a class="reference internal" href="#simple-usage">8.4.17.3.1. Simple usage</a></li>
|
2237
|
+
<li><a class="reference internal" href="#search-conditions">8.4.17.3.2. Search conditions</a><ul>
|
2238
|
+
<li><a class="reference internal" href="#search-condition-query">8.4.17.3.2.1. Search condition: <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
|
2239
|
+
<li><a class="reference internal" href="#search-condition-filter">8.4.17.3.2.2. Search condition: <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
|
2240
|
+
</ul>
|
2241
|
+
</li>
|
2242
|
+
<li><a class="reference internal" href="#paging">8.4.17.3.3. Paging</a></li>
|
2243
|
+
<li><a class="reference internal" href="#the-total-number-of-records">8.4.17.3.4. The total number of records</a></li>
|
2244
|
+
</ul>
|
2245
|
+
</li>
|
2246
|
+
<li><a class="reference internal" href="#parameters">8.4.17.4. Parameters</a><ul>
|
2247
|
+
<li><a class="reference internal" href="#required-parameter">8.4.17.4.1. Required parameter</a><ul>
|
2248
|
+
<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>
|
2249
|
+
</ul>
|
2250
|
+
</li>
|
2251
|
+
<li><a class="reference internal" href="#search-related-parameters">8.4.17.4.2. Search related parameters</a><ul>
|
2252
|
+
<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>
|
2253
|
+
<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>
|
2254
|
+
<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>
|
2255
|
+
</ul>
|
2256
|
+
</li>
|
2257
|
+
<li><a class="reference internal" href="#advanced-search-parameters">8.4.17.4.3. Advanced search parameters</a><ul>
|
2258
|
+
<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>
|
2259
|
+
<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>
|
2260
|
+
<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>
|
2261
|
+
</ul>
|
2262
|
+
</li>
|
2263
|
+
<li><a class="reference internal" href="#output-related-parameters">8.4.17.4.4. Output related parameters</a><ul>
|
2264
|
+
<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>
|
2265
|
+
<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>
|
2266
|
+
<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>
|
2267
|
+
<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>
|
2268
|
+
<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>
|
2269
|
+
</ul>
|
2270
|
+
</li>
|
2271
|
+
<li><a class="reference internal" href="#facet-related-parameters">8.4.17.4.5. Facet related parameters</a><ul>
|
2272
|
+
<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>
|
2273
|
+
<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>
|
2274
|
+
<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>
|
2275
|
+
<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>
|
2276
|
+
<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>
|
2277
|
+
</ul>
|
2278
|
+
</li>
|
2279
|
+
<li><a class="reference internal" href="#cache-related-parameter">8.4.17.4.6. Cache related parameter</a><ul>
|
2280
|
+
<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>
|
2281
|
+
</ul>
|
2282
|
+
</li>
|
2283
|
+
</ul>
|
2284
|
+
</li>
|
2285
|
+
<li><a class="reference internal" href="#id3">8.4.17.5. 返値</a></li>
|
2286
|
+
<li><a class="reference internal" href="#see-also">8.4.17.6. See also</a></li>
|
2287
|
+
</ul>
|
2288
|
+
</li>
|
2289
|
+
</ul>
|
2290
|
+
|
2291
|
+
<h4>Previous topic</h4>
|
2292
|
+
<p class="topless"><a href="quit.html"
|
2293
|
+
title="previous chapter">8.4.16. quit</a></p>
|
2294
|
+
<h4>Next topic</h4>
|
2295
|
+
<p class="topless"><a href="shutdown.html"
|
2296
|
+
title="next chapter">8.4.18. shutdown</a></p>
|
2297
|
+
<h3>This Page</h3>
|
2298
|
+
<ul class="this-page-menu">
|
2299
|
+
<li><a href="../../_sources/reference/commands/select.txt"
|
2300
|
+
rel="nofollow">Show Source</a></li>
|
2301
|
+
</ul>
|
2302
|
+
<div id="searchbox" style="display: none">
|
2303
|
+
<h3>Quick search</h3>
|
2304
|
+
<form class="search" action="../../search.html" method="get">
|
2305
|
+
<input type="text" name="q" />
|
2306
|
+
<input type="submit" value="Go" />
|
2307
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
2308
|
+
<input type="hidden" name="area" value="default" />
|
2309
|
+
</form>
|
2310
|
+
<p class="searchtip" style="font-size: 90%">
|
2311
|
+
Enter search terms or a module, class or function name.
|
2312
|
+
</p>
|
2313
|
+
</div>
|
2314
|
+
<script type="text/javascript">$('#searchbox').show(0);</script>
|
2315
|
+
</div>
|
2316
|
+
</div>
|
2317
|
+
<div class="clearer"></div>
|
2318
|
+
</div>
|
2319
|
+
<div class="related">
|
2320
|
+
<h3>Navigation</h3>
|
2321
|
+
<ul>
|
2322
|
+
<li class="right" style="margin-right: 10px">
|
2323
|
+
<a href="../../genindex.html" title="General Index"
|
2324
|
+
>index</a></li>
|
2325
|
+
<li class="right" >
|
2326
|
+
<a href="shutdown.html" title="8.4.18. shutdown"
|
2327
|
+
>next</a> |</li>
|
2328
|
+
<li class="right" >
|
2329
|
+
<a href="quit.html" title="8.4.16. quit"
|
2330
|
+
>previous</a> |</li>
|
2331
|
+
<li><a href="../../index.html">groonga v2.0.5-316-g23cc017 documentation</a> »</li>
|
2332
|
+
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
2333
|
+
<li><a href="../commands.html" >8.4. コマンド</a> »</li>
|
2334
|
+
</ul>
|
2335
|
+
</div>
|
2336
|
+
<div class="footer">
|
2337
|
+
© Copyright 2009-2012, Brazil, Inc.
|
2338
|
+
</div>
|
2339
|
+
</body>
|
2340
|
+
</html>
|