rroonga 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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>4. Tutorial — groonga v2.0.
|
12
|
+
<title>4. Tutorial — 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="next" title="4.1. Basic operations" href="tutorial/introduction.html" />
|
32
32
|
<link rel="prev" title="3. Community" href="community.html" />
|
33
33
|
</head>
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="community.html" title="3. Community"
|
63
63
|
accesskey="P">previous</a> |</li>
|
64
|
-
<li><a href="index.html">groonga v2.0.
|
64
|
+
<li><a href="index.html">groonga v2.0.2 documentation</a> »</li>
|
65
65
|
</ul>
|
66
66
|
</div>
|
67
67
|
|
@@ -197,7 +197,7 @@
|
|
197
197
|
<li class="right" >
|
198
198
|
<a href="community.html" title="3. Community"
|
199
199
|
>previous</a> |</li>
|
200
|
-
<li><a href="index.html">groonga v2.0.
|
200
|
+
<li><a href="index.html">groonga v2.0.2 documentation</a> »</li>
|
201
201
|
</ul>
|
202
202
|
</div>
|
203
203
|
<div class="footer">
|
@@ -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.4. データ型 — groonga v2.0.
|
12
|
+
<title>7.4. データ型 — 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. リファレンスマニュアル" href="reference.html" />
|
32
32
|
<link rel="next" title="7.5. 疑似カラム (pseudo_column)" href="pseudo_column.html" />
|
33
33
|
<link rel="prev" title="7.3.24. view_add" href="commands/view_add.html" />
|
@@ -62,7 +62,7 @@
|
|
62
62
|
<li class="right" >
|
63
63
|
<a href="commands/view_add.html" title="7.3.24. view_add"
|
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" accesskey="U">7. リファレンスマニュアル</a> »</li>
|
67
67
|
</ul>
|
68
68
|
</div>
|
@@ -235,7 +235,7 @@
|
|
235
235
|
<li class="right" >
|
236
236
|
<a href="commands/view_add.html" title="7.3.24. view_add"
|
237
237
|
>previous</a> |</li>
|
238
|
-
<li><a href="index.html">groonga v2.0.
|
238
|
+
<li><a href="index.html">groonga v2.0.2 documentation</a> »</li>
|
239
239
|
<li><a href="reference.html" >7. リファレンスマニュアル</a> »</li>
|
240
240
|
</ul>
|
241
241
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# Sphinx build info version 1
|
2
2
|
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
3
|
-
config:
|
3
|
+
config: 770c721fe4d86184fedd500e281f7258
|
4
4
|
tags: fbb0d17656682115ca4d033fb2f83ba1
|
@@ -2,190 +2,438 @@
|
|
2
2
|
|
3
3
|
.. highlightlang:: none
|
4
4
|
|
5
|
+
.. groonga-command
|
6
|
+
.. database: commands_select
|
7
|
+
|
5
8
|
select
|
6
9
|
======
|
7
10
|
|
8
|
-
|
9
|
-
|
11
|
+
Summary
|
12
|
+
-------
|
13
|
+
|
14
|
+
``select`` searches records that are matched to specified conditions
|
15
|
+
from a table and then outputs them.
|
16
|
+
|
17
|
+
``select`` is the most important command in groonga. You need to
|
18
|
+
understand ``select`` to use the full power of groonga.
|
19
|
+
|
20
|
+
Syntax
|
21
|
+
------
|
22
|
+
|
23
|
+
``select`` has many parameters. The required parameter is only
|
24
|
+
``table`` and others are optional::
|
25
|
+
|
26
|
+
select table
|
27
|
+
[match_columns=null]
|
28
|
+
[query=null]
|
29
|
+
[filter=null]
|
30
|
+
[scorer=null]
|
31
|
+
[sortby=null]
|
32
|
+
[output_columns="_id, _key, *"]
|
33
|
+
[offset=0]
|
34
|
+
[limit=10]
|
35
|
+
[drilldown=null]
|
36
|
+
[drilldown_sortby=null]
|
37
|
+
[drilldown_output_columns=null]
|
38
|
+
[drilldown_offset=0]
|
39
|
+
[drilldown_limit=10]
|
40
|
+
[cache=yes]
|
41
|
+
[match_escalation_threshold=0]
|
42
|
+
[query_expansion=null]
|
43
|
+
|
44
|
+
Usage
|
45
|
+
-----
|
46
|
+
|
47
|
+
Let's learn about ``select`` usage with examples. This section shows
|
48
|
+
many popular usages.
|
49
|
+
|
50
|
+
Here are a schema definition and sample data to show usage.
|
51
|
+
|
52
|
+
.. groonga-command
|
53
|
+
.. include:: ../example/commands/select/usage_setup.log
|
54
|
+
.. table_create Entries TABLE_HASH_KEY ShortText
|
55
|
+
.. column_create Entries content COLUMN_SCALAR Text
|
56
|
+
.. table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
|
57
|
+
.. column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
58
|
+
.. column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
|
59
|
+
.. load --table Entries
|
60
|
+
.. [
|
61
|
+
.. {"_key": "The first post!", "content": "Welcome! This is my first post!"},
|
62
|
+
.. {"_key": "Groonga", "content": "I started to use groonga. It's very fast!"}
|
63
|
+
.. {"_key": "Mroonga", "content": "I also started to use mroonga. It's also very fast! Really fast!"}
|
64
|
+
.. ]
|
65
|
+
|
66
|
+
There is a table, ``Entries``, for blog entries. An entry has title
|
67
|
+
and content. Title is key of ``Entries``. Content is value of
|
68
|
+
``Entries.content`` column.
|
69
|
+
|
70
|
+
``Entries._key`` column and ``Entries.content`` column are indexed
|
71
|
+
using ``TokenBigram`` tokenizer. So both ``Entries._key`` and
|
72
|
+
``Entries.content`` are fulltext search ready.
|
73
|
+
|
74
|
+
OK. The schema and data for examples are ready.
|
75
|
+
|
76
|
+
Simple usage
|
77
|
+
^^^^^^^^^^^^
|
78
|
+
|
79
|
+
Here is the most simple usage with the above shema and data. It outputs
|
80
|
+
all records in ``Entries`` table.
|
81
|
+
|
82
|
+
.. groonga-command
|
83
|
+
.. include:: ../example/commands/select/simple_usage.log
|
84
|
+
.. select Entries
|
85
|
+
|
86
|
+
Why does the command output all records? There are two reasons. The
|
87
|
+
first reason is that the command doesn't specify any search
|
88
|
+
conditions. No search condition means all records are matched. The
|
89
|
+
second reason is that the number of all records is 3. ``select``
|
90
|
+
command outputs 10 records at a maximum by default. There are only 3
|
91
|
+
records. It is less than 10. So the command outputs all records.
|
92
|
+
|
93
|
+
Search conditions
|
94
|
+
^^^^^^^^^^^^^^^^^
|
95
|
+
|
96
|
+
Search conditions are specified by ``query`` or ``filter``. You can
|
97
|
+
also specify both ``query`` and ``filter``. It means that selected
|
98
|
+
records must be matched against both ``query`` and ``filter``.
|
99
|
+
|
100
|
+
Search condition: ``query``
|
101
|
+
"""""""""""""""""""""""""""
|
102
|
+
|
103
|
+
``query`` is designed for search box in Web page. Imagine a search box
|
104
|
+
in google.com. You specify search conditions for ``query`` as space
|
105
|
+
separated keywords. For example, ``search engine`` means a matched
|
106
|
+
record should contain two words, ``search`` and ``engine``.
|
107
|
+
|
108
|
+
Normally, ``query`` parameter is used for specifying fulltext search
|
109
|
+
conditions. It can be used for non fulltext search conditions but
|
110
|
+
``filter`` is used for the propose.
|
111
|
+
|
112
|
+
``query`` parameter is used with ``match_columns`` parameter when
|
113
|
+
``query`` parameter is used for specifying fulltext search
|
114
|
+
conditions. ``match_columns`` specifies which columnes and indexes are
|
115
|
+
matched against ``query``.
|
116
|
+
|
117
|
+
Here is a simple ``query`` usage example.
|
118
|
+
|
119
|
+
.. groonga-command
|
120
|
+
.. include:: ../example/commands/select/simple_query.log
|
121
|
+
.. select Entries --match_columns content --query fast
|
122
|
+
|
123
|
+
The ``select`` command searches records that contain a word ``fast``
|
124
|
+
in ``content`` column value from ``Entries`` table.
|
125
|
+
|
126
|
+
``query`` has query syntax but its deatils aren't described here. See
|
127
|
+
:doc:`/spec/query_syntax` for datails.
|
128
|
+
|
129
|
+
Search condition: ``filter``
|
130
|
+
""""""""""""""""""""""""""""
|
131
|
+
|
132
|
+
``filter`` is designed for complex search conditions. You specify
|
133
|
+
search conditions for ``filter`` as ECMAScript like syntax.
|
134
|
+
|
135
|
+
Here is a simple ``filter`` usage example.
|
136
|
+
|
137
|
+
.. groonga-command
|
138
|
+
.. include:: ../example/commands/select/simple_filter.log
|
139
|
+
.. select Entries --filter 'content @ "fast" && _key == "Groonga"'
|
10
140
|
|
11
|
-
select
|
141
|
+
The ``select`` command searches records that contain a word ``fast``
|
142
|
+
in ``content`` column value and has ``Groonga`` as ``_key`` from
|
143
|
+
``Entries`` table. There are three operators in the command, ``@``,
|
144
|
+
``&&`` and ``==``. ``@`` is fulltext search operator. ``&&`` and
|
145
|
+
``==`` are the same as ECMAScript. ``&&`` is logical AND operator and
|
146
|
+
``==`` is equality operator.
|
12
147
|
|
13
|
-
|
14
|
-
|
15
|
-
|
148
|
+
``filter`` has more operators and syntax like grouping by ``(...)``
|
149
|
+
its deatils aren't described here. See :doc:`/spec/script_syntax` for
|
150
|
+
datails.
|
16
151
|
|
17
|
-
|
18
|
-
|
19
|
-
[drilldown_offset [drilldown_limit [cache
|
20
|
-
[match_escalation_threshold [query_expansion]]]]]]]]]]]]]]]]
|
152
|
+
Paging
|
153
|
+
^^^^^^
|
21
154
|
|
22
|
-
|
23
|
-
|
155
|
+
You can specify range of outputted records by ``offset`` and ``limit``.
|
156
|
+
Here is an example to output only the 2nd record.
|
24
157
|
|
25
|
-
groonga
|
158
|
+
.. groonga-command
|
159
|
+
.. include:: ../example/commands/select/paging.log
|
160
|
+
.. select Entries --offset 1 --limit 1
|
26
161
|
|
27
|
-
|
162
|
+
``offset`` is zero-origin. ``--offset 1`` means output range is
|
163
|
+
started from the 2nd record.
|
28
164
|
|
29
|
-
|
30
|
-
|
165
|
+
``limit`` specifies the max number of output records. ``--limit 1``
|
166
|
+
means the number of output records is 1 at a maximium. If no records
|
167
|
+
are matched, ``select`` command outputs no records.
|
31
168
|
|
32
|
-
|
169
|
+
The total number of records
|
170
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
33
171
|
|
34
|
-
|
172
|
+
You can use ``--limit 0`` to retrieve the total number of recrods
|
173
|
+
without any contents of records.
|
35
174
|
|
36
|
-
|
175
|
+
.. groonga-command
|
176
|
+
.. include:: ../example/commands/select/no_limit.log
|
177
|
+
.. select Entries --limit 0
|
37
178
|
|
38
|
-
|
179
|
+
``--limit 0`` is also useful for retrieving only the number of matched
|
180
|
+
records.
|
39
181
|
|
40
|
-
|
182
|
+
Parameters
|
183
|
+
----------
|
41
184
|
|
42
|
-
|
185
|
+
This section describes all parameters. Parameters are categorized.
|
43
186
|
|
44
|
-
|
187
|
+
Required parameter
|
188
|
+
^^^^^^^^^^^^^^^^^^
|
45
189
|
|
46
|
-
|
190
|
+
There is a required parameter, ``table``.
|
47
191
|
|
48
|
-
|
192
|
+
``table``
|
193
|
+
"""""""""
|
49
194
|
|
50
|
-
|
195
|
+
It specifies a table to be searched. ``table`` must be specified.
|
51
196
|
|
52
|
-
|
197
|
+
If nonexistent table is specified, an error is returned.
|
53
198
|
|
54
|
-
|
199
|
+
.. groonga-command
|
200
|
+
.. include:: ../example/commands/select/table_nonexistent.log
|
201
|
+
.. select Nonexistent
|
55
202
|
|
56
|
-
|
57
|
-
|
203
|
+
Search related parameters
|
204
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
58
205
|
|
59
|
-
|
206
|
+
There are search related parameters. Typically, ``match_columns`` and
|
207
|
+
``query`` parameters are used for implementing a search
|
208
|
+
box. ``filter`` parameters is used for implementing complex search
|
209
|
+
feature.
|
60
210
|
|
61
|
-
|
62
|
-
|
211
|
+
If both ``query`` and ``filter`` are specified, selected records must
|
212
|
+
be matched against both ``query`` and ``filter``. If both ``query``
|
213
|
+
and ``filter`` aren't specified, all records are selected.
|
63
214
|
|
64
|
-
|
65
|
-
|
215
|
+
``match_columns``
|
216
|
+
"""""""""""""""""
|
217
|
+
|
218
|
+
It specifies the default target column for fulltext search by
|
219
|
+
``query`` parameter value. A target column for fulltext search can be
|
220
|
+
specified in ``query`` parameter. The difference between
|
221
|
+
``match_columns`` and ``query`` is whether weight is supported or
|
222
|
+
not. ``match_columns`` supports weight but ``query`` doesn't.
|
223
|
+
|
224
|
+
Weight is relative importance of target column. A higher weight target
|
225
|
+
column gets more hit score rather than a lower weight target column
|
226
|
+
when a record is matched by fulltext search. The default weight is 1.
|
227
|
+
|
228
|
+
Here is a simple ``match_columns`` usage example.
|
229
|
+
|
230
|
+
.. groonga-command
|
231
|
+
.. include:: ../example/commands/select/match_columns_simple.log
|
232
|
+
.. select Entries --match_columns content --query fast --output_columns '_key, _score'
|
233
|
+
|
234
|
+
``--match_columns content`` means the default target column for
|
235
|
+
fulltext search is ``content`` column and its weight
|
236
|
+
is 1. ``--output_columns '_key, _score'`` means that the ``select``
|
237
|
+
command outputs ``_key`` value and ``_score`` value for matched
|
238
|
+
records.
|
239
|
+
|
240
|
+
Pay attention to ``_score`` value. ``_score`` value is the number of
|
241
|
+
matched counts against ``query`` parameter value. In the example,
|
242
|
+
``query`` parameter value is ``fast``. The fact that ``_score`` value
|
243
|
+
is 1 means that ``fast`` appers in ``content`` column only once. The
|
244
|
+
fact that ``_score`` value is 2 means that ``fast`` appears in
|
245
|
+
``content`` column twice.
|
246
|
+
|
247
|
+
To specify weight, ``column * weight`` syntax is used. Here is a
|
248
|
+
weight usage example.
|
249
|
+
|
250
|
+
.. groonga-command
|
251
|
+
.. include:: ../example/commands/select/match_columns_weight.log
|
252
|
+
.. select Entries --match_columns 'content * 2' --query fast --output_columns '_key, _score'
|
253
|
+
|
254
|
+
``--match_columns 'content * 2'`` means the default target column for
|
255
|
+
fulltext search is ``content`` column and its weight is 2.
|
256
|
+
|
257
|
+
Pay attention to ``_score`` value. ``_score`` value is doubled because
|
258
|
+
weight is 2.
|
259
|
+
|
260
|
+
You can specify one or more columns as the default target columns for
|
261
|
+
fulltext search. If one or more columns are specified, fulltext search
|
262
|
+
is done for all columns and scores are accumulated. If one of the
|
263
|
+
columns is matched against ``query`` parameter value, the record is
|
264
|
+
treated as matched.
|
265
|
+
|
266
|
+
To specify one or more columns, ``column1 * weight1 || column2 *
|
267
|
+
weight2 || ...`` syntax is used. ``* weight`` can be omitted. If it is
|
268
|
+
omitted, 1 is used for weight. Here is a one or more columns usage
|
269
|
+
example.
|
270
|
+
|
271
|
+
.. groonga-command
|
272
|
+
.. include:: ../example/commands/select/match_columns_some_columns.log
|
273
|
+
.. select Entries --match_columns '_key * 10 || content' --query groonga --output_columns '_key, _score'
|
274
|
+
|
275
|
+
``--match_columns '_key * 10 || content'`` means the default target
|
276
|
+
columns for fulltext search are ``_key`` and ``content`` columns and
|
277
|
+
``_key`` column's weight is 10 and ``content`` column's weight
|
278
|
+
is 1. This weight allocation means ``_key`` column value is more
|
279
|
+
important rather than ``content`` column value. In this example, title
|
280
|
+
of blog entry is more important rather thatn content of blog entry.
|
66
281
|
|
67
|
-
|
68
|
-
|
282
|
+
``query``
|
283
|
+
"""""""""
|
69
284
|
|
70
|
-
|
71
|
-
不一致条件(カラム値 != 値)
|
285
|
+
TODO: write short description and add example.
|
72
286
|
|
73
|
-
|
74
|
-
比較条件(カラム値 < 値)
|
287
|
+
See :doc:`/spec/query_syntax`.
|
75
288
|
|
76
|
-
|
77
|
-
|
289
|
+
``filter``
|
290
|
+
""""""""""
|
78
291
|
|
79
|
-
|
80
|
-
比較条件(カラム値 <= 値)
|
292
|
+
TODO: write short description and add example.
|
81
293
|
|
82
|
-
|
83
|
-
比較条件(カラム値 >= 値)
|
294
|
+
See :doc:`/spec/script_syntax`.
|
84
295
|
|
85
|
-
|
86
|
-
|
296
|
+
Advanced search parameters
|
297
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
87
298
|
|
88
|
-
|
89
|
-
|
299
|
+
``match_escalation_threshold``
|
300
|
+
""""""""""""""""""""""""""""""
|
90
301
|
|
91
|
-
|
302
|
+
TODO: add example.
|
92
303
|
|
93
|
-
|
94
|
-
|
304
|
+
It specifies threshold to determine whether search storategy
|
305
|
+
escalation is used or not. The threshold is compared against the
|
306
|
+
number of matched records. If the number of matched records is equal
|
307
|
+
to or less than the threshold, search storategy escalation is
|
308
|
+
used. See :doc:`/spec/search` about search storategy escalation.
|
95
309
|
|
96
|
-
|
97
|
-
|
310
|
+
The default threshold is 0. It means that search storategy escalation
|
311
|
+
is used only when no records are matched.
|
98
312
|
|
99
|
-
|
100
|
-
aにマッチし、bにはマッチしない
|
313
|
+
The default threshold can be customized by one of the followings.
|
101
314
|
|
102
|
-
|
103
|
-
|
315
|
+
* ``--with-match-escalation-threshold`` option of configure
|
316
|
+
* ``--match-escalation-threshold`` option of groogna command
|
317
|
+
* ``match-escalation-threshold`` configuration item in configuration
|
318
|
+
file
|
104
319
|
|
320
|
+
``query_expansion``
|
321
|
+
"""""""""""""""""""
|
105
322
|
|
106
|
-
|
323
|
+
TODO: write in English and add example.
|
107
324
|
|
108
|
-
|
325
|
+
It specifies a column that is used to expand (substitute) ``query``
|
326
|
+
parameter value.
|
109
327
|
|
110
|
-
|
328
|
+
query_expansionパラメータには、queryパラメータに指定された文字列を置換(拡張)する条件となるテーブル・カラムを指定します。フォーマットは「${テーブル名}.${カラム名}」となります。指定するテーブルは文字列を主キーとするハッシュ型あるいはパトリシア木型のテーブルで、一つ以上の文字列型のカラムが定義されている必要があります。(ここでは置換テーブルと呼びます。)
|
111
329
|
|
112
|
-
|
330
|
+
queryパラメータに指定された文字列が、指定されたテーブルの主キーと完全一致する場合、その文字列を指定されたカラム値の文字列に置換します。queryパラメータが、空白、括弧、演算子などを含む場合は、その演算子によって区切られた文字列の単位で置換が実行されます。ダブルクォート("")で括られた範囲は、その内部に空白を含んでいても一つの置換される単位と見なされます。検索文字列と置換テーブルの主キー値との比較に際して大文字小文字等を区別したくない場合には、置換テーブルを定義する際にKEY_NORMALIZEを指定します。置換後の文字列となるカラムの値には、括弧や*, ORなど、queryパラメータで利用可能な全ての演算子を指定することができます。
|
113
331
|
|
114
|
-
|
332
|
+
Output related parameters
|
333
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
115
334
|
|
116
|
-
|
335
|
+
``output_columns``
|
336
|
+
""""""""""""""""""
|
117
337
|
|
118
|
-
|
338
|
+
TODO: write in English and add example.
|
339
|
+
|
340
|
+
出力するカラム名のリストをカンマ(',')区切りで指定します。
|
119
341
|
|
120
|
-
|
342
|
+
アスタリスク('*')を指定すると、全てのカラムが指定されたものとみなされます。または、script形式のgrn_expr文字列を指定します。 (デフォルトは、'_id, _key, \*')
|
121
343
|
|
122
|
-
|
344
|
+
``sortby``
|
345
|
+
""""""""""
|
123
346
|
|
124
|
-
|
347
|
+
TODO: write in English and add example.
|
125
348
|
|
126
|
-
|
349
|
+
ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。::
|
127
350
|
|
128
|
-
|
351
|
+
[-]カラム名1, [-]カラム名2, [-]カラム名3, ...
|
129
352
|
|
130
|
-
|
353
|
+
カラム名1の値でソートし、値が同一である場合はカラム名2でソート、と順次比較を行いソートします。カラム名の前に - を付加した場合は降順にソートします。付加しない場合には昇順にソートします。
|
131
354
|
|
132
|
-
|
355
|
+
query引数またはfilter引数を指定した場合はカラム名に'_score'を使えます。'_score'を指定することでスコアでソートすることができます。query引数もfilter引数も指定していない状態で'_score'を指定するとエラーになります。
|
133
356
|
|
134
357
|
``offset``
|
358
|
+
""""""""""
|
359
|
+
|
360
|
+
TODO: write in English and add example.
|
135
361
|
|
136
|
-
|
362
|
+
検索条件にマッチしたレコードのうち、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。offsetに負の値を指定した場合は、ヒットした件数 + offset によって算出される値が指定されたものとみなされます。
|
137
363
|
|
138
364
|
``limit``
|
365
|
+
"""""""""
|
139
366
|
|
140
|
-
|
367
|
+
TODO: write in English and add example.
|
368
|
+
|
369
|
+
検索条件にマッチしたレコードのうち、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、offset + limit がヒットした件数を超えない範囲でレコードが出力されます。limitに負の値を指定した場合は、ヒットした件数 + limit + 1 によって算出される値が指定されたものとみなされます。
|
370
|
+
|
371
|
+
``scorer``
|
372
|
+
""""""""""
|
373
|
+
|
374
|
+
TODO: write in English and add example.
|
375
|
+
|
376
|
+
検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。
|
377
|
+
|
378
|
+
scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。
|
379
|
+
|
380
|
+
Facet related parameters
|
381
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
141
382
|
|
142
383
|
``drilldown``
|
384
|
+
"""""""""""""
|
143
385
|
|
144
|
-
|
386
|
+
TODO: write in English and add example.
|
145
387
|
|
146
|
-
|
388
|
+
グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。
|
147
389
|
|
148
|
-
|
390
|
+
``drilldown_sortby``
|
391
|
+
""""""""""""""""""""
|
149
392
|
|
150
|
-
|
393
|
+
TODO: write in English and add example.
|
151
394
|
|
152
|
-
|
395
|
+
drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。
|
153
396
|
|
154
|
-
``
|
397
|
+
``drilldown_output_columns``
|
398
|
+
""""""""""""""""""""""""""""
|
155
399
|
|
156
|
-
|
400
|
+
TODO: write in English and add example.
|
157
401
|
|
158
|
-
|
402
|
+
drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。
|
159
403
|
|
160
|
-
|
404
|
+
``drilldown_offset``
|
405
|
+
""""""""""""""""""""
|
161
406
|
|
162
|
-
|
407
|
+
TODO: write in English and add example.
|
163
408
|
|
164
|
-
|
409
|
+
drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。
|
165
410
|
|
166
|
-
|
411
|
+
``drilldown_limit``
|
412
|
+
"""""""""""""""""""
|
167
413
|
|
168
|
-
|
414
|
+
TODO: write in English and add example.
|
169
415
|
|
170
|
-
|
416
|
+
drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。
|
171
417
|
|
172
|
-
|
418
|
+
Cache related parameter
|
419
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
173
420
|
|
174
|
-
|
175
|
-
|
176
|
-
* 設定ファイル中のmatch-escalation-threshold設定項目
|
421
|
+
``cache``
|
422
|
+
"""""""""
|
177
423
|
|
178
|
-
|
424
|
+
TODO: write in English and add example.
|
179
425
|
|
180
|
-
|
426
|
+
クエリキャッシュに関する動作を設定します。
|
181
427
|
|
182
|
-
|
428
|
+
``no``
|
183
429
|
|
184
|
-
|
430
|
+
検索結果をクエリキャッシュに残しません。キャッシュして再利用される可能性が低いクエリに対して用います。キャッシュ容量は有限です。有効なキャッシュが多くヒットするために、このパラメータは有効です。
|
185
431
|
|
186
432
|
返値
|
187
433
|
----
|
188
434
|
|
435
|
+
TODO: write in English and add example.
|
436
|
+
|
189
437
|
以下のようなjson形式で値が返却されます。
|
190
438
|
|
191
439
|
::
|
@@ -249,16 +497,8 @@ a - b
|
|
249
497
|
|
250
498
|
drilldown_output_columns, drilldown_offset, drilldown_limitによって指定された条件に従って各レコードの値が出力されます。
|
251
499
|
|
252
|
-
|
253
|
-
--
|
254
|
-
|
255
|
-
テーブルEntryの全レコード・全カラムの値を出力します。::
|
256
|
-
|
257
|
-
select Entry
|
258
|
-
|
259
|
-
[[[2],[["_id", "UInt32"],["_key","ShortText"],["body","ShortText"]],[1,"abandon","放棄する"],[2,"abbreviate","短縮する"]]]
|
260
|
-
|
261
|
-
関連項目
|
500
|
+
See also
|
262
501
|
--------
|
263
502
|
|
264
|
-
:doc
|
503
|
+
* :doc:`/spec/query_syntax`
|
504
|
+
* :doc:`/spec/script_syntax`
|