rroonga 1.2.5-x86-mingw32 → 1.2.7-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +30 -0
- data/Rakefile +24 -285
- data/ext/groonga/extconf.rb +4 -2
- data/ext/groonga/rb-grn-array.c +5 -4
- data/ext/groonga/rb-grn-context.c +7 -22
- data/ext/groonga/rb-grn-database.c +42 -1
- data/ext/groonga/rb-grn-index-column.c +5 -0
- data/ext/groonga/rb-grn-object.c +58 -26
- data/ext/groonga/rb-grn-patricia-trie.c +2 -1
- data/ext/groonga/rb-grn-record.c +11 -1
- data/ext/groonga/rb-grn-snippet.c +44 -1
- data/ext/groonga/rb-grn-table-key-support.c +21 -10
- data/ext/groonga/rb-grn-utils.c +3 -1
- data/ext/groonga/rb-grn-variable-size-column.c +47 -1
- data/ext/groonga/rb-grn.h +4 -1
- data/extconf.rb +1 -0
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/dumper.rb +3 -3
- data/lib/groonga/pagination.rb +1 -1
- data/lib/groonga/record.rb +10 -0
- data/rroonga-build.rb +1 -1
- data/test/test-accessor.rb +4 -0
- data/test/test-array.rb +9 -1
- data/test/test-database.rb +16 -0
- data/test/test-expression.rb +2 -0
- data/test/test-hash.rb +11 -2
- data/test/test-patricia-trie.rb +10 -1
- data/test/test-table-select.rb +31 -17
- data/test/test-type.rb +3 -3
- data/test/test-variable-size-column.rb +8 -1
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga.h +20 -4
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +207 -35
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/{http.txt → groonga-http.txt} +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +14 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/log.txt +214 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +35 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +195 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/correction.txt +148 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +94 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/suggestion.txt +115 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/tutorial.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +22 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +1 -0
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +258 -72
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +49 -49
- data/vendor/local/share/doc/groonga/en/html/executables/{http.html → groonga-http.html} +34 -34
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +186 -0
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/executables.html +22 -21
- data/vendor/local/share/doc/groonga/en/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +105 -74
- data/vendor/local/share/doc/groonga/en/html/install.html +22 -11
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/log.html +345 -0
- 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 +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +94 -57
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference.html +69 -68
- 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 +28 -28
- data/vendor/local/share/doc/groonga/en/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +357 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +286 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +243 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +265 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +134 -0
- data/vendor/local/share/doc/groonga/en/html/suggest.html +166 -0
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial03.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial04.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial05.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial06.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial07.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial08.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial09.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial10.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +207 -35
- data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/{source/executables/http.txt → ja/html/_sources/executables/groonga-http.txt} +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +14 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/log.txt +214 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +35 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +195 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/correction.txt +148 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +94 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/suggestion.txt +115 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/tutorial.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +22 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +1 -0
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +237 -72
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands.html +42 -42
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/executables/{http.html → groonga-http.html} +34 -34
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +187 -0
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -21
- data/vendor/local/share/doc/groonga/ja/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +105 -74
- data/vendor/local/share/doc/groonga/ja/html/install.html +24 -11
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/log.html +346 -0
- 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 +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +87 -55
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -68
- 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 +28 -28
- data/vendor/local/share/doc/groonga/ja/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +327 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +254 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +225 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +248 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +135 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +166 -0
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial01.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial02.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial03.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial04.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial05.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial06.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial07.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial08.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial09.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial10.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +207 -35
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +5 -0
- data/vendor/local/share/doc/groonga/source/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/{ja/html/_sources/executables/http.txt → source/executables/groonga-http.txt} +1 -1
- data/vendor/local/share/doc/groonga/source/executables/groonga-suggest-create-dataset.txt +50 -0
- data/vendor/local/share/doc/groonga/source/index.txt +1 -0
- data/vendor/local/share/doc/groonga/source/install.txt +14 -3
- data/vendor/local/share/doc/groonga/source/log.txt +214 -0
- data/vendor/local/share/doc/groonga/source/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/source/news.txt +35 -3
- data/vendor/local/share/doc/groonga/source/suggest/completion.txt +195 -0
- data/vendor/local/share/doc/groonga/source/suggest/correction.txt +148 -0
- data/vendor/local/share/doc/groonga/source/suggest/introduction.txt +94 -0
- data/vendor/local/share/doc/groonga/source/suggest/suggestion.txt +115 -0
- data/vendor/local/share/doc/groonga/source/suggest/tutorial.txt +8 -0
- data/vendor/local/share/doc/groonga/source/suggest.txt +22 -0
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +2 -1
- data/vendor/local/share/doc/groonga/source/update_execution_example.py +46 -20
- data/vendor/local/share/license/groonga/AUTHORS +17 -0
- data/vendor/local/share/license/groonga/COPYING +504 -0
- data/vendor/local/share/license/mecab/AUTHORS +1 -0
- data/vendor/local/share/license/mecab/BSD +29 -0
- data/vendor/local/share/license/mecab/COPYING +4 -0
- data/vendor/local/share/license/mecab/GPL +340 -0
- data/vendor/local/share/license/mecab/LGPL +504 -0
- data/vendor/local/share/license/naist-jdic/AUTHORS +2 -0
- data/vendor/local/share/license/naist-jdic/COPYING +31 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +1050 -45
- data/vendor/local/share/man/man1/groonga.1 +1174 -48
- metadata +62 -9
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>
|
12
|
+
<title>6.2.20. suggest — groonga v1.2.5ドキュメント</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: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,10 +28,10 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v1.2.
|
32
|
-
<link rel="up" title="
|
33
|
-
<link rel="next" title="
|
34
|
-
<link rel="prev" title="
|
31
|
+
<link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
|
32
|
+
<link rel="up" title="6.2. コマンド" href="../commands.html" />
|
33
|
+
<link rel="next" title="6.2.21. table_create" href="table_create.html" />
|
34
|
+
<link rel="prev" title="6.2.19. status" href="status.html" />
|
35
35
|
</head>
|
36
36
|
<body>
|
37
37
|
<div class="header">
|
@@ -58,14 +58,14 @@
|
|
58
58
|
<a href="../genindex.html" title="総合索引"
|
59
59
|
accesskey="I">索引</a></li>
|
60
60
|
<li class="right" >
|
61
|
-
<a href="table_create.html" title="
|
61
|
+
<a href="table_create.html" title="6.2.21. table_create"
|
62
62
|
accesskey="N">次へ</a> |</li>
|
63
63
|
<li class="right" >
|
64
|
-
<a href="status.html" title="
|
64
|
+
<a href="status.html" title="6.2.19. status"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v1.2.
|
67
|
-
<li><a href="../reference.html" >
|
68
|
-
<li><a href="../commands.html" accesskey="U">
|
66
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
67
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
68
|
+
<li><a href="../commands.html" accesskey="U">6.2. コマンド</a> »</li>
|
69
69
|
</ul>
|
70
70
|
</div>
|
71
71
|
|
@@ -75,68 +75,231 @@
|
|
75
75
|
<div class="body">
|
76
76
|
|
77
77
|
<div class="section" id="suggest">
|
78
|
-
<h1>
|
79
|
-
<
|
80
|
-
<
|
81
|
-
<
|
82
|
-
|
83
|
-
|
84
|
-
<
|
85
|
-
<
|
86
|
-
|
78
|
+
<h1>6.2.20. suggest<a class="headerlink" href="#suggest" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
79
|
+
<div class="admonition note">
|
80
|
+
<p class="first admonition-title">ノート</p>
|
81
|
+
<p class="last">サジェスト機能の仕様はまだ確定していません。仕様は変更される可能性があります。</p>
|
82
|
+
</div>
|
83
|
+
<div class="section" id="name">
|
84
|
+
<h2>6.2.20.1. 名前<a class="headerlink" href="#name" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
85
|
+
<p>suggest - 指定されたクエリに対する補完・補正・提案候補を返す。</p>
|
86
|
+
</div>
|
87
|
+
<div class="section" id="synopsis">
|
88
|
+
<h2>6.2.20.2. 書式<a class="headerlink" href="#synopsis" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
89
|
+
<div class="highlight-none"><div class="highlight"><pre>suggest types table column query [sortby [output_columns [offset [limit [frequency_threshold [conditional_probability_threshold [prefix_search]]]]]]]
|
87
90
|
</pre></div>
|
88
91
|
</div>
|
89
92
|
</div>
|
90
|
-
<div class="section" id="
|
91
|
-
<h2>
|
92
|
-
<p>suggest
|
93
|
-
<p
|
93
|
+
<div class="section" id="description">
|
94
|
+
<h2>6.2.20.3. 説明<a class="headerlink" href="#description" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
95
|
+
<p>suggestコマンドは指定されたクエリに対する補完・補正・提案候補を返します。</p>
|
96
|
+
<p>補完・補正・提案については <a class="reference internal" href="../suggest/introduction.html"><em>はじめに</em></a> を参照してください。</p>
|
94
97
|
</div>
|
95
|
-
<div class="section" id="
|
96
|
-
<h2>
|
97
|
-
<
|
98
|
-
<
|
99
|
-
<
|
100
|
-
<p
|
98
|
+
<div class="section" id="options">
|
99
|
+
<h2>6.2.20.4. オプション<a class="headerlink" href="#options" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
100
|
+
<dl class="docutils">
|
101
|
+
<dt><tt class="docutils literal"><span class="pre">types</span></tt></dt>
|
102
|
+
<dd><p class="first">suggestコマンドでどの種類の候補を返すかを指定します。</p>
|
103
|
+
<p>指定できる種類は以下の通りです。</p>
|
101
104
|
<blockquote>
|
102
|
-
<div
|
103
|
-
<
|
105
|
+
<div><dl class="docutils">
|
106
|
+
<dt><tt class="docutils literal"><span class="pre">complete</span></tt></dt>
|
107
|
+
<dd>補完を実行します。</dd>
|
108
|
+
<dt><tt class="docutils literal"><span class="pre">correct</span></tt></dt>
|
109
|
+
<dd>補正を実行します。</dd>
|
110
|
+
<dt><tt class="docutils literal"><span class="pre">suggest</span></tt></dt>
|
111
|
+
<dd>提案を実行します。</dd>
|
112
|
+
</dl>
|
113
|
+
</div></blockquote>
|
114
|
+
<p>1つ以上の種類を指定できます。複数の種類を指定する場合は <tt class="docutils literal"><span class="pre">|</span></tt> で区切ります。以下が例です。:</p>
|
115
|
+
<blockquote class="last">
|
116
|
+
<div><p>補正候補を返します:</p>
|
117
|
+
<div class="highlight-none"><div class="highlight"><pre>correct
|
118
|
+
</pre></div>
|
119
|
+
</div>
|
120
|
+
<p>補正候補と提案候補を返します:</p>
|
121
|
+
<div class="highlight-none"><div class="highlight"><pre>correct|suggest
|
122
|
+
</pre></div>
|
123
|
+
</div>
|
124
|
+
<p>補完候補と補正候補と提案候補を返します:</p>
|
125
|
+
<div class="highlight-none"><div class="highlight"><pre>complete|correct|suggest
|
126
|
+
</pre></div>
|
127
|
+
</div>
|
128
|
+
</div></blockquote>
|
129
|
+
</dd>
|
130
|
+
<dt><tt class="docutils literal"><span class="pre">table</span></tt></dt>
|
131
|
+
<dd><p class="first"><tt class="docutils literal"><span class="pre">item_${データセット名}</span></tt> というフォーマットのテーブル名を指定します。例えば、以下のコマンドでデータセットを作成した場合はテーブル名として <tt class="docutils literal"><span class="pre">item_query</span></tt> を指定します:</p>
|
132
|
+
<div class="last highlight-none"><div class="highlight"><pre>groonga-suggest-create-dataset /tmp/db-path query
|
133
|
+
</pre></div>
|
134
|
+
</div>
|
135
|
+
</dd>
|
136
|
+
<dt><tt class="docutils literal"><span class="pre">column</span></tt></dt>
|
137
|
+
<dd><tt class="docutils literal"><span class="pre">table</span></tt> で指定したテーブルにあるふりがな情報を含むカラムを指定します。ふりがなはカタカナで指定します。</dd>
|
138
|
+
<dt><tt class="docutils literal"><span class="pre">query</span></tt></dt>
|
139
|
+
<dd>補完・補正・提案対象のクエリを指定します。</dd>
|
140
|
+
<dt><tt class="docutils literal"><span class="pre">sortby</span></tt></dt>
|
141
|
+
<dd><p class="first">ソートキーを指定します。</p>
|
142
|
+
<dl class="last docutils">
|
143
|
+
<dt>Default:</dt>
|
144
|
+
<dd><tt class="docutils literal"><span class="pre">-_score</span></tt></dd>
|
145
|
+
</dl>
|
146
|
+
</dd>
|
147
|
+
<dt><tt class="docutils literal"><span class="pre">output_columns</span></tt></dt>
|
148
|
+
<dd><p class="first">出力するカラムを指定します。</p>
|
149
|
+
<dl class="last docutils">
|
150
|
+
<dt>Default:</dt>
|
151
|
+
<dd><tt class="docutils literal"><span class="pre">_key,_score</span></tt></dd>
|
152
|
+
</dl>
|
153
|
+
</dd>
|
154
|
+
<dt><tt class="docutils literal"><span class="pre">offset</span></tt></dt>
|
155
|
+
<dd><p class="first">返されるレコードのオフセットを指定します。</p>
|
156
|
+
<dl class="last docutils">
|
157
|
+
<dt>Default:</dt>
|
158
|
+
<dd><tt class="docutils literal"><span class="pre">0</span></tt></dd>
|
159
|
+
</dl>
|
160
|
+
</dd>
|
161
|
+
<dt><tt class="docutils literal"><span class="pre">limit</span></tt></dt>
|
162
|
+
<dd><p class="first">返されるレコード数を指定します。</p>
|
163
|
+
<dl class="last docutils">
|
164
|
+
<dt>Default:</dt>
|
165
|
+
<dd><tt class="docutils literal"><span class="pre">10</span></tt></dd>
|
166
|
+
</dl>
|
167
|
+
</dd>
|
168
|
+
<dt><tt class="docutils literal"><span class="pre">frequency_threshold</span></tt></dt>
|
169
|
+
<dd><p class="first">出現頻度に対する閾値を指定します。返されるレコードの <tt class="docutils literal"><span class="pre">_score</span></tt> 値は <tt class="docutils literal"><span class="pre">frequency_threshold</span></tt> 以上になります。</p>
|
170
|
+
<dl class="last docutils">
|
171
|
+
<dt>Default:</dt>
|
172
|
+
<dd><tt class="docutils literal"><span class="pre">100</span></tt></dd>
|
173
|
+
</dl>
|
174
|
+
</dd>
|
175
|
+
</dl>
|
176
|
+
<p><tt class="docutils literal"><span class="pre">conditional_probability_threshold</span></tt></p>
|
104
177
|
<blockquote>
|
105
|
-
<div
|
106
|
-
<
|
178
|
+
<div><p>条件付き確率に対する閾値を指定します。学習データに対して条件付き確率を使います。ここで使う条件付き確率は、入力した <tt class="docutils literal"><span class="pre">query</span></tt> と同じ入力があったときにクエリが検索された確率です。返されるレコードの条件付き確率は <tt class="docutils literal"><span class="pre">conditional_probability_threshold</span></tt> 以上になります。</p>
|
179
|
+
<dl class="docutils">
|
180
|
+
<dt>Default:</dt>
|
181
|
+
<dd><tt class="docutils literal"><span class="pre">0.2</span></tt></dd>
|
182
|
+
</dl>
|
183
|
+
</div></blockquote>
|
184
|
+
<dl class="docutils">
|
185
|
+
<dt><tt class="docutils literal"><span class="pre">prefix_search</span></tt></dt>
|
186
|
+
<dd><p class="first">補完時に前方一致検索を実行するかどうかを指定します。</p>
|
187
|
+
<p>指定可能な値は以下の通りです。</p>
|
107
188
|
<blockquote>
|
108
|
-
<div
|
189
|
+
<div><dl class="docutils">
|
190
|
+
<dt><tt class="docutils literal"><span class="pre">yes</span></tt></dt>
|
191
|
+
<dd>常に前方一致検索を実行します。</dd>
|
192
|
+
<dt><tt class="docutils literal"><span class="pre">no</span></tt></dt>
|
193
|
+
<dd>前方一致検索を実行しません。</dd>
|
194
|
+
<dt><tt class="docutils literal"><span class="pre">auto</span></tt></dt>
|
195
|
+
<dd>他の検索でレコードが見つからない場合のみ前方一致検索を実行します。</dd>
|
196
|
+
</dl>
|
109
197
|
</div></blockquote>
|
110
|
-
<
|
198
|
+
<dl class="last docutils">
|
199
|
+
<dt>Default:</dt>
|
200
|
+
<dd><tt class="docutils literal"><span class="pre">auto</span></tt></dd>
|
201
|
+
</dl>
|
202
|
+
</dd>
|
203
|
+
</dl>
|
204
|
+
</div>
|
205
|
+
<div class="section" id="return-value">
|
206
|
+
<h2>6.2.20.5. 返値<a class="headerlink" href="#return-value" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
207
|
+
<div class="section" id="json-format">
|
208
|
+
<h3>6.2.20.5.1. JSON形式<a class="headerlink" href="#json-format" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
209
|
+
<p>返されるJSON形式は以下の通りです:</p>
|
210
|
+
<div class="highlight-none"><div class="highlight"><pre>{"type1": [["candidate1", score of candidate1],
|
211
|
+
["candidate2", score of candidate2],
|
212
|
+
...],
|
213
|
+
"type2": [["candidate1", score of candidate1],
|
214
|
+
["candidate2", score of candidate2],
|
215
|
+
...],
|
216
|
+
...}
|
217
|
+
</pre></div>
|
218
|
+
</div>
|
219
|
+
<p><tt class="docutils literal"><span class="pre">type</span></tt></p>
|
111
220
|
<blockquote>
|
112
|
-
<div
|
113
|
-
<p><tt class="docutils literal"><span class="pre">
|
221
|
+
<div><tt class="docutils literal"><span class="pre">types</span></tt> で指定した値。</div></blockquote>
|
222
|
+
<p><tt class="docutils literal"><span class="pre">candidate</span></tt></p>
|
114
223
|
<blockquote>
|
115
|
-
<div
|
116
|
-
<p><tt class="docutils literal"><span class="pre">
|
224
|
+
<div>補完・補正・提案候補。</div></blockquote>
|
225
|
+
<p><tt class="docutils literal"><span class="pre">score</span> <span class="pre">of</span> <span class="pre">candidate</span></tt></p>
|
117
226
|
<blockquote>
|
118
|
-
<div
|
227
|
+
<div>対応する <tt class="docutils literal"><span class="pre">candidate</span></tt> のスコアです。スコアが高いほど補完・補正・提案候補として有力という意味になります。デフォルトでは候補は <tt class="docutils literal"><span class="pre">score</span> <span class="pre">of</span> <span class="pre">candidate</span></tt> の降順でソートされています。</div></blockquote>
|
119
228
|
</div>
|
120
|
-
|
121
|
-
<
|
122
|
-
<
|
123
|
-
<
|
124
|
-
<
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
229
|
+
</div>
|
230
|
+
<div class="section" id="example">
|
231
|
+
<h2>6.2.20.6. 例<a class="headerlink" href="#example" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
232
|
+
<p>以下は補完用の学習データです。</p>
|
233
|
+
<p>Execution example:</p>
|
234
|
+
<div class="highlight-none"><div class="highlight"><pre>> load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
235
|
+
> [
|
236
|
+
> {"sequence": "1", "time": 1312950803.86057, "item": "e"},
|
237
|
+
> {"sequence": "1", "time": 1312950803.96857, "item": "en"},
|
238
|
+
> {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
|
239
|
+
> {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
|
240
|
+
> {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
|
241
|
+
> {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
|
242
|
+
> ]
|
243
|
+
[[0,1313562872.82845,1.577141877],6]
|
244
|
+
</pre></div>
|
245
|
+
</div>
|
246
|
+
<p>以下は補正用の学習データです。</p>
|
247
|
+
<p>Execution example:</p>
|
248
|
+
<div class="highlight-none"><div class="highlight"><pre>> load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
249
|
+
> [
|
250
|
+
> {"sequence": "2", "time": 1312950803.86057, "item": "s"},
|
251
|
+
> {"sequence": "2", "time": 1312950803.96857, "item": "sa"},
|
252
|
+
> {"sequence": "2", "time": 1312950804.26057, "item": "sae"},
|
253
|
+
> {"sequence": "2", "time": 1312950804.56057, "item": "saer"},
|
254
|
+
> {"sequence": "2", "time": 1312950804.76057, "item": "saerc"},
|
255
|
+
> {"sequence": "2", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
|
256
|
+
> {"sequence": "2", "time": 1312950809.76057, "item": "serch"},
|
257
|
+
> {"sequence": "2", "time": 1312950810.86057, "item": "search", "type": "submit"}
|
258
|
+
> ]
|
259
|
+
[[0,1313562874.6075,2.004191545],8]
|
260
|
+
</pre></div>
|
261
|
+
</div>
|
262
|
+
<p>以下は提案用の学習データです。</p>
|
263
|
+
<p>Execution example:</p>
|
264
|
+
<div class="highlight-none"><div class="highlight"><pre>> load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
265
|
+
> [
|
266
|
+
> {"sequence": "3", "time": 1312950803.86057, "item": "search engine", "type": "submit"},
|
267
|
+
> {"sequence": "3", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"}
|
268
|
+
> ]
|
269
|
+
[[0,1313562876.81305,0.801821271],2]
|
137
270
|
</pre></div>
|
138
271
|
</div>
|
272
|
+
<p>以下は補完例です。</p>
|
273
|
+
<p>Execution example:</p>
|
274
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types complete --threshold 1 --query en
|
275
|
+
[[0,1313562877.81745,0.001827712],{"complete":[[1],[["_key","ShortText"],["_score","Int32"]],["engine",1]]}]
|
276
|
+
</pre></div>
|
277
|
+
</div>
|
278
|
+
<p>以下は補正例です。</p>
|
279
|
+
<p>Execution example:</p>
|
280
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types correct --threshold 1 --query saerch
|
281
|
+
[[0,1313562878.02203,0.000442789],{"correct":[[1],[["_key","ShortText"],["_score","Int32"]],["search",1]]}]
|
282
|
+
</pre></div>
|
283
|
+
</div>
|
284
|
+
<p>以下は提案例です。</p>
|
285
|
+
<p>Execution example:</p>
|
286
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types suggest --threshold 1 --query search
|
287
|
+
[[0,1313562878.22422,0.000812428],{"suggest":[[2],[["_key","ShortText"],["_score","Int32"]],["search engine",1],["web search realtime",1]]}]
|
288
|
+
</pre></div>
|
139
289
|
</div>
|
290
|
+
<p>以下は補完・補正・提案を混ぜた例です。</p>
|
291
|
+
<p>Execution example:</p>
|
292
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types complete|correct|suggest --threshold 1 --query search
|
293
|
+
[[0,1313562878.42973,0.001223259],{"complete":[[2],[["_key","ShortText"],["_score","Int32"]],["search",2],["search engine",2]],"correct":[[1],[["_key","ShortText"],["_score","Int32"]],["search",2]],"suggest":[[2],[["_key","ShortText"],["_score","Int32"]],["search engine",1],["web search realtime",1]]}]
|
294
|
+
</pre></div>
|
295
|
+
</div>
|
296
|
+
</div>
|
297
|
+
<div class="section" id="see-also">
|
298
|
+
<h2>6.2.20.7. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
299
|
+
<ul class="simple">
|
300
|
+
<li><a class="reference internal" href="../suggest.html"><em>サジェスト</em></a></li>
|
301
|
+
<li><a class="reference internal" href="../executables/groonga-suggest-create-dataset.html"><em>groonga-suggest-create-dataset</em></a></li>
|
302
|
+
</ul>
|
140
303
|
</div>
|
141
304
|
</div>
|
142
305
|
|
@@ -148,25 +311,27 @@
|
|
148
311
|
<div class="sphinxsidebarwrapper">
|
149
312
|
<h3><a href="../index.html">目次</a></h3>
|
150
313
|
<ul>
|
151
|
-
<li><a class="reference internal" href="#">
|
152
|
-
<li><a class="reference internal" href="#
|
153
|
-
<li><a class="reference internal" href="#
|
154
|
-
<li><a class="reference internal" href="#
|
155
|
-
<li><a class="reference internal" href="#
|
156
|
-
<li><a class="reference internal" href="#
|
157
|
-
<li><a class="reference internal" href="#json">
|
314
|
+
<li><a class="reference internal" href="#">6.2.20. suggest</a><ul>
|
315
|
+
<li><a class="reference internal" href="#name">6.2.20.1. 名前</a></li>
|
316
|
+
<li><a class="reference internal" href="#synopsis">6.2.20.2. 書式</a></li>
|
317
|
+
<li><a class="reference internal" href="#description">6.2.20.3. 説明</a></li>
|
318
|
+
<li><a class="reference internal" href="#options">6.2.20.4. オプション</a></li>
|
319
|
+
<li><a class="reference internal" href="#return-value">6.2.20.5. 返値</a><ul>
|
320
|
+
<li><a class="reference internal" href="#json-format">6.2.20.5.1. JSON形式</a></li>
|
158
321
|
</ul>
|
159
322
|
</li>
|
323
|
+
<li><a class="reference internal" href="#example">6.2.20.6. 例</a></li>
|
324
|
+
<li><a class="reference internal" href="#see-also">6.2.20.7. 参考</a></li>
|
160
325
|
</ul>
|
161
326
|
</li>
|
162
327
|
</ul>
|
163
328
|
|
164
329
|
<h4>前のトピックへ</h4>
|
165
330
|
<p class="topless"><a href="status.html"
|
166
|
-
title="前の章へ">
|
331
|
+
title="前の章へ">6.2.19. status</a></p>
|
167
332
|
<h4>次のトピックへ</h4>
|
168
333
|
<p class="topless"><a href="table_create.html"
|
169
|
-
title="次の章へ">
|
334
|
+
title="次の章へ">6.2.21. table_create</a></p>
|
170
335
|
<h3>このページ</h3>
|
171
336
|
<ul class="this-page-menu">
|
172
337
|
<li><a href="../_sources/commands/suggest.txt"
|
@@ -196,14 +361,14 @@
|
|
196
361
|
<a href="../genindex.html" title="総合索引"
|
197
362
|
>索引</a></li>
|
198
363
|
<li class="right" >
|
199
|
-
<a href="table_create.html" title="
|
364
|
+
<a href="table_create.html" title="6.2.21. table_create"
|
200
365
|
>次へ</a> |</li>
|
201
366
|
<li class="right" >
|
202
|
-
<a href="status.html" title="
|
367
|
+
<a href="status.html" title="6.2.19. status"
|
203
368
|
>前へ</a> |</li>
|
204
|
-
<li><a href="../index.html">groonga v1.2.
|
205
|
-
<li><a href="../reference.html" >
|
206
|
-
<li><a href="../commands.html" >
|
369
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
370
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
371
|
+
<li><a href="../commands.html" >6.2. コマンド</a> »</li>
|
207
372
|
</ul>
|
208
373
|
</div>
|
209
374
|
<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>
|
12
|
+
<title>6.2.21. table_create — groonga v1.2.5ドキュメント</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: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,10 +28,10 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v1.2.
|
32
|
-
<link rel="up" title="
|
33
|
-
<link rel="next" title="
|
34
|
-
<link rel="prev" title="
|
31
|
+
<link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
|
32
|
+
<link rel="up" title="6.2. コマンド" href="../commands.html" />
|
33
|
+
<link rel="next" title="6.2.22. table_list" href="table_list.html" />
|
34
|
+
<link rel="prev" title="6.2.20. suggest" href="suggest.html" />
|
35
35
|
</head>
|
36
36
|
<body>
|
37
37
|
<div class="header">
|
@@ -58,14 +58,14 @@
|
|
58
58
|
<a href="../genindex.html" title="総合索引"
|
59
59
|
accesskey="I">索引</a></li>
|
60
60
|
<li class="right" >
|
61
|
-
<a href="table_list.html" title="
|
61
|
+
<a href="table_list.html" title="6.2.22. table_list"
|
62
62
|
accesskey="N">次へ</a> |</li>
|
63
63
|
<li class="right" >
|
64
|
-
<a href="suggest.html" title="
|
64
|
+
<a href="suggest.html" title="6.2.20. suggest"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v1.2.
|
67
|
-
<li><a href="../reference.html" >
|
68
|
-
<li><a href="../commands.html" accesskey="U">
|
66
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
67
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
68
|
+
<li><a href="../commands.html" accesskey="U">6.2. コマンド</a> »</li>
|
69
69
|
</ul>
|
70
70
|
</div>
|
71
71
|
|
@@ -75,25 +75,25 @@
|
|
75
75
|
<div class="body">
|
76
76
|
|
77
77
|
<div class="section" id="table-create">
|
78
|
-
<h1>
|
78
|
+
<h1>6.2.21. table_create<a class="headerlink" href="#table-create" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
79
79
|
<div class="section" id="id1">
|
80
|
-
<h2>
|
80
|
+
<h2>6.2.21.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
81
81
|
<p>table_create - テーブルの追加</p>
|
82
82
|
</div>
|
83
83
|
<div class="section" id="id2">
|
84
|
-
<h2>
|
84
|
+
<h2>6.2.21.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
85
85
|
<div class="highlight-none"><div class="highlight"><pre>table_create name [flags [key_type [value_type [default_tokenizer]]]]
|
86
86
|
</pre></div>
|
87
87
|
</div>
|
88
88
|
</div>
|
89
89
|
<div class="section" id="id3">
|
90
|
-
<h2>
|
90
|
+
<h2>6.2.21.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
91
91
|
<p>groonga組込コマンドの一つであるtable_createについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。</p>
|
92
92
|
<p>table_createコマンドは、使用しているデータベースに対してテーブルを追加します。groongaには名前付きテーブルと名前なしテーブル、永続テーブルと一時テーブルがありますが、table_createコマンドでは、名前付きの永続テーブルのみが作成できます。テーブルはレコードの集合であり、全てのレコードは一意なIDを持ちます。IDはレコードを追加した順序に従って自動的に付与されます。</p>
|
93
93
|
<p>テーブルにカラムを追加する時にはcolumn_createコマンドを使用します。また、テーブルを作成した時点でいくつかの疑似カラムが使用可能になっています。</p>
|
94
94
|
</div>
|
95
95
|
<div class="section" id="id4">
|
96
|
-
<h2>
|
96
|
+
<h2>6.2.21.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
97
97
|
<p><tt class="docutils literal"><span class="pre">name</span></tt></p>
|
98
98
|
<blockquote>
|
99
99
|
<div>作成するテーブルの名前を指定します。nameはデータベース内で一意な、未定義の名前でなければなりません。組込型名・組込コマンド名・組込関数名は予約済みであり、テーブル名には 使用できません。また、ピリオド('.'), コロン(':')を含む名前のテーブルは作成できません。</div></blockquote>
|
@@ -143,9 +143,9 @@
|
|
143
143
|
</div></blockquote>
|
144
144
|
</div>
|
145
145
|
<div class="section" id="id5">
|
146
|
-
<h2>
|
146
|
+
<h2>6.2.21.5. 返値<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
147
147
|
<div class="section" id="json">
|
148
|
-
<h3>
|
148
|
+
<h3>6.2.21.5.1. json形式<a class="headerlink" href="#json" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
149
149
|
<div class="highlight-none"><div class="highlight"><pre>[成功かどうかのフラグ]
|
150
150
|
|
151
151
|
``成功かどうかのフラグ``
|
@@ -156,7 +156,7 @@
|
|
156
156
|
</div>
|
157
157
|
</div>
|
158
158
|
<div class="section" id="id6">
|
159
|
-
<h2>
|
159
|
+
<h2>6.2.21.6. 例<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
160
160
|
<p>ShortText型の主キーを持つハッシュ表型のテーブル、Entryを作成します。:</p>
|
161
161
|
<div class="highlight-none"><div class="highlight"><pre>table_create Entry --key_type ShortText
|
162
162
|
[true]
|
@@ -178,26 +178,26 @@
|
|
178
178
|
<div class="sphinxsidebarwrapper">
|
179
179
|
<h3><a href="../index.html">目次</a></h3>
|
180
180
|
<ul>
|
181
|
-
<li><a class="reference internal" href="#">
|
182
|
-
<li><a class="reference internal" href="#id1">
|
183
|
-
<li><a class="reference internal" href="#id2">
|
184
|
-
<li><a class="reference internal" href="#id3">
|
185
|
-
<li><a class="reference internal" href="#id4">
|
186
|
-
<li><a class="reference internal" href="#id5">
|
187
|
-
<li><a class="reference internal" href="#json">
|
181
|
+
<li><a class="reference internal" href="#">6.2.21. table_create</a><ul>
|
182
|
+
<li><a class="reference internal" href="#id1">6.2.21.1. 名前</a></li>
|
183
|
+
<li><a class="reference internal" href="#id2">6.2.21.2. 書式</a></li>
|
184
|
+
<li><a class="reference internal" href="#id3">6.2.21.3. 説明</a></li>
|
185
|
+
<li><a class="reference internal" href="#id4">6.2.21.4. 引数</a></li>
|
186
|
+
<li><a class="reference internal" href="#id5">6.2.21.5. 返値</a><ul>
|
187
|
+
<li><a class="reference internal" href="#json">6.2.21.5.1. json形式</a></li>
|
188
188
|
</ul>
|
189
189
|
</li>
|
190
|
-
<li><a class="reference internal" href="#id6">
|
190
|
+
<li><a class="reference internal" href="#id6">6.2.21.6. 例</a></li>
|
191
191
|
</ul>
|
192
192
|
</li>
|
193
193
|
</ul>
|
194
194
|
|
195
195
|
<h4>前のトピックへ</h4>
|
196
196
|
<p class="topless"><a href="suggest.html"
|
197
|
-
title="前の章へ">
|
197
|
+
title="前の章へ">6.2.20. suggest</a></p>
|
198
198
|
<h4>次のトピックへ</h4>
|
199
199
|
<p class="topless"><a href="table_list.html"
|
200
|
-
title="次の章へ">
|
200
|
+
title="次の章へ">6.2.22. table_list</a></p>
|
201
201
|
<h3>このページ</h3>
|
202
202
|
<ul class="this-page-menu">
|
203
203
|
<li><a href="../_sources/commands/table_create.txt"
|
@@ -227,14 +227,14 @@
|
|
227
227
|
<a href="../genindex.html" title="総合索引"
|
228
228
|
>索引</a></li>
|
229
229
|
<li class="right" >
|
230
|
-
<a href="table_list.html" title="
|
230
|
+
<a href="table_list.html" title="6.2.22. table_list"
|
231
231
|
>次へ</a> |</li>
|
232
232
|
<li class="right" >
|
233
|
-
<a href="suggest.html" title="
|
233
|
+
<a href="suggest.html" title="6.2.20. suggest"
|
234
234
|
>前へ</a> |</li>
|
235
|
-
<li><a href="../index.html">groonga v1.2.
|
236
|
-
<li><a href="../reference.html" >
|
237
|
-
<li><a href="../commands.html" >
|
235
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
236
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
237
|
+
<li><a href="../commands.html" >6.2. コマンド</a> »</li>
|
238
238
|
</ul>
|
239
239
|
</div>
|
240
240
|
<div class="footer">
|