rroonga 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +5 -0
- data/Gemfile +1 -12
- data/README.textile +73 -0
- data/Rakefile +4 -57
- data/bin/grndump +11 -1
- data/ext/groonga/extconf.rb +125 -54
- data/ext/groonga/rb-grn-context.c +25 -7
- data/ext/groonga/rb-grn-database.c +25 -0
- data/ext/groonga/rb-grn-object.c +19 -7
- data/ext/groonga/rb-grn-table.c +8 -10
- data/ext/groonga/rb-grn.h +9 -2
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/dumper.rb +2 -2
- data/lib/groonga/expression-builder.rb +33 -18
- data/rroonga-build.rb +1 -1
- 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 +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga.h +5 -5
- 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 +0 -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 +0 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +4 -4
- 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/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/select.txt +349 -109
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +41 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +71 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +154 -4
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +21 -29
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +683 -162
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +170 -12
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +23 -16
- data/vendor/local/share/doc/groonga/en/html/indexing.html +95 -14
- data/vendor/local/share/doc/groonga/en/html/install.html +67 -37
- data/vendor/local/share/doc/groonga/en/html/limitations.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +161 -25
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference.html +5 -5
- 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/spec/search.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/spec.html +13 -11
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +33 -6
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +33 -6
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +37 -6
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +293 -29
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +340 -27
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +282 -24
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +524 -15
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +103 -8
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +128 -13
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +155 -17
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/select.txt +349 -109
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +41 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +71 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +154 -4
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +21 -29
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +601 -162
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +170 -12
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +23 -16
- data/vendor/local/share/doc/groonga/ja/html/indexing.html +95 -14
- data/vendor/local/share/doc/groonga/ja/html/install.html +66 -37
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/log.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +147 -25
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference.html +5 -5
- 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/spec/search.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/spec.html +13 -11
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +33 -6
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +33 -6
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +37 -6
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +292 -28
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +340 -27
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- 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 +282 -24
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +524 -15
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +103 -8
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +128 -13
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +155 -17
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/source/commands/select.txt +349 -109
- data/vendor/local/share/doc/groonga/source/commands/suggest-completion.log +28 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-correction.log +28 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-completion.log +1 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-correction.log +1 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-suggestion.log +1 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-mixed.log +74 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-suggestion.log +32 -1
- data/vendor/local/share/doc/groonga/source/conf.py +3 -3
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +28 -1
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +28 -1
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +32 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +1 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +38 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +46 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +38 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +38 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +38 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +40 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +48 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-1.log +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-2.log +100 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-3.log +5 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-4.log +80 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-5.log +75 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-6.log +31 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-7.log +38 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-1.log +7 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-2.log +132 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-3.log +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-4.log +132 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-1.log +32 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-10.log +95 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-2.log +32 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-3.log +32 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-4.log +86 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-5.log +32 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-6.log +70 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-7.log +51 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-8.log +55 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-9.log +34 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +18 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +80 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-1.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log +89 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-1.log +8 -8
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-2.log +66 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-3.log +76 -2
- data/vendor/local/share/doc/groonga/source/install.txt +41 -10
- data/vendor/local/share/doc/groonga/source/news.txt +71 -0
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +1 -1
- data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +1 -1
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +1 -1
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +1 -1
- data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +1 -1
- data/vendor/local/share/groonga/html/admin/css/{admin.css → groonga-admin.css} +5 -4
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/{ui-lightness/images/ui-icons_ffd27a_256x240.png → redmond/images/ui-icons_217bc0_256x240.png} +0 -0
- data/vendor/local/share/groonga/html/admin/css/{ui-lightness/images/ui-icons_222222_256x240.png → redmond/images/ui-icons_2e83ff_256x240.png} +0 -0
- data/vendor/local/share/groonga/html/admin/css/{ui-lightness/images/ui-icons_228ef1_256x240.png → redmond/images/ui-icons_469bdd_256x240.png} +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/{ui-lightness/images/ui-icons_ef8c08_256x240.png → redmond/images/ui-icons_d8e7f3_256x240.png} +0 -0
- data/vendor/local/share/groonga/html/admin/css/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/{ui-lightness/jquery-ui-1.8.1.custom.css → redmond/jquery-ui-1.8.18.custom.css} +169 -90
- data/vendor/local/share/groonga/html/admin/images/groonga.svg +121 -0
- data/vendor/local/share/groonga/html/admin/index.html +44 -1145
- data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +1354 -0
- data/vendor/local/share/groonga/html/admin/js/jquery-1.7.2.min.js +4 -0
- data/vendor/local/share/groonga/html/admin/js/jquery-ui-1.8.18.custom.min.js +356 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +2813 -331
- data/vendor/local/share/man/man1/groonga.1 +2898 -337
- 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 +988 -921
- data/test/groonga-test-utils.rb +0 -139
- data/test/run-test.rb +0 -60
- data/test/test-accessor.rb +0 -36
- data/test/test-array.rb +0 -123
- data/test/test-column.rb +0 -350
- data/test/test-command-select.rb +0 -147
- data/test/test-context.rb +0 -130
- data/test/test-database-dumper.rb +0 -259
- data/test/test-database.rb +0 -148
- data/test/test-double-array-trie.rb +0 -164
- data/test/test-encoding.rb +0 -33
- data/test/test-exception.rb +0 -96
- data/test/test-expression-builder.rb +0 -269
- data/test/test-expression.rb +0 -134
- data/test/test-fix-size-column.rb +0 -77
- data/test/test-gqtp.rb +0 -70
- data/test/test-hash.rb +0 -344
- data/test/test-index-column.rb +0 -180
- data/test/test-index-cursor.rb +0 -93
- data/test/test-logger.rb +0 -37
- data/test/test-pagination.rb +0 -249
- data/test/test-patricia-trie.rb +0 -415
- data/test/test-plugin.rb +0 -35
- data/test/test-procedure.rb +0 -37
- data/test/test-query-log.rb +0 -258
- data/test/test-record.rb +0 -569
- data/test/test-remote.rb +0 -63
- data/test/test-schema-create-table.rb +0 -267
- data/test/test-schema-dumper.rb +0 -235
- data/test/test-schema-type.rb +0 -208
- data/test/test-schema-view.rb +0 -90
- data/test/test-schema.rb +0 -886
- data/test/test-snippet.rb +0 -130
- data/test/test-table-cursor.rb +0 -187
- data/test/test-table-dumper.rb +0 -83
- data/test/test-table-offset-and-limit.rb +0 -100
- data/test/test-table-select-mecab.rb +0 -80
- data/test/test-table-select-normalize.rb +0 -57
- data/test/test-table-select-weight.rb +0 -123
- data/test/test-table-select.rb +0 -191
- data/test/test-table.rb +0 -675
- data/test/test-type.rb +0 -79
- data/test/test-variable-size-column.rb +0 -147
- data/test/test-variable.rb +0 -28
- data/test/test-vector-column.rb +0 -76
- data/test/test-version.rb +0 -61
- data/test/test-view.rb +0 -72
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/vendor/local/share/groonga/html/admin/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/local/share/groonga/html/admin/js/jquery-1.4.2.min.js +0 -154
- data/vendor/local/share/groonga/html/admin/js/jquery-ui-1.8.1.custom.min.js +0 -756
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>7.3.17. select — groonga v2.0.
|
12
|
+
<title>7.3.17. select — groonga v2.0.2 documentation</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '2.0.
|
20
|
+
VERSION: '2.0.2',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<script type="text/javascript" src="../_static/underscore.js"></script>
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
30
|
-
<link rel="top" title="groonga v2.0.
|
30
|
+
<link rel="top" title="groonga v2.0.2 documentation" href="../index.html" />
|
31
31
|
<link rel="up" title="7.3. コマンド" href="../commands.html" />
|
32
32
|
<link rel="next" title="7.3.18. shutdown" href="shutdown.html" />
|
33
33
|
<link rel="prev" title="7.3.16. quit" href="quit.html" />
|
@@ -62,7 +62,7 @@
|
|
62
62
|
<li class="right" >
|
63
63
|
<a href="quit.html" title="7.3.16. quit"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="../index.html">groonga v2.0.
|
65
|
+
<li><a href="../index.html">groonga v2.0.2 documentation</a> »</li>
|
66
66
|
<li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li>
|
67
67
|
<li><a href="../commands.html" accesskey="U">7.3. コマンド</a> »</li>
|
68
68
|
</ul>
|
@@ -75,157 +75,640 @@
|
|
75
75
|
|
76
76
|
<div class="section" id="select">
|
77
77
|
<h1>7.3.17. select<a class="headerlink" href="#select" title="Permalink to this headline">¶</a></h1>
|
78
|
-
<div class="section" id="
|
79
|
-
<h2>7.3.17.1.
|
80
|
-
<p>select
|
81
|
-
|
82
|
-
<
|
83
|
-
<
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
78
|
+
<div class="section" id="summary">
|
79
|
+
<h2>7.3.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>7.3.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]
|
88
106
|
</pre></div>
|
89
107
|
</div>
|
90
108
|
</div>
|
91
|
-
<div class="section" id="
|
92
|
-
<h2>7.3.17.3.
|
93
|
-
<p>
|
94
|
-
|
109
|
+
<div class="section" id="usage">
|
110
|
+
<h2>7.3.17.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
|
111
|
+
<p>Let's learn about <tt class="docutils literal"><span class="pre">select</span></tt> usage with examples. This section shows
|
112
|
+
many popular usages.</p>
|
113
|
+
<p>Here are a schema definition and sample data to show usage.</p>
|
114
|
+
<p>Execution example:</p>
|
115
|
+
<div class="highlight-none"><div class="highlight"><pre>> table_create Entries TABLE_HASH_KEY ShortText
|
116
|
+
[[0,1335594537.43378,0.000381708145141602],true]
|
117
|
+
> column_create Entries content COLUMN_SCALAR Text
|
118
|
+
[[0,1335594537.63582,0.000931501388549805],true]
|
119
|
+
> table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
|
120
|
+
[[0,1335594537.83776,0.000288009643554688],true]
|
121
|
+
> column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
122
|
+
[[0,1335594538.03901,0.0059964656829834],true]
|
123
|
+
> column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
|
124
|
+
[[0,1335594538.24584,0.00617790222167969],true]
|
125
|
+
> load --table Entries
|
126
|
+
> [
|
127
|
+
> {"_key": "The first post!", "content": "Welcome! This is my first post!"},
|
128
|
+
> {"_key": "Groonga", "content": "I started to use groonga. It's very fast!"}
|
129
|
+
> {"_key": "Mroonga", "content": "I also started to use mroonga. It's also very fast! Really fast!"}
|
130
|
+
> ]
|
131
|
+
</pre></div>
|
95
132
|
</div>
|
96
|
-
<
|
97
|
-
|
98
|
-
<
|
99
|
-
<
|
100
|
-
<
|
101
|
-
<
|
102
|
-
<
|
103
|
-
<div
|
104
|
-
<
|
105
|
-
<
|
106
|
-
<
|
107
|
-
<
|
108
|
-
<div
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
</
|
154
|
-
<p
|
155
|
-
|
156
|
-
|
157
|
-
<
|
158
|
-
|
159
|
-
|
133
|
+
<p>There is a table, <tt class="docutils literal"><span class="pre">Entries</span></tt>, for blog entries. An entry has title
|
134
|
+
and content. Title is key of <tt class="docutils literal"><span class="pre">Entries</span></tt>. Content is value of
|
135
|
+
<tt class="docutils literal"><span class="pre">Entries.content</span></tt> column.</p>
|
136
|
+
<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
|
137
|
+
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
|
138
|
+
<tt class="docutils literal"><span class="pre">Entries.content</span></tt> are fulltext search ready.</p>
|
139
|
+
<p>OK. The schema and data for examples are ready.</p>
|
140
|
+
<div class="section" id="simple-usage">
|
141
|
+
<h3>7.3.17.3.1. Simple usage<a class="headerlink" href="#simple-usage" title="Permalink to this headline">¶</a></h3>
|
142
|
+
<p>Here is the most simple usage with the above shema and data. It outputs
|
143
|
+
all records in <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
|
144
|
+
<p>Execution example:</p>
|
145
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries
|
146
|
+
[
|
147
|
+
[
|
148
|
+
0,
|
149
|
+
1335519592.67133,
|
150
|
+
0.000493049621582031
|
151
|
+
],
|
152
|
+
[
|
153
|
+
[
|
154
|
+
[
|
155
|
+
3
|
156
|
+
],
|
157
|
+
[
|
158
|
+
[
|
159
|
+
"_id",
|
160
|
+
"UInt32"
|
161
|
+
],
|
162
|
+
[
|
163
|
+
"_key",
|
164
|
+
"ShortText"
|
165
|
+
],
|
166
|
+
[
|
167
|
+
"content",
|
168
|
+
"Text"
|
169
|
+
]
|
170
|
+
],
|
171
|
+
[
|
172
|
+
1,
|
173
|
+
"The first post!",
|
174
|
+
"Welcome! This is my first post!"
|
175
|
+
],
|
176
|
+
[
|
177
|
+
2,
|
178
|
+
"Groonga",
|
179
|
+
"I started to use groonga. It's very fast!"
|
180
|
+
],
|
181
|
+
[
|
182
|
+
3,
|
183
|
+
"Mroonga",
|
184
|
+
"I also started to use mroonga. It's also very fast! Really fast!"
|
185
|
+
]
|
186
|
+
]
|
187
|
+
]
|
188
|
+
]
|
189
|
+
</pre></div>
|
190
|
+
</div>
|
191
|
+
<p>Why does the command output all records? There are two reasons. The
|
192
|
+
first reason is that the command doesn't specify any search
|
193
|
+
conditions. No search condition means all records are matched. The
|
194
|
+
second reason is that the number of all records is 3. <tt class="docutils literal"><span class="pre">select</span></tt>
|
195
|
+
command outputs 10 records at a maximum by default. There are only 3
|
196
|
+
records. It is less than 10. So the command outputs all records.</p>
|
197
|
+
</div>
|
198
|
+
<div class="section" id="search-conditions">
|
199
|
+
<h3>7.3.17.3.2. Search conditions<a class="headerlink" href="#search-conditions" title="Permalink to this headline">¶</a></h3>
|
200
|
+
<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
|
201
|
+
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
|
202
|
+
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>
|
203
|
+
<div class="section" id="search-condition-query">
|
204
|
+
<h4>7.3.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>
|
205
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> is designed for search box in Web page. Imagine a search box
|
206
|
+
in google.com. You specify search conditions for <tt class="docutils literal"><span class="pre">query</span></tt> as space
|
207
|
+
separated keywords. For example, <tt class="docutils literal"><span class="pre">search</span> <span class="pre">engine</span></tt> means a matched
|
208
|
+
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>
|
209
|
+
<p>Normally, <tt class="docutils literal"><span class="pre">query</span></tt> parameter is used for specifying fulltext search
|
210
|
+
conditions. It can be used for non fulltext search conditions but
|
211
|
+
<tt class="docutils literal"><span class="pre">filter</span></tt> is used for the propose.</p>
|
212
|
+
<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
|
213
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> parameter is used for specifying fulltext search
|
214
|
+
conditions. <tt class="docutils literal"><span class="pre">match_columns</span></tt> specifies which columnes and indexes are
|
215
|
+
matched against <tt class="docutils literal"><span class="pre">query</span></tt>.</p>
|
216
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">query</span></tt> usage example.</p>
|
217
|
+
<p>Execution example:</p>
|
218
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries --match_columns content --query fast
|
219
|
+
[
|
220
|
+
[
|
221
|
+
0,
|
222
|
+
1335519592.87374,
|
223
|
+
0.000868797302246094
|
224
|
+
],
|
225
|
+
[
|
226
|
+
[
|
227
|
+
[
|
228
|
+
2
|
229
|
+
],
|
230
|
+
[
|
231
|
+
[
|
232
|
+
"_id",
|
233
|
+
"UInt32"
|
234
|
+
],
|
235
|
+
[
|
236
|
+
"_key",
|
237
|
+
"ShortText"
|
238
|
+
],
|
239
|
+
[
|
240
|
+
"content",
|
241
|
+
"Text"
|
242
|
+
]
|
243
|
+
],
|
244
|
+
[
|
245
|
+
2,
|
246
|
+
"Groonga",
|
247
|
+
"I started to use groonga. It's very fast!"
|
248
|
+
],
|
249
|
+
[
|
250
|
+
3,
|
251
|
+
"Mroonga",
|
252
|
+
"I also started to use mroonga. It's also very fast! Really fast!"
|
253
|
+
]
|
254
|
+
]
|
255
|
+
]
|
256
|
+
]
|
257
|
+
</pre></div>
|
258
|
+
</div>
|
259
|
+
<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>
|
260
|
+
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>
|
261
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> has query syntax but its deatils aren't described here. See
|
262
|
+
<a class="reference internal" href="../spec/query_syntax.html"><em>Query syntax</em></a> for datails.</p>
|
263
|
+
</div>
|
264
|
+
<div class="section" id="search-condition-filter">
|
265
|
+
<h4>7.3.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>
|
266
|
+
<p><tt class="docutils literal"><span class="pre">filter</span></tt> is designed for complex search conditions. You specify
|
267
|
+
search conditions for <tt class="docutils literal"><span class="pre">filter</span></tt> as ECMAScript like syntax.</p>
|
268
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">filter</span></tt> usage example.</p>
|
269
|
+
<p>Execution example:</p>
|
270
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries --filter 'content @ "fast" && _key == "Groonga"'
|
271
|
+
[
|
272
|
+
[
|
273
|
+
0,
|
274
|
+
1335520300.98383,
|
275
|
+
0.000544071197509766
|
276
|
+
],
|
277
|
+
[
|
278
|
+
[
|
279
|
+
[
|
280
|
+
1
|
281
|
+
],
|
282
|
+
[
|
283
|
+
[
|
284
|
+
"_id",
|
285
|
+
"UInt32"
|
286
|
+
],
|
287
|
+
[
|
288
|
+
"_key",
|
289
|
+
"ShortText"
|
290
|
+
],
|
291
|
+
[
|
292
|
+
"content",
|
293
|
+
"Text"
|
294
|
+
]
|
295
|
+
],
|
296
|
+
[
|
297
|
+
2,
|
298
|
+
"Groonga",
|
299
|
+
"I started to use groonga. It's very fast!"
|
300
|
+
]
|
301
|
+
]
|
302
|
+
]
|
303
|
+
]
|
304
|
+
</pre></div>
|
305
|
+
</div>
|
306
|
+
<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>
|
307
|
+
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
|
308
|
+
<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>,
|
309
|
+
<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
|
310
|
+
<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
|
311
|
+
<tt class="docutils literal"><span class="pre">==</span></tt> is equality operator.</p>
|
312
|
+
<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>
|
313
|
+
its deatils aren't described here. See <a class="reference internal" href="../spec/script_syntax.html"><em>Script Syntax</em></a> for
|
314
|
+
datails.</p>
|
315
|
+
</div>
|
316
|
+
</div>
|
317
|
+
<div class="section" id="paging">
|
318
|
+
<h3>7.3.17.3.3. Paging<a class="headerlink" href="#paging" title="Permalink to this headline">¶</a></h3>
|
319
|
+
<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>.
|
320
|
+
Here is an example to output only the 2nd record.</p>
|
321
|
+
<p>Execution example:</p>
|
322
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries --offset 1 --limit 1
|
323
|
+
[
|
324
|
+
[
|
325
|
+
0,
|
326
|
+
1335519593.28077,
|
327
|
+
0.000288248062133789
|
328
|
+
],
|
329
|
+
[
|
330
|
+
[
|
331
|
+
[
|
332
|
+
3
|
333
|
+
],
|
334
|
+
[
|
335
|
+
[
|
336
|
+
"_id",
|
337
|
+
"UInt32"
|
338
|
+
],
|
339
|
+
[
|
340
|
+
"_key",
|
341
|
+
"ShortText"
|
342
|
+
],
|
343
|
+
[
|
344
|
+
"content",
|
345
|
+
"Text"
|
346
|
+
]
|
347
|
+
],
|
348
|
+
[
|
349
|
+
2,
|
350
|
+
"Groonga",
|
351
|
+
"I started to use groonga. It's very fast!"
|
352
|
+
]
|
353
|
+
]
|
354
|
+
]
|
355
|
+
]
|
356
|
+
</pre></div>
|
357
|
+
</div>
|
358
|
+
<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
|
359
|
+
started from the 2nd record.</p>
|
360
|
+
<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>
|
361
|
+
means the number of output records is 1 at a maximium. If no records
|
362
|
+
are matched, <tt class="docutils literal"><span class="pre">select</span></tt> command outputs no records.</p>
|
363
|
+
</div>
|
364
|
+
<div class="section" id="the-total-number-of-records">
|
365
|
+
<h3>7.3.17.3.4. The total number of records<a class="headerlink" href="#the-total-number-of-records" title="Permalink to this headline">¶</a></h3>
|
366
|
+
<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
|
367
|
+
without any contents of records.</p>
|
368
|
+
<p>Execution example:</p>
|
369
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries --limit 0
|
370
|
+
[
|
371
|
+
[
|
372
|
+
0,
|
373
|
+
1335519593.48351,
|
374
|
+
0.000329017639160156
|
375
|
+
],
|
376
|
+
[
|
377
|
+
[
|
378
|
+
[
|
379
|
+
3
|
380
|
+
],
|
381
|
+
[
|
382
|
+
[
|
383
|
+
"_id",
|
384
|
+
"UInt32"
|
385
|
+
],
|
386
|
+
[
|
387
|
+
"_key",
|
388
|
+
"ShortText"
|
389
|
+
],
|
390
|
+
[
|
391
|
+
"content",
|
392
|
+
"Text"
|
393
|
+
]
|
394
|
+
]
|
395
|
+
]
|
396
|
+
]
|
397
|
+
]
|
398
|
+
</pre></div>
|
399
|
+
</div>
|
400
|
+
<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
|
401
|
+
records.</p>
|
402
|
+
</div>
|
403
|
+
</div>
|
404
|
+
<div class="section" id="parameters">
|
405
|
+
<h2>7.3.17.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
|
406
|
+
<p>This section describes all parameters. Parameters are categorized.</p>
|
407
|
+
<div class="section" id="required-parameter">
|
408
|
+
<h3>7.3.17.4.1. Required parameter<a class="headerlink" href="#required-parameter" title="Permalink to this headline">¶</a></h3>
|
409
|
+
<p>There is a required parameter, <tt class="docutils literal"><span class="pre">table</span></tt>.</p>
|
410
|
+
<div class="section" id="table">
|
411
|
+
<h4>7.3.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>
|
412
|
+
<p>It specifies a table to be searched. <tt class="docutils literal"><span class="pre">table</span></tt> must be specified.</p>
|
413
|
+
<p>If nonexistent table is specified, an error is returned.</p>
|
414
|
+
<p>Execution example:</p>
|
415
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Nonexistent
|
416
|
+
[
|
417
|
+
[
|
418
|
+
-22,
|
419
|
+
1335519593.68574,
|
420
|
+
0.000583171844482422,
|
421
|
+
"invalid table name: <Nonexistent>",
|
422
|
+
[
|
423
|
+
[
|
424
|
+
"grn_select",
|
425
|
+
"proc.c",
|
426
|
+
542
|
427
|
+
]
|
428
|
+
]
|
429
|
+
]
|
430
|
+
]
|
431
|
+
</pre></div>
|
432
|
+
</div>
|
433
|
+
</div>
|
434
|
+
</div>
|
435
|
+
<div class="section" id="search-related-parameters">
|
436
|
+
<h3>7.3.17.4.2. Search related parameters<a class="headerlink" href="#search-related-parameters" title="Permalink to this headline">¶</a></h3>
|
437
|
+
<p>There are search related parameters. Typically, <tt class="docutils literal"><span class="pre">match_columns</span></tt> and
|
438
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> parameters are used for implementing a search
|
439
|
+
box. <tt class="docutils literal"><span class="pre">filter</span></tt> parameters is used for implementing complex search
|
440
|
+
feature.</p>
|
441
|
+
<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
|
442
|
+
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>
|
443
|
+
and <tt class="docutils literal"><span class="pre">filter</span></tt> aren't specified, all records are selected.</p>
|
444
|
+
<div class="section" id="match-columns">
|
445
|
+
<h4>7.3.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>
|
446
|
+
<p>It specifies the default target column for fulltext search by
|
447
|
+
<tt class="docutils literal"><span class="pre">query</span></tt> parameter value. A target column for fulltext search can be
|
448
|
+
specified in <tt class="docutils literal"><span class="pre">query</span></tt> parameter. The difference between
|
449
|
+
<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
|
450
|
+
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>
|
451
|
+
<p>Weight is relative importance of target column. A higher weight target
|
452
|
+
column gets more hit score rather than a lower weight target column
|
453
|
+
when a record is matched by fulltext search. The default weight is 1.</p>
|
454
|
+
<p>Here is a simple <tt class="docutils literal"><span class="pre">match_columns</span></tt> usage example.</p>
|
455
|
+
<p>Execution example:</p>
|
456
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries --match_columns content --query fast --output_columns '_key, _score'
|
457
|
+
[
|
458
|
+
[
|
459
|
+
0,
|
460
|
+
1335519593.88754,
|
461
|
+
0.000384092330932617
|
462
|
+
],
|
463
|
+
[
|
464
|
+
[
|
465
|
+
[
|
466
|
+
2
|
467
|
+
],
|
468
|
+
[
|
469
|
+
[
|
470
|
+
"_key",
|
471
|
+
"ShortText"
|
472
|
+
],
|
473
|
+
[
|
474
|
+
"_score",
|
475
|
+
"Int32"
|
476
|
+
]
|
477
|
+
],
|
478
|
+
[
|
479
|
+
"Groonga",
|
480
|
+
1
|
481
|
+
],
|
482
|
+
[
|
483
|
+
"Mroonga",
|
484
|
+
2
|
485
|
+
]
|
486
|
+
]
|
487
|
+
]
|
488
|
+
]
|
489
|
+
</pre></div>
|
490
|
+
</div>
|
491
|
+
<p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">content</span></tt> means the default target column for
|
492
|
+
fulltext search is <tt class="docutils literal"><span class="pre">content</span></tt> column and its weight
|
493
|
+
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>
|
494
|
+
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
|
495
|
+
records.</p>
|
496
|
+
<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
|
497
|
+
matched counts against <tt class="docutils literal"><span class="pre">query</span></tt> parameter value. In the example,
|
498
|
+
<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
|
499
|
+
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
|
500
|
+
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
|
501
|
+
<tt class="docutils literal"><span class="pre">content</span></tt> column twice.</p>
|
502
|
+
<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
|
503
|
+
weight usage example.</p>
|
504
|
+
<p>Execution example:</p>
|
505
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries --match_columns 'content * 2' --query fast --output_columns '_key, _score'
|
506
|
+
[
|
507
|
+
[
|
508
|
+
0,
|
509
|
+
1335519594.08917,
|
510
|
+
0.0003814697265625
|
511
|
+
],
|
512
|
+
[
|
513
|
+
[
|
514
|
+
[
|
515
|
+
2
|
516
|
+
],
|
517
|
+
[
|
518
|
+
[
|
519
|
+
"_key",
|
520
|
+
"ShortText"
|
521
|
+
],
|
522
|
+
[
|
523
|
+
"_score",
|
524
|
+
"Int32"
|
525
|
+
]
|
526
|
+
],
|
527
|
+
[
|
528
|
+
"Groonga",
|
529
|
+
2
|
530
|
+
],
|
531
|
+
[
|
532
|
+
"Mroonga",
|
533
|
+
4
|
534
|
+
]
|
535
|
+
]
|
536
|
+
]
|
537
|
+
]
|
538
|
+
</pre></div>
|
539
|
+
</div>
|
540
|
+
<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
|
541
|
+
fulltext search is <tt class="docutils literal"><span class="pre">content</span></tt> column and its weight is 2.</p>
|
542
|
+
<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
|
543
|
+
weight is 2.</p>
|
544
|
+
<p>You can specify one or more columns as the default target columns for
|
545
|
+
fulltext search. If one or more columns are specified, fulltext search
|
546
|
+
is done for all columns and scores are accumulated. If one of the
|
547
|
+
columns is matched against <tt class="docutils literal"><span class="pre">query</span></tt> parameter value, the record is
|
548
|
+
treated as matched.</p>
|
549
|
+
<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>
|
550
|
+
<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
|
551
|
+
omitted, 1 is used for weight. Here is a one or more columns usage
|
552
|
+
example.</p>
|
553
|
+
<p>Execution example:</p>
|
554
|
+
<div class="highlight-none"><div class="highlight"><pre>> select Entries --match_columns '_key * 10 || content' --query groonga --output_columns '_key, _score'
|
555
|
+
[
|
556
|
+
[
|
557
|
+
0,
|
558
|
+
1335594540.29792,
|
559
|
+
0.000547885894775391
|
560
|
+
],
|
561
|
+
[
|
562
|
+
[
|
563
|
+
[
|
564
|
+
1
|
565
|
+
],
|
566
|
+
[
|
567
|
+
[
|
568
|
+
"_key",
|
569
|
+
"ShortText"
|
570
|
+
],
|
571
|
+
[
|
572
|
+
"_score",
|
573
|
+
"Int32"
|
574
|
+
]
|
575
|
+
],
|
576
|
+
[
|
577
|
+
"Groonga",
|
578
|
+
11
|
579
|
+
]
|
580
|
+
]
|
581
|
+
]
|
582
|
+
]
|
583
|
+
</pre></div>
|
584
|
+
</div>
|
585
|
+
<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
|
586
|
+
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
|
587
|
+
<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
|
588
|
+
is 1. This weight allocation means <tt class="docutils literal"><span class="pre">_key</span></tt> column value is more
|
589
|
+
important rather than <tt class="docutils literal"><span class="pre">content</span></tt> column value. In this example, title
|
590
|
+
of blog entry is more important rather thatn content of blog entry.</p>
|
591
|
+
</div>
|
592
|
+
<div class="section" id="query">
|
593
|
+
<h4>7.3.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>
|
594
|
+
<p>TODO: write short description and add example.</p>
|
595
|
+
<p>See <a class="reference internal" href="../spec/query_syntax.html"><em>Query syntax</em></a>.</p>
|
596
|
+
</div>
|
597
|
+
<div class="section" id="filter">
|
598
|
+
<h4>7.3.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>
|
599
|
+
<p>TODO: write short description and add example.</p>
|
600
|
+
<p>See <a class="reference internal" href="../spec/script_syntax.html"><em>Script Syntax</em></a>.</p>
|
601
|
+
</div>
|
602
|
+
</div>
|
603
|
+
<div class="section" id="advanced-search-parameters">
|
604
|
+
<h3>7.3.17.4.3. Advanced search parameters<a class="headerlink" href="#advanced-search-parameters" title="Permalink to this headline">¶</a></h3>
|
605
|
+
<div class="section" id="match-escalation-threshold">
|
606
|
+
<h4>7.3.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>
|
607
|
+
<p>TODO: add example.</p>
|
608
|
+
<p>It specifies threshold to determine whether search storategy
|
609
|
+
escalation is used or not. The threshold is compared against the
|
610
|
+
number of matched records. If the number of matched records is equal
|
611
|
+
to or less than the threshold, search storategy escalation is
|
612
|
+
used. See <a class="reference internal" href="../spec/search.html"><em>検索</em></a> about search storategy escalation.</p>
|
613
|
+
<p>The default threshold is 0. It means that search storategy escalation
|
614
|
+
is used only when no records are matched.</p>
|
615
|
+
<p>The default threshold can be customized by one of the followings.</p>
|
160
616
|
<blockquote>
|
161
|
-
<div><
|
162
|
-
<
|
617
|
+
<div><ul class="simple">
|
618
|
+
<li><tt class="docutils literal"><span class="pre">--with-match-escalation-threshold</span></tt> option of configure</li>
|
619
|
+
<li><tt class="docutils literal"><span class="pre">--match-escalation-threshold</span></tt> option of groogna command</li>
|
620
|
+
<li><tt class="docutils literal"><span class="pre">match-escalation-threshold</span></tt> configuration item in configuration
|
621
|
+
file</li>
|
622
|
+
</ul>
|
163
623
|
</div></blockquote>
|
164
|
-
|
165
|
-
<
|
166
|
-
<
|
624
|
+
</div>
|
625
|
+
<div class="section" id="query-expansion">
|
626
|
+
<h4>7.3.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>
|
627
|
+
<p>TODO: write in English and add example.</p>
|
628
|
+
<p>It specifies a column that is used to expand (substitute) <tt class="docutils literal"><span class="pre">query</span></tt>
|
629
|
+
parameter value.</p>
|
630
|
+
<p>query_expansionパラメータには、queryパラメータに指定された文字列を置換(拡張)する条件となるテーブル・カラムを指定します。フォーマットは「${テーブル名}.${カラム名}」となります。指定するテーブルは文字列を主キーとするハッシュ型あるいはパトリシア木型のテーブルで、一つ以上の文字列型のカラムが定義されている必要があります。(ここでは置換テーブルと呼びます。)</p>
|
631
|
+
<p>queryパラメータに指定された文字列が、指定されたテーブルの主キーと完全一致する場合、その文字列を指定されたカラム値の文字列に置換します。queryパラメータが、空白、括弧、演算子などを含む場合は、その演算子によって区切られた文字列の単位で置換が実行されます。ダブルクォート("")で括られた範囲は、その内部に空白を含んでいても一つの置換される単位と見なされます。検索文字列と置換テーブルの主キー値との比較に際して大文字小文字等を区別したくない場合には、置換テーブルを定義する際にKEY_NORMALIZEを指定します。置換後の文字列となるカラムの値には、括弧や*, ORなど、queryパラメータで利用可能な全ての演算子を指定することができます。</p>
|
632
|
+
</div>
|
633
|
+
</div>
|
634
|
+
<div class="section" id="output-related-parameters">
|
635
|
+
<h3>7.3.17.4.4. Output related parameters<a class="headerlink" href="#output-related-parameters" title="Permalink to this headline">¶</a></h3>
|
636
|
+
<div class="section" id="output-columns">
|
637
|
+
<h4>7.3.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>
|
638
|
+
<p>TODO: write in English and add example.</p>
|
639
|
+
<p>出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
|
640
|
+
<p>アスタリスク('*')を指定すると、全てのカラムが指定されたものとみなされます。または、script形式のgrn_expr文字列を指定します。 (デフォルトは、'_id, _key, *')</p>
|
641
|
+
</div>
|
642
|
+
<div class="section" id="sortby">
|
643
|
+
<h4>7.3.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>
|
644
|
+
<p>TODO: write in English and add example.</p>
|
645
|
+
<p>ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。:</p>
|
167
646
|
<div class="highlight-none"><div class="highlight"><pre>[-]カラム名1, [-]カラム名2, [-]カラム名3, ...
|
168
647
|
</pre></div>
|
169
648
|
</div>
|
170
649
|
<p>カラム名1の値でソートし、値が同一である場合はカラム名2でソート、と順次比較を行いソートします。カラム名の前に - を付加した場合は降順にソートします。付加しない場合には昇順にソートします。</p>
|
171
650
|
<p>query引数またはfilter引数を指定した場合はカラム名に'_score'を使えます。'_score'を指定することでスコアでソートすることができます。query引数もfilter引数も指定していない状態で'_score'を指定するとエラーになります。</p>
|
172
|
-
</div
|
173
|
-
<
|
174
|
-
<
|
175
|
-
<
|
176
|
-
<p
|
177
|
-
</div
|
178
|
-
<
|
179
|
-
<
|
180
|
-
<
|
181
|
-
<p
|
182
|
-
|
183
|
-
<div
|
184
|
-
<
|
185
|
-
<
|
186
|
-
<
|
187
|
-
<p
|
188
|
-
|
189
|
-
|
190
|
-
<
|
191
|
-
<
|
192
|
-
<div
|
193
|
-
<
|
194
|
-
<
|
195
|
-
<
|
196
|
-
|
197
|
-
<
|
198
|
-
<
|
199
|
-
<p
|
200
|
-
<
|
201
|
-
|
202
|
-
<
|
203
|
-
<
|
651
|
+
</div>
|
652
|
+
<div class="section" id="offset">
|
653
|
+
<h4>7.3.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>
|
654
|
+
<p>TODO: write in English and add example.</p>
|
655
|
+
<p>検索条件にマッチしたレコードのうち、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。offsetに負の値を指定した場合は、ヒットした件数 + offset によって算出される値が指定されたものとみなされます。</p>
|
656
|
+
</div>
|
657
|
+
<div class="section" id="limit">
|
658
|
+
<h4>7.3.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>
|
659
|
+
<p>TODO: write in English and add example.</p>
|
660
|
+
<p>検索条件にマッチしたレコードのうち、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、offset + limit がヒットした件数を超えない範囲でレコードが出力されます。limitに負の値を指定した場合は、ヒットした件数 + limit + 1 によって算出される値が指定されたものとみなされます。</p>
|
661
|
+
</div>
|
662
|
+
<div class="section" id="scorer">
|
663
|
+
<h4>7.3.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>
|
664
|
+
<p>TODO: write in English and add example.</p>
|
665
|
+
<p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
|
666
|
+
<p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
|
667
|
+
</div>
|
668
|
+
</div>
|
669
|
+
<div class="section" id="facet-related-parameters">
|
670
|
+
<h3>7.3.17.4.5. Facet related parameters<a class="headerlink" href="#facet-related-parameters" title="Permalink to this headline">¶</a></h3>
|
671
|
+
<div class="section" id="drilldown">
|
672
|
+
<h4>7.3.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>
|
673
|
+
<p>TODO: write in English and add example.</p>
|
674
|
+
<p>グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。</p>
|
675
|
+
</div>
|
676
|
+
<div class="section" id="drilldown-sortby">
|
677
|
+
<h4>7.3.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>
|
678
|
+
<p>TODO: write in English and add example.</p>
|
679
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。</p>
|
680
|
+
</div>
|
681
|
+
<div class="section" id="drilldown-output-columns">
|
682
|
+
<h4>7.3.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>
|
683
|
+
<p>TODO: write in English and add example.</p>
|
684
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
|
685
|
+
</div>
|
686
|
+
<div class="section" id="drilldown-offset">
|
687
|
+
<h4>7.3.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>
|
688
|
+
<p>TODO: write in English and add example.</p>
|
689
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。</p>
|
690
|
+
</div>
|
691
|
+
<div class="section" id="drilldown-limit">
|
692
|
+
<h4>7.3.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>
|
693
|
+
<p>TODO: write in English and add example.</p>
|
694
|
+
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。</p>
|
695
|
+
</div>
|
696
|
+
</div>
|
697
|
+
<div class="section" id="cache-related-parameter">
|
698
|
+
<h3>7.3.17.4.6. Cache related parameter<a class="headerlink" href="#cache-related-parameter" title="Permalink to this headline">¶</a></h3>
|
699
|
+
<div class="section" id="cache">
|
700
|
+
<h4>7.3.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>
|
701
|
+
<p>TODO: write in English and add example.</p>
|
702
|
+
<p>クエリキャッシュに関する動作を設定します。</p>
|
703
|
+
<p><tt class="docutils literal"><span class="pre">no</span></tt></p>
|
204
704
|
<blockquote>
|
205
705
|
<div>検索結果をクエリキャッシュに残しません。キャッシュして再利用される可能性が低いクエリに対して用います。キャッシュ容量は有限です。有効なキャッシュが多くヒットするために、このパラメータは有効です。</div></blockquote>
|
206
|
-
</div></blockquote>
|
207
|
-
</div></blockquote>
|
208
|
-
<p><tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt></p>
|
209
|
-
<blockquote>
|
210
|
-
<div><p>検索の挙動をエスカレーションするかどうかの閾値を設定します。デフォルト値は0です。デフォルト値は以下のいずれかの方法で設定できます。</p>
|
211
|
-
<blockquote>
|
212
|
-
<div><ul class="simple">
|
213
|
-
<li>configureの--with-match-escalation-thresholdオプション</li>
|
214
|
-
<li>groongaコマンド起動時の--match-escalation-thresholdオプション</li>
|
215
|
-
<li>設定ファイル中のmatch-escalation-threshold設定項目</li>
|
216
|
-
</ul>
|
217
|
-
</div></blockquote>
|
218
|
-
<p>クエリのヒット件数が閾値を越えない場合は <a class="reference internal" href="../spec/search.html"><em>検索</em></a> で説明している方法で検索方法をエスカレーションしてきます。</p>
|
219
|
-
</div></blockquote>
|
220
|
-
<p><tt class="docutils literal"><span class="pre">query_expansion</span></tt></p>
|
221
|
-
<blockquote>
|
222
|
-
<div><p>query_expansionパラメータには、queryパラメータに指定された文字列を置換(拡張)する条件となるテーブル・カラムを指定します。フォーマットは「${テーブル名}.${カラム名}」となります。指定するテーブルは文字列を主キーとするハッシュ型あるいはパトリシア木型のテーブルで、一つ以上の文字列型のカラムが定義されている必要があります。(ここでは置換テーブルと呼びます。)</p>
|
223
|
-
<p>queryパラメータに指定された文字列が、指定されたテーブルの主キーと完全一致する場合、その文字列を指定されたカラム値の文字列に置換します。queryパラメータが、空白、括弧、演算子などを含む場合は、その演算子によって区切られた文字列の単位で置換が実行されます。ダブルクォート("")で括られた範囲は、その内部に空白を含んでいても一つの置換される単位と見なされます。検索文字列と置換テーブルの主キー値との比較に際して大文字小文字等を区別したくない場合には、置換テーブルを定義する際にKEY_NORMALIZEを指定します。置換後の文字列となるカラムの値には、括弧や*, ORなど、queryパラメータで利用可能な全ての演算子を指定することができます。</p>
|
224
|
-
</div></blockquote>
|
225
706
|
</div>
|
226
707
|
</div>
|
227
|
-
|
228
|
-
<
|
708
|
+
</div>
|
709
|
+
<div class="section" id="id1">
|
710
|
+
<h2>7.3.17.5. 返値<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
711
|
+
<p>TODO: write in English and add example.</p>
|
229
712
|
<p>以下のようなjson形式で値が返却されます。</p>
|
230
713
|
<div class="highlight-none"><div class="highlight"><pre>[[リターンコード, 処理開始時間, 処理時間], [検索結果, ドリルダウン結果]]
|
231
714
|
</pre></div>
|
@@ -279,18 +762,14 @@
|
|
279
762
|
<div>drilldown_output_columns, drilldown_offset, drilldown_limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
|
280
763
|
</div></blockquote>
|
281
764
|
</div>
|
282
|
-
<div class="section" id="
|
283
|
-
<h2>7.3.17.6.
|
284
|
-
<
|
285
|
-
<div
|
286
|
-
|
287
|
-
|
288
|
-
</
|
289
|
-
</div>
|
290
|
-
</div>
|
291
|
-
<div class="section" id="id9">
|
292
|
-
<h2>7.3.17.7. 関連項目<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h2>
|
293
|
-
<p><a class="reference internal" href="../expr.html"><em>grn_expr</em></a></p>
|
765
|
+
<div class="section" id="see-also">
|
766
|
+
<h2>7.3.17.6. See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
|
767
|
+
<blockquote>
|
768
|
+
<div><ul class="simple">
|
769
|
+
<li><a class="reference internal" href="../spec/query_syntax.html"><em>Query syntax</em></a></li>
|
770
|
+
<li><a class="reference internal" href="../spec/script_syntax.html"><em>Script Syntax</em></a></li>
|
771
|
+
</ul>
|
772
|
+
</div></blockquote>
|
294
773
|
</div>
|
295
774
|
</div>
|
296
775
|
|
@@ -303,17 +782,59 @@
|
|
303
782
|
<h3><a href="../index.html">Table Of Contents</a></h3>
|
304
783
|
<ul>
|
305
784
|
<li><a class="reference internal" href="#">7.3.17. select</a><ul>
|
306
|
-
<li><a class="reference internal" href="#
|
307
|
-
<li><a class="reference internal" href="#
|
308
|
-
<li><a class="reference internal" href="#
|
309
|
-
<li><a class="reference internal" href="#
|
310
|
-
<li><a class="reference internal" href="#
|
311
|
-
<li><a class="reference internal" href="#
|
785
|
+
<li><a class="reference internal" href="#summary">7.3.17.1. Summary</a></li>
|
786
|
+
<li><a class="reference internal" href="#syntax">7.3.17.2. Syntax</a></li>
|
787
|
+
<li><a class="reference internal" href="#usage">7.3.17.3. Usage</a><ul>
|
788
|
+
<li><a class="reference internal" href="#simple-usage">7.3.17.3.1. Simple usage</a></li>
|
789
|
+
<li><a class="reference internal" href="#search-conditions">7.3.17.3.2. Search conditions</a><ul>
|
790
|
+
<li><a class="reference internal" href="#search-condition-query">7.3.17.3.2.1. Search condition: <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
|
791
|
+
<li><a class="reference internal" href="#search-condition-filter">7.3.17.3.2.2. Search condition: <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
|
792
|
+
</ul>
|
793
|
+
</li>
|
794
|
+
<li><a class="reference internal" href="#paging">7.3.17.3.3. Paging</a></li>
|
795
|
+
<li><a class="reference internal" href="#the-total-number-of-records">7.3.17.3.4. The total number of records</a></li>
|
796
|
+
</ul>
|
797
|
+
</li>
|
798
|
+
<li><a class="reference internal" href="#parameters">7.3.17.4. Parameters</a><ul>
|
799
|
+
<li><a class="reference internal" href="#required-parameter">7.3.17.4.1. Required parameter</a><ul>
|
800
|
+
<li><a class="reference internal" href="#table">7.3.17.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt></a></li>
|
801
|
+
</ul>
|
802
|
+
</li>
|
803
|
+
<li><a class="reference internal" href="#search-related-parameters">7.3.17.4.2. Search related parameters</a><ul>
|
804
|
+
<li><a class="reference internal" href="#match-columns">7.3.17.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt></a></li>
|
805
|
+
<li><a class="reference internal" href="#query">7.3.17.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
|
806
|
+
<li><a class="reference internal" href="#filter">7.3.17.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
|
807
|
+
</ul>
|
808
|
+
</li>
|
809
|
+
<li><a class="reference internal" href="#advanced-search-parameters">7.3.17.4.3. Advanced search parameters</a><ul>
|
810
|
+
<li><a class="reference internal" href="#match-escalation-threshold">7.3.17.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt></a></li>
|
811
|
+
<li><a class="reference internal" href="#query-expansion">7.3.17.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt></a></li>
|
812
|
+
</ul>
|
813
|
+
</li>
|
814
|
+
<li><a class="reference internal" href="#output-related-parameters">7.3.17.4.4. Output related parameters</a><ul>
|
815
|
+
<li><a class="reference internal" href="#output-columns">7.3.17.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt></a></li>
|
816
|
+
<li><a class="reference internal" href="#sortby">7.3.17.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt></a></li>
|
817
|
+
<li><a class="reference internal" href="#offset">7.3.17.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt></a></li>
|
818
|
+
<li><a class="reference internal" href="#limit">7.3.17.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt></a></li>
|
819
|
+
<li><a class="reference internal" href="#scorer">7.3.17.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt></a></li>
|
820
|
+
</ul>
|
821
|
+
</li>
|
822
|
+
<li><a class="reference internal" href="#facet-related-parameters">7.3.17.4.5. Facet related parameters</a><ul>
|
823
|
+
<li><a class="reference internal" href="#drilldown">7.3.17.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt></a></li>
|
824
|
+
<li><a class="reference internal" href="#drilldown-sortby">7.3.17.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt></a></li>
|
825
|
+
<li><a class="reference internal" href="#drilldown-output-columns">7.3.17.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt></a></li>
|
826
|
+
<li><a class="reference internal" href="#drilldown-offset">7.3.17.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt></a></li>
|
827
|
+
<li><a class="reference internal" href="#drilldown-limit">7.3.17.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt></a></li>
|
828
|
+
</ul>
|
829
|
+
</li>
|
830
|
+
<li><a class="reference internal" href="#cache-related-parameter">7.3.17.4.6. Cache related parameter</a><ul>
|
831
|
+
<li><a class="reference internal" href="#cache">7.3.17.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt></a></li>
|
832
|
+
</ul>
|
833
|
+
</li>
|
312
834
|
</ul>
|
313
835
|
</li>
|
314
|
-
<li><a class="reference internal" href="#
|
315
|
-
<li><a class="reference internal" href="#
|
316
|
-
<li><a class="reference internal" href="#id9">7.3.17.7. 関連項目</a></li>
|
836
|
+
<li><a class="reference internal" href="#id1">7.3.17.5. 返値</a></li>
|
837
|
+
<li><a class="reference internal" href="#see-also">7.3.17.6. See also</a></li>
|
317
838
|
</ul>
|
318
839
|
</li>
|
319
840
|
</ul>
|
@@ -358,7 +879,7 @@
|
|
358
879
|
<li class="right" >
|
359
880
|
<a href="quit.html" title="7.3.16. quit"
|
360
881
|
>previous</a> |</li>
|
361
|
-
<li><a href="../index.html">groonga v2.0.
|
882
|
+
<li><a href="../index.html">groonga v2.0.2 documentation</a> »</li>
|
362
883
|
<li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li>
|
363
884
|
<li><a href="../commands.html" >7.3. コマンド</a> »</li>
|
364
885
|
</ul>
|