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.19. status — groonga v1.2.5 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: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,10 +27,10 @@
|
|
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 v1.2.
|
31
|
-
<link rel="up" title="
|
32
|
-
<link rel="next" title="
|
33
|
-
<link rel="prev" title="
|
30
|
+
<link rel="top" title="groonga v1.2.5 documentation" href="../index.html" />
|
31
|
+
<link rel="up" title="6.2. コマンド" href="../commands.html" />
|
32
|
+
<link rel="next" title="6.2.20. suggest" href="suggest.html" />
|
33
|
+
<link rel="prev" title="6.2.18. shutdown" href="shutdown.html" />
|
34
34
|
</head>
|
35
35
|
<body>
|
36
36
|
<div class="header">
|
@@ -57,14 +57,14 @@
|
|
57
57
|
<a href="../genindex.html" title="General Index"
|
58
58
|
accesskey="I">index</a></li>
|
59
59
|
<li class="right" >
|
60
|
-
<a href="suggest.html" title="
|
60
|
+
<a href="suggest.html" title="6.2.20. suggest"
|
61
61
|
accesskey="N">next</a> |</li>
|
62
62
|
<li class="right" >
|
63
|
-
<a href="shutdown.html" title="
|
63
|
+
<a href="shutdown.html" title="6.2.18. shutdown"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="../index.html">groonga v1.2.
|
66
|
-
<li><a href="../reference.html" >
|
67
|
-
<li><a href="../commands.html" accesskey="U">
|
65
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
66
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
67
|
+
<li><a href="../commands.html" accesskey="U">6.2. コマンド</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
70
70
|
|
@@ -74,30 +74,30 @@
|
|
74
74
|
<div class="body">
|
75
75
|
|
76
76
|
<div class="section" id="status">
|
77
|
-
<h1>
|
77
|
+
<h1>6.2.19. status<a class="headerlink" href="#status" title="Permalink to this headline">¶</a></h1>
|
78
78
|
<div class="section" id="id1">
|
79
|
-
<h2>
|
79
|
+
<h2>6.2.19.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
80
80
|
<p>status - groongaプロセスの状態表示</p>
|
81
81
|
</div>
|
82
82
|
<div class="section" id="id2">
|
83
|
-
<h2>
|
83
|
+
<h2>6.2.19.2. 書式<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
|
84
84
|
<div class="highlight-none"><div class="highlight"><pre>status
|
85
85
|
</pre></div>
|
86
86
|
</div>
|
87
87
|
</div>
|
88
88
|
<div class="section" id="id3">
|
89
|
-
<h2>
|
89
|
+
<h2>6.2.19.3. 説明<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
|
90
90
|
<p>groonga組込コマンドの一つであるstatusについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。</p>
|
91
91
|
<p>statusコマンドは、groongaプロセスの状態を表示します。主にgroongaサーバプロセスに対して使用することを想定しています。</p>
|
92
92
|
</div>
|
93
93
|
<div class="section" id="id4">
|
94
|
-
<h2>
|
94
|
+
<h2>6.2.19.4. 引数<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
|
95
95
|
<p>ありません。</p>
|
96
96
|
</div>
|
97
97
|
<div class="section" id="id5">
|
98
|
-
<h2>
|
98
|
+
<h2>6.2.19.5. 返値<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
|
99
99
|
<div class="section" id="json">
|
100
|
-
<h3>
|
100
|
+
<h3>6.2.19.5.1. json形式<a class="headerlink" href="#json" title="Permalink to this headline">¶</a></h3>
|
101
101
|
<div class="highlight-none"><div class="highlight"><pre>下記の項目がハッシュ形式で出力されます。
|
102
102
|
|
103
103
|
``alloc_count``
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
</div>
|
118
118
|
<div class="section" id="id6">
|
119
|
-
<h2>
|
119
|
+
<h2>6.2.19.6. 例<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
|
120
120
|
<div class="highlight-none"><div class="highlight"><pre>status
|
121
121
|
{"alloc_count":104,
|
122
122
|
"starttime":1268213679,
|
@@ -134,26 +134,26 @@
|
|
134
134
|
<div class="sphinxsidebarwrapper">
|
135
135
|
<h3><a href="../index.html">Table Of Contents</a></h3>
|
136
136
|
<ul>
|
137
|
-
<li><a class="reference internal" href="#">
|
138
|
-
<li><a class="reference internal" href="#id1">
|
139
|
-
<li><a class="reference internal" href="#id2">
|
140
|
-
<li><a class="reference internal" href="#id3">
|
141
|
-
<li><a class="reference internal" href="#id4">
|
142
|
-
<li><a class="reference internal" href="#id5">
|
143
|
-
<li><a class="reference internal" href="#json">
|
137
|
+
<li><a class="reference internal" href="#">6.2.19. status</a><ul>
|
138
|
+
<li><a class="reference internal" href="#id1">6.2.19.1. 名前</a></li>
|
139
|
+
<li><a class="reference internal" href="#id2">6.2.19.2. 書式</a></li>
|
140
|
+
<li><a class="reference internal" href="#id3">6.2.19.3. 説明</a></li>
|
141
|
+
<li><a class="reference internal" href="#id4">6.2.19.4. 引数</a></li>
|
142
|
+
<li><a class="reference internal" href="#id5">6.2.19.5. 返値</a><ul>
|
143
|
+
<li><a class="reference internal" href="#json">6.2.19.5.1. json形式</a></li>
|
144
144
|
</ul>
|
145
145
|
</li>
|
146
|
-
<li><a class="reference internal" href="#id6">
|
146
|
+
<li><a class="reference internal" href="#id6">6.2.19.6. 例</a></li>
|
147
147
|
</ul>
|
148
148
|
</li>
|
149
149
|
</ul>
|
150
150
|
|
151
151
|
<h4>Previous topic</h4>
|
152
152
|
<p class="topless"><a href="shutdown.html"
|
153
|
-
title="previous chapter">
|
153
|
+
title="previous chapter">6.2.18. shutdown</a></p>
|
154
154
|
<h4>Next topic</h4>
|
155
155
|
<p class="topless"><a href="suggest.html"
|
156
|
-
title="next chapter">
|
156
|
+
title="next chapter">6.2.20. suggest</a></p>
|
157
157
|
<h3>This Page</h3>
|
158
158
|
<ul class="this-page-menu">
|
159
159
|
<li><a href="../_sources/commands/status.txt"
|
@@ -183,14 +183,14 @@
|
|
183
183
|
<a href="../genindex.html" title="General Index"
|
184
184
|
>index</a></li>
|
185
185
|
<li class="right" >
|
186
|
-
<a href="suggest.html" title="
|
186
|
+
<a href="suggest.html" title="6.2.20. suggest"
|
187
187
|
>next</a> |</li>
|
188
188
|
<li class="right" >
|
189
|
-
<a href="shutdown.html" title="
|
189
|
+
<a href="shutdown.html" title="6.2.18. shutdown"
|
190
190
|
>previous</a> |</li>
|
191
|
-
<li><a href="../index.html">groonga v1.2.
|
192
|
-
<li><a href="../reference.html" >
|
193
|
-
<li><a href="../commands.html" >
|
191
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
192
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
193
|
+
<li><a href="../commands.html" >6.2. コマンド</a> »</li>
|
194
194
|
</ul>
|
195
195
|
</div>
|
196
196
|
<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.20. suggest — groonga v1.2.5 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: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,10 +27,10 @@
|
|
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 v1.2.
|
31
|
-
<link rel="up" title="
|
32
|
-
<link rel="next" title="
|
33
|
-
<link rel="prev" title="
|
30
|
+
<link rel="top" title="groonga v1.2.5 documentation" href="../index.html" />
|
31
|
+
<link rel="up" title="6.2. コマンド" href="../commands.html" />
|
32
|
+
<link rel="next" title="6.2.21. table_create" href="table_create.html" />
|
33
|
+
<link rel="prev" title="6.2.19. status" href="status.html" />
|
34
34
|
</head>
|
35
35
|
<body>
|
36
36
|
<div class="header">
|
@@ -57,14 +57,14 @@
|
|
57
57
|
<a href="../genindex.html" title="General Index"
|
58
58
|
accesskey="I">index</a></li>
|
59
59
|
<li class="right" >
|
60
|
-
<a href="table_create.html" title="
|
60
|
+
<a href="table_create.html" title="6.2.21. table_create"
|
61
61
|
accesskey="N">next</a> |</li>
|
62
62
|
<li class="right" >
|
63
|
-
<a href="status.html" title="
|
63
|
+
<a href="status.html" title="6.2.19. status"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="../index.html">groonga v1.2.
|
66
|
-
<li><a href="../reference.html" >
|
67
|
-
<li><a href="../commands.html" accesskey="U">
|
65
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
66
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
67
|
+
<li><a href="../commands.html" accesskey="U">6.2. コマンド</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
70
70
|
|
@@ -74,68 +74,252 @@
|
|
74
74
|
<div class="body">
|
75
75
|
|
76
76
|
<div class="section" id="suggest">
|
77
|
-
<h1>
|
78
|
-
<
|
79
|
-
<
|
80
|
-
<
|
81
|
-
|
82
|
-
</div>
|
83
|
-
<div class="section" id="
|
84
|
-
<h2>
|
85
|
-
<
|
77
|
+
<h1>6.2.20. suggest<a class="headerlink" href="#suggest" title="Permalink to this headline">¶</a></h1>
|
78
|
+
<div class="admonition note">
|
79
|
+
<p class="first admonition-title">Note</p>
|
80
|
+
<p class="last">The suggest feature specification isn't stable. The
|
81
|
+
specification may be changed.</p>
|
82
|
+
</div>
|
83
|
+
<div class="section" id="name">
|
84
|
+
<h2>6.2.20.1. NAME<a class="headerlink" href="#name" title="Permalink to this headline">¶</a></h2>
|
85
|
+
<p>suggest - returns completion, correction and/or suggestion for a query.</p>
|
86
|
+
</div>
|
87
|
+
<div class="section" id="synopsis">
|
88
|
+
<h2>6.2.20.2. SYNOPSIS<a class="headerlink" href="#synopsis" title="Permalink to this headline">¶</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]]]]]]]
|
86
90
|
</pre></div>
|
87
91
|
</div>
|
88
92
|
</div>
|
89
|
-
<div class="section" id="
|
90
|
-
<h2>
|
91
|
-
<p>suggest
|
92
|
-
|
93
|
+
<div class="section" id="description">
|
94
|
+
<h2>6.2.20.3. DESCRIPTION<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
|
95
|
+
<p>The suggest command returns completion, correction and/or
|
96
|
+
suggestion for a specified query.</p>
|
97
|
+
<p>See <a class="reference internal" href="../suggest/introduction.html"><em>Introduction</em></a> about completion,
|
98
|
+
correction and suggestion.</p>
|
93
99
|
</div>
|
94
|
-
<div class="section" id="
|
95
|
-
<h2>
|
96
|
-
<
|
97
|
-
<
|
98
|
-
<
|
99
|
-
|
100
|
+
<div class="section" id="options">
|
101
|
+
<h2>6.2.20.4. OPTIONS<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
|
102
|
+
<dl class="docutils">
|
103
|
+
<dt><tt class="docutils literal"><span class="pre">types</span></tt></dt>
|
104
|
+
<dd><p class="first">It specifies what types are returned by the suggest
|
105
|
+
command.</p>
|
106
|
+
<p>Here are available types:</p>
|
100
107
|
<blockquote>
|
101
|
-
<div
|
102
|
-
<
|
108
|
+
<div><dl class="docutils">
|
109
|
+
<dt><tt class="docutils literal"><span class="pre">complete</span></tt></dt>
|
110
|
+
<dd>The suggest command does completion.</dd>
|
111
|
+
<dt><tt class="docutils literal"><span class="pre">correct</span></tt></dt>
|
112
|
+
<dd>The suggest command does correction.</dd>
|
113
|
+
<dt><tt class="docutils literal"><span class="pre">suggest</span></tt></dt>
|
114
|
+
<dd>The suggest command does suggestion.</dd>
|
115
|
+
</dl>
|
116
|
+
</div></blockquote>
|
117
|
+
<p>You can specify one or more types separated by <tt class="docutils literal"><span class="pre">|</span></tt>.
|
118
|
+
Here are examples:</p>
|
119
|
+
<blockquote class="last">
|
120
|
+
<div><p>It returns correction:</p>
|
121
|
+
<div class="highlight-none"><div class="highlight"><pre>correct
|
122
|
+
</pre></div>
|
123
|
+
</div>
|
124
|
+
<p>It returns correction and suggestion:</p>
|
125
|
+
<div class="highlight-none"><div class="highlight"><pre>correct|suggest
|
126
|
+
</pre></div>
|
127
|
+
</div>
|
128
|
+
<p>It returns complete, correction and suggestion:</p>
|
129
|
+
<div class="highlight-none"><div class="highlight"><pre>complete|correct|suggest
|
130
|
+
</pre></div>
|
131
|
+
</div>
|
132
|
+
</div></blockquote>
|
133
|
+
</dd>
|
134
|
+
<dt><tt class="docutils literal"><span class="pre">table</span></tt></dt>
|
135
|
+
<dd><p class="first">It specifies table name that has <tt class="docutils literal"><span class="pre">item_${DATA_SET_NAME}`</span> <span class="pre">format.</span>
|
136
|
+
<span class="pre">For</span> <span class="pre">example,</span> <span class="pre">``item_query</span></tt> is a table name if you created
|
137
|
+
dataset by the following command:</p>
|
138
|
+
<div class="last highlight-none"><div class="highlight"><pre>groonga-suggest-create-dataset /tmp/db-path query
|
139
|
+
</pre></div>
|
140
|
+
</div>
|
141
|
+
</dd>
|
142
|
+
<dt><tt class="docutils literal"><span class="pre">column</span></tt></dt>
|
143
|
+
<dd>It specifies a column name that has furigana in
|
144
|
+
Katakana in <tt class="docutils literal"><span class="pre">table</span></tt> table.</dd>
|
145
|
+
<dt><tt class="docutils literal"><span class="pre">query</span></tt></dt>
|
146
|
+
<dd>It specifies query for completion, correction and/or
|
147
|
+
suggestion.</dd>
|
148
|
+
<dt><tt class="docutils literal"><span class="pre">sortby</span></tt></dt>
|
149
|
+
<dd><p class="first">It specifies sort key.</p>
|
150
|
+
<dl class="last docutils">
|
151
|
+
<dt>Default:</dt>
|
152
|
+
<dd><tt class="docutils literal"><span class="pre">-_score</span></tt></dd>
|
153
|
+
</dl>
|
154
|
+
</dd>
|
155
|
+
<dt><tt class="docutils literal"><span class="pre">output_columns</span></tt></dt>
|
156
|
+
<dd><p class="first">It specifies output columns.</p>
|
157
|
+
<dl class="last docutils">
|
158
|
+
<dt>Default:</dt>
|
159
|
+
<dd><tt class="docutils literal"><span class="pre">_key,_score</span></tt></dd>
|
160
|
+
</dl>
|
161
|
+
</dd>
|
162
|
+
<dt><tt class="docutils literal"><span class="pre">offset</span></tt></dt>
|
163
|
+
<dd><p class="first">It specifies returned records offset.</p>
|
164
|
+
<dl class="last docutils">
|
165
|
+
<dt>Default:</dt>
|
166
|
+
<dd><tt class="docutils literal"><span class="pre">0</span></tt></dd>
|
167
|
+
</dl>
|
168
|
+
</dd>
|
169
|
+
<dt><tt class="docutils literal"><span class="pre">limit</span></tt></dt>
|
170
|
+
<dd><p class="first">It specifies number of returned records.</p>
|
171
|
+
<dl class="last docutils">
|
172
|
+
<dt>Default:</dt>
|
173
|
+
<dd><tt class="docutils literal"><span class="pre">10</span></tt></dd>
|
174
|
+
</dl>
|
175
|
+
</dd>
|
176
|
+
<dt><tt class="docutils literal"><span class="pre">frequency_threshold</span></tt></dt>
|
177
|
+
<dd><p class="first">It specifies threshold for item frequency. Returned records must have
|
178
|
+
<tt class="docutils literal"><span class="pre">_score</span></tt> that is greater than or equal to <tt class="docutils literal"><span class="pre">frequency_threshold</span></tt>.</p>
|
179
|
+
<dl class="last docutils">
|
180
|
+
<dt>Default:</dt>
|
181
|
+
<dd><tt class="docutils literal"><span class="pre">100</span></tt></dd>
|
182
|
+
</dl>
|
183
|
+
</dd>
|
184
|
+
</dl>
|
185
|
+
<p><tt class="docutils literal"><span class="pre">conditional_probability_threshold</span></tt></p>
|
103
186
|
<blockquote>
|
104
|
-
<div
|
105
|
-
|
187
|
+
<div><p>It specifies threshold for conditional
|
188
|
+
probability. Conditional probability is used for learned
|
189
|
+
data. It is probability of query submission when <tt class="docutils literal"><span class="pre">query</span></tt>
|
190
|
+
is occurred. Returned records must have conditional
|
191
|
+
probability that is greater than or equal to
|
192
|
+
<tt class="docutils literal"><span class="pre">conditional_probability_threshold</span></tt>.</p>
|
193
|
+
<dl class="docutils">
|
194
|
+
<dt>Default:</dt>
|
195
|
+
<dd><tt class="docutils literal"><span class="pre">0.2</span></tt></dd>
|
196
|
+
</dl>
|
197
|
+
</div></blockquote>
|
198
|
+
<dl class="docutils">
|
199
|
+
<dt><tt class="docutils literal"><span class="pre">prefix_search</span></tt></dt>
|
200
|
+
<dd><p class="first">It specifies whether optional prefix search is used or not
|
201
|
+
in completion.</p>
|
202
|
+
<p>Here are available values:</p>
|
106
203
|
<blockquote>
|
107
|
-
<div
|
204
|
+
<div><dl class="docutils">
|
205
|
+
<dt><tt class="docutils literal"><span class="pre">yes</span></tt></dt>
|
206
|
+
<dd>Prefix search is always used.</dd>
|
207
|
+
<dt><tt class="docutils literal"><span class="pre">no</span></tt></dt>
|
208
|
+
<dd>Prefix search is never used.</dd>
|
209
|
+
<dt><tt class="docutils literal"><span class="pre">auto</span></tt></dt>
|
210
|
+
<dd>Prefix search is used only when other search can't
|
211
|
+
find any records.</dd>
|
212
|
+
</dl>
|
108
213
|
</div></blockquote>
|
109
|
-
<
|
214
|
+
<dl class="last docutils">
|
215
|
+
<dt>Default:</dt>
|
216
|
+
<dd><tt class="docutils literal"><span class="pre">auto</span></tt></dd>
|
217
|
+
</dl>
|
218
|
+
</dd>
|
219
|
+
</dl>
|
220
|
+
</div>
|
221
|
+
<div class="section" id="return-value">
|
222
|
+
<h2>6.2.20.5. RETURN VALUE<a class="headerlink" href="#return-value" title="Permalink to this headline">¶</a></h2>
|
223
|
+
<div class="section" id="json-format">
|
224
|
+
<h3>6.2.20.5.1. JSON format<a class="headerlink" href="#json-format" title="Permalink to this headline">¶</a></h3>
|
225
|
+
<p>Here is a returned JSON format:</p>
|
226
|
+
<div class="highlight-none"><div class="highlight"><pre>{"type1": [["candidate1", score of candidate1],
|
227
|
+
["candidate2", score of candidate2],
|
228
|
+
...],
|
229
|
+
"type2": [["candidate1", score of candidate1],
|
230
|
+
["candidate2", score of candidate2],
|
231
|
+
...],
|
232
|
+
...}
|
233
|
+
</pre></div>
|
234
|
+
</div>
|
235
|
+
<p><tt class="docutils literal"><span class="pre">type</span></tt></p>
|
110
236
|
<blockquote>
|
111
|
-
<div
|
112
|
-
<p><tt class="docutils literal"><span class="pre">
|
237
|
+
<div>A type specified by <tt class="docutils literal"><span class="pre">types</span></tt>.</div></blockquote>
|
238
|
+
<p><tt class="docutils literal"><span class="pre">candidate</span></tt></p>
|
113
239
|
<blockquote>
|
114
|
-
<div
|
115
|
-
<p><tt class="docutils literal"><span class="pre">
|
240
|
+
<div>A candidate for completion, correction or suggestion.</div></blockquote>
|
241
|
+
<p><tt class="docutils literal"><span class="pre">score</span> <span class="pre">of</span> <span class="pre">candidate</span></tt></p>
|
116
242
|
<blockquote>
|
117
|
-
<div
|
243
|
+
<div>A score of corresponding <tt class="docutils literal"><span class="pre">candidate</span></tt>. It means that
|
244
|
+
higher score candidate is more likely candidate for
|
245
|
+
completion, correction or suggestion. Returned candidates
|
246
|
+
are sorted by <tt class="docutils literal"><span class="pre">score</span> <span class="pre">of</span> <span class="pre">candidate</span></tt> descending by
|
247
|
+
default.</div></blockquote>
|
118
248
|
</div>
|
119
|
-
|
120
|
-
<
|
121
|
-
<
|
122
|
-
<
|
123
|
-
<
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
249
|
+
</div>
|
250
|
+
<div class="section" id="example">
|
251
|
+
<h2>6.2.20.6. EXAMPLE<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h2>
|
252
|
+
<p>Here are learned data for completion.</p>
|
253
|
+
<p>Execution example:</p>
|
254
|
+
<div class="highlight-none"><div class="highlight"><pre>> load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
255
|
+
> [
|
256
|
+
> {"sequence": "1", "time": 1312950803.86057, "item": "e"},
|
257
|
+
> {"sequence": "1", "time": 1312950803.96857, "item": "en"},
|
258
|
+
> {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
|
259
|
+
> {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
|
260
|
+
> {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
|
261
|
+
> {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
|
262
|
+
> ]
|
263
|
+
[[0,1313562872.82845,1.577141877],6]
|
264
|
+
</pre></div>
|
265
|
+
</div>
|
266
|
+
<p>Here are learned data for correction.</p>
|
267
|
+
<p>Execution example:</p>
|
268
|
+
<div class="highlight-none"><div class="highlight"><pre>> load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
269
|
+
> [
|
270
|
+
> {"sequence": "2", "time": 1312950803.86057, "item": "s"},
|
271
|
+
> {"sequence": "2", "time": 1312950803.96857, "item": "sa"},
|
272
|
+
> {"sequence": "2", "time": 1312950804.26057, "item": "sae"},
|
273
|
+
> {"sequence": "2", "time": 1312950804.56057, "item": "saer"},
|
274
|
+
> {"sequence": "2", "time": 1312950804.76057, "item": "saerc"},
|
275
|
+
> {"sequence": "2", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
|
276
|
+
> {"sequence": "2", "time": 1312950809.76057, "item": "serch"},
|
277
|
+
> {"sequence": "2", "time": 1312950810.86057, "item": "search", "type": "submit"}
|
278
|
+
> ]
|
279
|
+
[[0,1313562874.6075,2.004191545],8]
|
280
|
+
</pre></div>
|
281
|
+
</div>
|
282
|
+
<p>Here are learned data for suggestion.</p>
|
283
|
+
<p>Execution example:</p>
|
284
|
+
<div class="highlight-none"><div class="highlight"><pre>> load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
285
|
+
> [
|
286
|
+
> {"sequence": "3", "time": 1312950803.86057, "item": "search engine", "type": "submit"},
|
287
|
+
> {"sequence": "3", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"}
|
288
|
+
> ]
|
289
|
+
[[0,1313562876.81305,0.801821271],2]
|
136
290
|
</pre></div>
|
137
291
|
</div>
|
292
|
+
<p>Here is a completion example.</p>
|
293
|
+
<p>Execution example:</p>
|
294
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types complete --threshold 1 --query en
|
295
|
+
[[0,1313562877.81745,0.001827712],{"complete":[[1],[["_key","ShortText"],["_score","Int32"]],["engine",1]]}]
|
296
|
+
</pre></div>
|
297
|
+
</div>
|
298
|
+
<p>Here is a correction example.</p>
|
299
|
+
<p>Execution example:</p>
|
300
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types correct --threshold 1 --query saerch
|
301
|
+
[[0,1313562878.02203,0.000442789],{"correct":[[1],[["_key","ShortText"],["_score","Int32"]],["search",1]]}]
|
302
|
+
</pre></div>
|
303
|
+
</div>
|
304
|
+
<p>Here is a suggestion example.</p>
|
305
|
+
<p>Execution example:</p>
|
306
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types suggest --threshold 1 --query search
|
307
|
+
[[0,1313562878.22422,0.000812428],{"suggest":[[2],[["_key","ShortText"],["_score","Int32"]],["search engine",1],["web search realtime",1]]}]
|
308
|
+
</pre></div>
|
138
309
|
</div>
|
310
|
+
<p>Here is a mixed example.</p>
|
311
|
+
<p>Execution example:</p>
|
312
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types complete|correct|suggest --threshold 1 --query search
|
313
|
+
[[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]]}]
|
314
|
+
</pre></div>
|
315
|
+
</div>
|
316
|
+
</div>
|
317
|
+
<div class="section" id="see-also">
|
318
|
+
<h2>6.2.20.7. SEE ALSO<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
|
319
|
+
<ul class="simple">
|
320
|
+
<li><a class="reference internal" href="../suggest.html"><em>Suggest</em></a></li>
|
321
|
+
<li><a class="reference internal" href="../executables/groonga-suggest-create-dataset.html"><em>groonga-suggest-create-dataset</em></a></li>
|
322
|
+
</ul>
|
139
323
|
</div>
|
140
324
|
</div>
|
141
325
|
|
@@ -147,25 +331,27 @@
|
|
147
331
|
<div class="sphinxsidebarwrapper">
|
148
332
|
<h3><a href="../index.html">Table Of Contents</a></h3>
|
149
333
|
<ul>
|
150
|
-
<li><a class="reference internal" href="#">
|
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="#json">
|
334
|
+
<li><a class="reference internal" href="#">6.2.20. suggest</a><ul>
|
335
|
+
<li><a class="reference internal" href="#name">6.2.20.1. NAME</a></li>
|
336
|
+
<li><a class="reference internal" href="#synopsis">6.2.20.2. SYNOPSIS</a></li>
|
337
|
+
<li><a class="reference internal" href="#description">6.2.20.3. DESCRIPTION</a></li>
|
338
|
+
<li><a class="reference internal" href="#options">6.2.20.4. OPTIONS</a></li>
|
339
|
+
<li><a class="reference internal" href="#return-value">6.2.20.5. RETURN VALUE</a><ul>
|
340
|
+
<li><a class="reference internal" href="#json-format">6.2.20.5.1. JSON format</a></li>
|
157
341
|
</ul>
|
158
342
|
</li>
|
343
|
+
<li><a class="reference internal" href="#example">6.2.20.6. EXAMPLE</a></li>
|
344
|
+
<li><a class="reference internal" href="#see-also">6.2.20.7. SEE ALSO</a></li>
|
159
345
|
</ul>
|
160
346
|
</li>
|
161
347
|
</ul>
|
162
348
|
|
163
349
|
<h4>Previous topic</h4>
|
164
350
|
<p class="topless"><a href="status.html"
|
165
|
-
title="previous chapter">
|
351
|
+
title="previous chapter">6.2.19. status</a></p>
|
166
352
|
<h4>Next topic</h4>
|
167
353
|
<p class="topless"><a href="table_create.html"
|
168
|
-
title="next chapter">
|
354
|
+
title="next chapter">6.2.21. table_create</a></p>
|
169
355
|
<h3>This Page</h3>
|
170
356
|
<ul class="this-page-menu">
|
171
357
|
<li><a href="../_sources/commands/suggest.txt"
|
@@ -195,14 +381,14 @@
|
|
195
381
|
<a href="../genindex.html" title="General Index"
|
196
382
|
>index</a></li>
|
197
383
|
<li class="right" >
|
198
|
-
<a href="table_create.html" title="
|
384
|
+
<a href="table_create.html" title="6.2.21. table_create"
|
199
385
|
>next</a> |</li>
|
200
386
|
<li class="right" >
|
201
|
-
<a href="status.html" title="
|
387
|
+
<a href="status.html" title="6.2.19. status"
|
202
388
|
>previous</a> |</li>
|
203
|
-
<li><a href="../index.html">groonga v1.2.
|
204
|
-
<li><a href="../reference.html" >
|
205
|
-
<li><a href="../commands.html" >
|
389
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
390
|
+
<li><a href="../reference.html" >6. リファレンスマニュアル</a> »</li>
|
391
|
+
<li><a href="../commands.html" >6.2. コマンド</a> »</li>
|
206
392
|
</ul>
|
207
393
|
</div>
|
208
394
|
<div class="footer">
|