rroonga 1.2.5-x86-mingw32 → 1.2.7-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/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
@@ -1,4 +1,4 @@
|
|
1
|
-
.TH "GROONGA" "1" "August
|
1
|
+
.TH "GROONGA" "1" "August 28, 2011" "1.2.5" "groonga"
|
2
2
|
.SH NAME
|
3
3
|
groonga \- groonga documentation
|
4
4
|
.
|
@@ -257,7 +257,16 @@ Install:
|
|
257
257
|
% brew install groonga
|
258
258
|
.ft P
|
259
259
|
.fi
|
260
|
-
.SS Windows
|
260
|
+
.SS Windows (Installer)
|
261
|
+
.IP Note
|
262
|
+
.
|
263
|
+
We only distribute the package for x64.
|
264
|
+
.RE
|
265
|
+
.sp
|
266
|
+
You just download installer (.exe file) from
|
267
|
+
\fI\%packages.groonga.org/windows/\fP
|
268
|
+
and execute it.
|
269
|
+
.SS Windows (zip)
|
261
270
|
.IP Note
|
262
271
|
.
|
263
272
|
We only distribute the package for x64.
|
@@ -265,7 +274,7 @@ We only distribute the package for x64.
|
|
265
274
|
.sp
|
266
275
|
You just download zip\-file from
|
267
276
|
\fI\%packages.groonga.org/windows/\fP
|
268
|
-
and extract it.
|
277
|
+
and extract it.
|
269
278
|
.SS Others
|
270
279
|
.sp
|
271
280
|
If you will use indexes of tokenizing of each morpheme for
|
@@ -381,7 +390,7 @@ groonga実行ファイルやgroongaサーバを介して様々なコマンドを
|
|
381
390
|
.sp
|
382
391
|
書式2において、空白や、記号「"\(aq()」のうちいずれかを含む値を指定したい場合は、シングルクォート(\(aq)かダブルクォート(")で値を囲みます。
|
383
392
|
.sp
|
384
|
-
詳しくは、 \fB/
|
393
|
+
詳しくは、 \fB/executables/groonga\fP のコマンドの項を参考にしてください。
|
385
394
|
.SS 主なコマンド
|
386
395
|
.INDENT 0.0
|
387
396
|
.INDENT 3.5
|
@@ -1828,6 +1837,826 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
|
|
1828
1837
|
.fi
|
1829
1838
|
.sp
|
1830
1839
|
2010/03/17 14:00:00以前に書かれたコメント5件がヒットしました。また、ドリルダウンの結果も返ってきており、「hsiomaneki」が2件、「グニャラくん」が3件ヒットしていることがわかります。
|
1840
|
+
.SH SUGGEST
|
1841
|
+
.IP Note
|
1842
|
+
.
|
1843
|
+
The suggest feature specification isn\(aqt stable. The
|
1844
|
+
specification may be changed.
|
1845
|
+
.RE
|
1846
|
+
.sp
|
1847
|
+
Groonga has the suggest feature. This section describes how to use it and how it works.
|
1848
|
+
.SS Introduction
|
1849
|
+
.sp
|
1850
|
+
The suggest feature in groonga provides the following features:
|
1851
|
+
.INDENT 0.0
|
1852
|
+
.IP \(bu 2
|
1853
|
+
.
|
1854
|
+
Completion
|
1855
|
+
.IP \(bu 2
|
1856
|
+
.
|
1857
|
+
Correction
|
1858
|
+
.IP \(bu 2
|
1859
|
+
.
|
1860
|
+
Suggestion
|
1861
|
+
.UNINDENT
|
1862
|
+
.SS Completion
|
1863
|
+
.sp
|
1864
|
+
Completion helps user input. If user inputs a partial word,
|
1865
|
+
groonga can return complete words from registered
|
1866
|
+
words.
|
1867
|
+
.sp
|
1868
|
+
For example, there are registered words:
|
1869
|
+
.INDENT 0.0
|
1870
|
+
.IP \(bu 2
|
1871
|
+
.
|
1872
|
+
"groonga"
|
1873
|
+
.IP \(bu 2
|
1874
|
+
.
|
1875
|
+
"complete"
|
1876
|
+
.IP \(bu 2
|
1877
|
+
.
|
1878
|
+
"correction"
|
1879
|
+
.IP \(bu 2
|
1880
|
+
.
|
1881
|
+
"suggest"
|
1882
|
+
.UNINDENT
|
1883
|
+
.sp
|
1884
|
+
An user inputs "co" and groonga returns "complete" and
|
1885
|
+
"correction" because they starts with "co".
|
1886
|
+
.sp
|
1887
|
+
An user inputs "sug" and groonga returns "suggest" because
|
1888
|
+
"suggest" starts with "sug".
|
1889
|
+
.sp
|
1890
|
+
An user inputs "ab" and groonga returns nothing because no
|
1891
|
+
word starts with "ab".
|
1892
|
+
.SS Correction
|
1893
|
+
.sp
|
1894
|
+
Correction also helps user input. If user inputs a wrong
|
1895
|
+
word, groonga can return correct words from registered
|
1896
|
+
correction pairs.
|
1897
|
+
.sp
|
1898
|
+
For example, there are registered correction pairs:
|
1899
|
+
.TS
|
1900
|
+
center;
|
1901
|
+
|l|l|.
|
1902
|
+
_
|
1903
|
+
T{
|
1904
|
+
wrong word
|
1905
|
+
T} T{
|
1906
|
+
correct word
|
1907
|
+
T}
|
1908
|
+
_
|
1909
|
+
T{
|
1910
|
+
grroonga
|
1911
|
+
gronga
|
1912
|
+
gronnga
|
1913
|
+
T} T{
|
1914
|
+
groonga
|
1915
|
+
groonga
|
1916
|
+
groonga
|
1917
|
+
T}
|
1918
|
+
_
|
1919
|
+
.TE
|
1920
|
+
.sp
|
1921
|
+
An user inputs "gronga" and groonga returns "groonga" because
|
1922
|
+
"gronga" is in wrong word and corresponding correct word is
|
1923
|
+
"groonga".
|
1924
|
+
.sp
|
1925
|
+
An user inputs "roonga" and groonga returns nothing because
|
1926
|
+
"roonga" isn\(aqt in wrong word.
|
1927
|
+
.SS Suggestion
|
1928
|
+
.sp
|
1929
|
+
Suggestion helps that user filters many found documents. If
|
1930
|
+
user inputs a query, groonga can return new queries that has
|
1931
|
+
more additional keywords from registered related query
|
1932
|
+
pairs.
|
1933
|
+
.sp
|
1934
|
+
For example, there are registered related query pairs:
|
1935
|
+
.TS
|
1936
|
+
center;
|
1937
|
+
|l|l|.
|
1938
|
+
_
|
1939
|
+
T{
|
1940
|
+
keyword
|
1941
|
+
T} T{
|
1942
|
+
related query
|
1943
|
+
T}
|
1944
|
+
_
|
1945
|
+
T{
|
1946
|
+
groonga
|
1947
|
+
T} T{
|
1948
|
+
groonga search engine
|
1949
|
+
T}
|
1950
|
+
_
|
1951
|
+
T{
|
1952
|
+
search
|
1953
|
+
T} T{
|
1954
|
+
Google search
|
1955
|
+
T}
|
1956
|
+
_
|
1957
|
+
T{
|
1958
|
+
speed
|
1959
|
+
T} T{
|
1960
|
+
groonga speed
|
1961
|
+
T}
|
1962
|
+
_
|
1963
|
+
.TE
|
1964
|
+
.sp
|
1965
|
+
An user inputs "groonga" and groonga returns "groonga search
|
1966
|
+
engine" because "groonga" is in keyword column and related
|
1967
|
+
query column is "groonga search engine".
|
1968
|
+
.sp
|
1969
|
+
An user inputs "MySQL" and groonga returns nothing because
|
1970
|
+
"MySQL" isn\(aqt in keyword column values.
|
1971
|
+
.SS Learning
|
1972
|
+
.sp
|
1973
|
+
The suggest feature requires registered data before using
|
1974
|
+
the feature. Those data can be registered from user inputs.
|
1975
|
+
Gronnga\-suggest\-httpd and groonga\-suggest\-learner commands
|
1976
|
+
are provided for the propose.
|
1977
|
+
.SS Tutorial
|
1978
|
+
.sp
|
1979
|
+
TODO...
|
1980
|
+
.SS Completion
|
1981
|
+
.sp
|
1982
|
+
This section describes about the following completion
|
1983
|
+
features:
|
1984
|
+
.INDENT 0.0
|
1985
|
+
.IP \(bu 2
|
1986
|
+
.
|
1987
|
+
How it works
|
1988
|
+
.IP \(bu 2
|
1989
|
+
.
|
1990
|
+
How to use
|
1991
|
+
.IP \(bu 2
|
1992
|
+
.
|
1993
|
+
How to learn
|
1994
|
+
.UNINDENT
|
1995
|
+
.SS How it works
|
1996
|
+
.sp
|
1997
|
+
The completion feature uses three searches to compute
|
1998
|
+
completed words:
|
1999
|
+
.INDENT 0.0
|
2000
|
+
.INDENT 3.5
|
2001
|
+
.INDENT 0.0
|
2002
|
+
.IP 1. 3
|
2003
|
+
.
|
2004
|
+
Prefix RK search against registered words.
|
2005
|
+
.IP 2. 3
|
2006
|
+
.
|
2007
|
+
Cooccurrence search against learned data.
|
2008
|
+
.IP 3. 3
|
2009
|
+
.
|
2010
|
+
Prefix search against registered words. (optional)
|
2011
|
+
.UNINDENT
|
2012
|
+
.UNINDENT
|
2013
|
+
.UNINDENT
|
2014
|
+
.SS Prefix RK search
|
2015
|
+
.sp
|
2016
|
+
RK means Romaji and Katakana. Prefix RK search can find
|
2017
|
+
registered words that start with user\(aqs input by romaji,
|
2018
|
+
katakana or hiragana. It\(aqs useful for searching in Japanese.
|
2019
|
+
.sp
|
2020
|
+
For example, there is a registered word "日本". And "ニホン"
|
2021
|
+
(it must be katakana) is registered as its reading. An user
|
2022
|
+
can find "日本" by "ni", "二" or "に".
|
2023
|
+
.SS Cooccurrence search
|
2024
|
+
.sp
|
2025
|
+
Cooccurrence search can find registered words from user\(aqs
|
2026
|
+
partial input. It uses user input sequences that will be
|
2027
|
+
learned from query logs, access logs and so on.
|
2028
|
+
.sp
|
2029
|
+
For example, there is the following user input sequence:
|
2030
|
+
.TS
|
2031
|
+
center;
|
2032
|
+
|l|l|.
|
2033
|
+
_
|
2034
|
+
T{
|
2035
|
+
input
|
2036
|
+
T} T{
|
2037
|
+
submit
|
2038
|
+
T}
|
2039
|
+
_
|
2040
|
+
T{
|
2041
|
+
s
|
2042
|
+
T} T{
|
2043
|
+
no
|
2044
|
+
T}
|
2045
|
+
_
|
2046
|
+
T{
|
2047
|
+
se
|
2048
|
+
T} T{
|
2049
|
+
no
|
2050
|
+
T}
|
2051
|
+
_
|
2052
|
+
T{
|
2053
|
+
sea
|
2054
|
+
T} T{
|
2055
|
+
no
|
2056
|
+
T}
|
2057
|
+
_
|
2058
|
+
T{
|
2059
|
+
sear
|
2060
|
+
T} T{
|
2061
|
+
no
|
2062
|
+
T}
|
2063
|
+
_
|
2064
|
+
T{
|
2065
|
+
searc
|
2066
|
+
T} T{
|
2067
|
+
no
|
2068
|
+
T}
|
2069
|
+
_
|
2070
|
+
T{
|
2071
|
+
search
|
2072
|
+
T} T{
|
2073
|
+
yes
|
2074
|
+
T}
|
2075
|
+
_
|
2076
|
+
T{
|
2077
|
+
e
|
2078
|
+
T} T{
|
2079
|
+
no
|
2080
|
+
T}
|
2081
|
+
_
|
2082
|
+
T{
|
2083
|
+
en
|
2084
|
+
T} T{
|
2085
|
+
no
|
2086
|
+
T}
|
2087
|
+
_
|
2088
|
+
T{
|
2089
|
+
eng
|
2090
|
+
T} T{
|
2091
|
+
no
|
2092
|
+
T}
|
2093
|
+
_
|
2094
|
+
T{
|
2095
|
+
engi
|
2096
|
+
T} T{
|
2097
|
+
no
|
2098
|
+
T}
|
2099
|
+
_
|
2100
|
+
T{
|
2101
|
+
engin
|
2102
|
+
T} T{
|
2103
|
+
no
|
2104
|
+
T}
|
2105
|
+
_
|
2106
|
+
T{
|
2107
|
+
engine
|
2108
|
+
T} T{
|
2109
|
+
no
|
2110
|
+
T}
|
2111
|
+
_
|
2112
|
+
T{
|
2113
|
+
enginen
|
2114
|
+
T} T{
|
2115
|
+
no (typo!)
|
2116
|
+
T}
|
2117
|
+
_
|
2118
|
+
T{
|
2119
|
+
engine
|
2120
|
+
T} T{
|
2121
|
+
yes
|
2122
|
+
T}
|
2123
|
+
_
|
2124
|
+
.TE
|
2125
|
+
.sp
|
2126
|
+
Groonga creates the following completion pairs:
|
2127
|
+
.TS
|
2128
|
+
center;
|
2129
|
+
|l|l|.
|
2130
|
+
_
|
2131
|
+
T{
|
2132
|
+
input
|
2133
|
+
T} T{
|
2134
|
+
completed word
|
2135
|
+
T}
|
2136
|
+
_
|
2137
|
+
T{
|
2138
|
+
s
|
2139
|
+
T} T{
|
2140
|
+
search
|
2141
|
+
T}
|
2142
|
+
_
|
2143
|
+
T{
|
2144
|
+
se
|
2145
|
+
T} T{
|
2146
|
+
search
|
2147
|
+
T}
|
2148
|
+
_
|
2149
|
+
T{
|
2150
|
+
sea
|
2151
|
+
T} T{
|
2152
|
+
search
|
2153
|
+
T}
|
2154
|
+
_
|
2155
|
+
T{
|
2156
|
+
sear
|
2157
|
+
T} T{
|
2158
|
+
search
|
2159
|
+
T}
|
2160
|
+
_
|
2161
|
+
T{
|
2162
|
+
searc
|
2163
|
+
T} T{
|
2164
|
+
search
|
2165
|
+
T}
|
2166
|
+
_
|
2167
|
+
T{
|
2168
|
+
e
|
2169
|
+
T} T{
|
2170
|
+
engine
|
2171
|
+
T}
|
2172
|
+
_
|
2173
|
+
T{
|
2174
|
+
en
|
2175
|
+
T} T{
|
2176
|
+
engine
|
2177
|
+
T}
|
2178
|
+
_
|
2179
|
+
T{
|
2180
|
+
eng
|
2181
|
+
T} T{
|
2182
|
+
engine
|
2183
|
+
T}
|
2184
|
+
_
|
2185
|
+
T{
|
2186
|
+
engi
|
2187
|
+
T} T{
|
2188
|
+
engine
|
2189
|
+
T}
|
2190
|
+
_
|
2191
|
+
T{
|
2192
|
+
engin
|
2193
|
+
T} T{
|
2194
|
+
engine
|
2195
|
+
T}
|
2196
|
+
_
|
2197
|
+
T{
|
2198
|
+
engine
|
2199
|
+
T} T{
|
2200
|
+
engine
|
2201
|
+
T}
|
2202
|
+
_
|
2203
|
+
T{
|
2204
|
+
enginen
|
2205
|
+
T} T{
|
2206
|
+
engine
|
2207
|
+
T}
|
2208
|
+
_
|
2209
|
+
.TE
|
2210
|
+
.sp
|
2211
|
+
All user not\-submitted inputs (e.g. "s", "se" and so on)
|
2212
|
+
before each an user submission maps to the submitted input
|
2213
|
+
(e.g. "search").
|
2214
|
+
.sp
|
2215
|
+
To be precise, this description isn\(aqt correct because it
|
2216
|
+
omits about time stamp. Groonga doesn\(aqt case about "all user
|
2217
|
+
not\-submitted inputs before each an user
|
2218
|
+
submission". Groonga just case about "all user not\-submitted
|
2219
|
+
inputs within a minute from an user submission before each
|
2220
|
+
an user submission". Groonga doesn\(aqt treat user inputs
|
2221
|
+
before a minute ago.
|
2222
|
+
.sp
|
2223
|
+
If an user inputs "sea" and cooccurrence search returns
|
2224
|
+
"search" because "sea" is in input column and corresponding
|
2225
|
+
completed word column value is "search".
|
2226
|
+
.SS Prefix search
|
2227
|
+
.sp
|
2228
|
+
Prefix search can find registered word that start with
|
2229
|
+
user\(aqs input. This search doesn\(aqt care about romaji,
|
2230
|
+
katakana and hiragana not like Prefix RK search.
|
2231
|
+
.sp
|
2232
|
+
This search isn\(aqt always ran. It\(aqs just ran when it\(aqs
|
2233
|
+
requested explicitly or both prefix RK search and
|
2234
|
+
cooccurrence search return nothing.
|
2235
|
+
.sp
|
2236
|
+
For example, there is a registered word "search". An user
|
2237
|
+
can find "search" by "s", "se", "sea", "sear", "searc" and
|
2238
|
+
"search".
|
2239
|
+
.SS How to use
|
2240
|
+
.sp
|
2241
|
+
Groonga provides \fB/commands/suggest\fP command to use
|
2242
|
+
completion. \fI\-\-type complete\fP option requests completion.
|
2243
|
+
.sp
|
2244
|
+
For example, here is an command to get completion results by
|
2245
|
+
"en":
|
2246
|
+
.sp
|
2247
|
+
Execution example:
|
2248
|
+
.sp
|
2249
|
+
.nf
|
2250
|
+
.ft C
|
2251
|
+
> suggest \-\-table item_query \-\-column kana \-\-types complete \-\-threshold 1 \-\-query en
|
2252
|
+
[[0,1313131879.64588,0.000913584],{"complete":[[1],[["_key","ShortText"],["_score","Int32"]],["engine",1]]}]
|
2253
|
+
.ft P
|
2254
|
+
.fi
|
2255
|
+
.SS How it learns
|
2256
|
+
.sp
|
2257
|
+
Cooccurrence search uses learned data. They are based on
|
2258
|
+
query logs, access logs and so on. To create learned data,
|
2259
|
+
groonga needs user input sequence with time stamp and user
|
2260
|
+
submit input with time stamp.
|
2261
|
+
.sp
|
2262
|
+
For example, an user wants to search by "engine". The user
|
2263
|
+
inputs the query with the following sequence:
|
2264
|
+
.INDENT 0.0
|
2265
|
+
.INDENT 3.5
|
2266
|
+
.INDENT 0.0
|
2267
|
+
.IP 1. 3
|
2268
|
+
.
|
2269
|
+
2011\-08\-10T13:33:23+09:00: e
|
2270
|
+
.IP 2. 3
|
2271
|
+
.
|
2272
|
+
2011\-08\-10T13:33:23+09:00: en
|
2273
|
+
.IP 3. 3
|
2274
|
+
.
|
2275
|
+
2011\-08\-10T13:33:24+09:00: eng
|
2276
|
+
.IP 4. 3
|
2277
|
+
.
|
2278
|
+
2011\-08\-10T13:33:24+09:00: engi
|
2279
|
+
.IP 5. 3
|
2280
|
+
.
|
2281
|
+
2011\-08\-10T13:33:24+09:00: engin
|
2282
|
+
.IP 6. 3
|
2283
|
+
.
|
2284
|
+
2011\-08\-10T13:33:25+09:00: engine (submit!)
|
2285
|
+
.UNINDENT
|
2286
|
+
.UNINDENT
|
2287
|
+
.UNINDENT
|
2288
|
+
.sp
|
2289
|
+
Groonga can be learned from the input sequence by the
|
2290
|
+
following command:
|
2291
|
+
.sp
|
2292
|
+
.nf
|
2293
|
+
.ft C
|
2294
|
+
load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
|
2295
|
+
[
|
2296
|
+
{"sequence": "1", "time": 1312950803.86057, "item": "e"},
|
2297
|
+
{"sequence": "1", "time": 1312950803.96857, "item": "en"},
|
2298
|
+
{"sequence": "1", "time": 1312950804.26057, "item": "eng"},
|
2299
|
+
{"sequence": "1", "time": 1312950804.56057, "item": "engi"},
|
2300
|
+
{"sequence": "1", "time": 1312950804.76057, "item": "engin"},
|
2301
|
+
{"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
|
2302
|
+
]
|
2303
|
+
.ft P
|
2304
|
+
.fi
|
2305
|
+
.SS Correction
|
2306
|
+
.sp
|
2307
|
+
This section describes about the following correction
|
2308
|
+
features:
|
2309
|
+
.INDENT 0.0
|
2310
|
+
.IP \(bu 2
|
2311
|
+
.
|
2312
|
+
How it works
|
2313
|
+
.IP \(bu 2
|
2314
|
+
.
|
2315
|
+
How to use
|
2316
|
+
.IP \(bu 2
|
2317
|
+
.
|
2318
|
+
How to learn
|
2319
|
+
.UNINDENT
|
2320
|
+
.SS How it works
|
2321
|
+
.sp
|
2322
|
+
The correction feature uses three searches to compute corrected
|
2323
|
+
words:
|
2324
|
+
.INDENT 0.0
|
2325
|
+
.INDENT 3.5
|
2326
|
+
.INDENT 0.0
|
2327
|
+
.IP 1. 3
|
2328
|
+
.
|
2329
|
+
Cooccurrence search against learned data.
|
2330
|
+
.IP 2. 3
|
2331
|
+
.
|
2332
|
+
Similar search against registered words. (optional)
|
2333
|
+
.UNINDENT
|
2334
|
+
.UNINDENT
|
2335
|
+
.UNINDENT
|
2336
|
+
.SS Cooccurrence search
|
2337
|
+
.sp
|
2338
|
+
Cooccurrence search can find registered words from user\(aqs
|
2339
|
+
wrong input. It uses user submit sequences that will be
|
2340
|
+
learned from query logs, access logs and so on.
|
2341
|
+
.sp
|
2342
|
+
For example, there are the following user submissions:
|
2343
|
+
.TS
|
2344
|
+
center;
|
2345
|
+
|l|l|.
|
2346
|
+
_
|
2347
|
+
T{
|
2348
|
+
query
|
2349
|
+
T} T{
|
2350
|
+
time
|
2351
|
+
T}
|
2352
|
+
_
|
2353
|
+
T{
|
2354
|
+
serach (typo!)
|
2355
|
+
T} T{
|
2356
|
+
2011\-08\-10T22:20:50+09:00
|
2357
|
+
T}
|
2358
|
+
_
|
2359
|
+
T{
|
2360
|
+
search (fixed!)
|
2361
|
+
T} T{
|
2362
|
+
2011\-08\-10T22:20:52+09:00
|
2363
|
+
T}
|
2364
|
+
_
|
2365
|
+
.TE
|
2366
|
+
.sp
|
2367
|
+
Groonga creates the following correction pair from the above
|
2368
|
+
submissions:
|
2369
|
+
.TS
|
2370
|
+
center;
|
2371
|
+
|l|l|.
|
2372
|
+
_
|
2373
|
+
T{
|
2374
|
+
input
|
2375
|
+
T} T{
|
2376
|
+
corrected word
|
2377
|
+
T}
|
2378
|
+
_
|
2379
|
+
T{
|
2380
|
+
serach
|
2381
|
+
T} T{
|
2382
|
+
search
|
2383
|
+
T}
|
2384
|
+
_
|
2385
|
+
.TE
|
2386
|
+
.sp
|
2387
|
+
Groonga treats continuous submissions within a minute as
|
2388
|
+
input correction by user. Not submitted user input sequence
|
2389
|
+
between two submissions isn\(aqt used as learned data for
|
2390
|
+
correction.
|
2391
|
+
.sp
|
2392
|
+
If an user inputs "serach" and cooccurrence search returns
|
2393
|
+
"search" because "serach" is in input column and
|
2394
|
+
corresponding corrected word column value is "search".
|
2395
|
+
.SS Similar search
|
2396
|
+
.sp
|
2397
|
+
Similar search can find registered words that has one or
|
2398
|
+
more the same tokens as user input. TokenBigram tokenizer is
|
2399
|
+
used for tokenization because suggest dataset schema
|
2400
|
+
created by \fB/executables/groonga\-suggest\-create\-dataset\fP
|
2401
|
+
uses TokenBigram tokenizer as the default tokenizer.
|
2402
|
+
.sp
|
2403
|
+
For example, there is a registered query "search engine". An
|
2404
|
+
user can find "search engine" by "web search service",
|
2405
|
+
"sound engine" and so on. Because "search engine" and "web
|
2406
|
+
search engine" have the same token "search" and "search
|
2407
|
+
engine" and "sound engine" have the same token "engine".
|
2408
|
+
.sp
|
2409
|
+
"search engine" is tokenized to "search" and "engine"
|
2410
|
+
tokens. (Groonga\(aqs TokenBigram tokenizer doesn\(aqt tokenize
|
2411
|
+
two characters for continuous alphabets and continuous
|
2412
|
+
digits for reducing search
|
2413
|
+
noise. TokenBigramSplitSymbolAlphaDigit tokenizer should be
|
2414
|
+
used to ensure tokenizing to two characters.) "web search
|
2415
|
+
service" is tokenized to "web", "search" and
|
2416
|
+
"service". "sound engine" is tokenized to "sound" and
|
2417
|
+
"engine".
|
2418
|
+
.SS How to use
|
2419
|
+
.sp
|
2420
|
+
Groonga provides \fB/commands/suggest\fP command to use
|
2421
|
+
correction. \fI\-\-type correct\fP option requests corrections.
|
2422
|
+
.sp
|
2423
|
+
For example, here is an command to get correction results by
|
2424
|
+
"saerch":
|
2425
|
+
.sp
|
2426
|
+
Execution example:
|
2427
|
+
.sp
|
2428
|
+
.nf
|
2429
|
+
.ft C
|
2430
|
+
> suggest \-\-table item_query \-\-column kana \-\-types correction \-\-threshold 1 \-\-query saerch
|
2431
|
+
[[0,1313131812.39207,0.000783031],{"correct":[[1],[["_key","ShortText"],["_score","Int32"]],["search",1]]}]
|
2432
|
+
.ft P
|
2433
|
+
.fi
|
2434
|
+
.SS How it learns
|
2435
|
+
.sp
|
2436
|
+
Cooccurrence search uses learned data. They are based on
|
2437
|
+
query logs, access logs and so on. To create learned data,
|
2438
|
+
groonga needs user submit inputs with time stamp.
|
2439
|
+
.sp
|
2440
|
+
For example, an user wants to search by "search" but the
|
2441
|
+
user has typo "saerch" before inputs the correct query. The
|
2442
|
+
user inputs the query with the following sequence:
|
2443
|
+
.INDENT 0.0
|
2444
|
+
.INDENT 3.5
|
2445
|
+
.INDENT 0.0
|
2446
|
+
.IP 1. 3
|
2447
|
+
.
|
2448
|
+
2011\-08\-10T13:33:23+09:00: s
|
2449
|
+
.IP 2. 3
|
2450
|
+
.
|
2451
|
+
2011\-08\-10T13:33:23+09:00: sa
|
2452
|
+
.IP 3. 3
|
2453
|
+
.
|
2454
|
+
2011\-08\-10T13:33:24+09:00: sae
|
2455
|
+
.IP 4. 3
|
2456
|
+
.
|
2457
|
+
2011\-08\-10T13:33:24+09:00: saer
|
2458
|
+
.IP 5. 3
|
2459
|
+
.
|
2460
|
+
2011\-08\-10T13:33:24+09:00: saerc
|
2461
|
+
.IP 6. 3
|
2462
|
+
.
|
2463
|
+
2011\-08\-10T13:33:25+09:00: saerch (submit!)
|
2464
|
+
.IP 7. 3
|
2465
|
+
.
|
2466
|
+
2011\-08\-10T13:33:29+09:00: serch (correcting...)
|
2467
|
+
.IP 8. 3
|
2468
|
+
.
|
2469
|
+
2011\-08\-10T13:33:30+09:00: search (submit!)
|
2470
|
+
.UNINDENT
|
2471
|
+
.UNINDENT
|
2472
|
+
.UNINDENT
|
2473
|
+
.sp
|
2474
|
+
Groonga can be learned from the input sequence by the
|
2475
|
+
following command:
|
2476
|
+
.sp
|
2477
|
+
.nf
|
2478
|
+
.ft C
|
2479
|
+
load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
|
2480
|
+
[
|
2481
|
+
{"sequence": "1", "time": 1312950803.86057, "item": "s"},
|
2482
|
+
{"sequence": "1", "time": 1312950803.96857, "item": "sa"},
|
2483
|
+
{"sequence": "1", "time": 1312950804.26057, "item": "sae"},
|
2484
|
+
{"sequence": "1", "time": 1312950804.56057, "item": "saer"},
|
2485
|
+
{"sequence": "1", "time": 1312950804.76057, "item": "saerc"},
|
2486
|
+
{"sequence": "1", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
|
2487
|
+
{"sequence": "1", "time": 1312950809.76057, "item": "serch"},
|
2488
|
+
{"sequence": "1", "time": 1312950810.86057, "item": "search", "type": "submit"}
|
2489
|
+
]
|
2490
|
+
.ft P
|
2491
|
+
.fi
|
2492
|
+
.SS Suggestion
|
2493
|
+
.sp
|
2494
|
+
This section describes about the following completion
|
2495
|
+
features:
|
2496
|
+
.INDENT 0.0
|
2497
|
+
.IP \(bu 2
|
2498
|
+
.
|
2499
|
+
How it works
|
2500
|
+
.IP \(bu 2
|
2501
|
+
.
|
2502
|
+
How to use
|
2503
|
+
.IP \(bu 2
|
2504
|
+
.
|
2505
|
+
How to learn
|
2506
|
+
.UNINDENT
|
2507
|
+
.SS How it works
|
2508
|
+
.sp
|
2509
|
+
The suggestion feature uses a search to compute suggested
|
2510
|
+
words:
|
2511
|
+
.INDENT 0.0
|
2512
|
+
.INDENT 3.5
|
2513
|
+
.INDENT 0.0
|
2514
|
+
.IP 1. 3
|
2515
|
+
.
|
2516
|
+
Cooccurrence search against learned data.
|
2517
|
+
.UNINDENT
|
2518
|
+
.UNINDENT
|
2519
|
+
.UNINDENT
|
2520
|
+
.SS Cooccurrence search
|
2521
|
+
.sp
|
2522
|
+
Cooccurrence search can find related words from user\(aqs
|
2523
|
+
input. It uses user submissions that will be learned
|
2524
|
+
from query logs, access logs and so on.
|
2525
|
+
.sp
|
2526
|
+
For example, there are the following user submissions:
|
2527
|
+
.TS
|
2528
|
+
center;
|
2529
|
+
|l|.
|
2530
|
+
_
|
2531
|
+
T{
|
2532
|
+
query
|
2533
|
+
T}
|
2534
|
+
_
|
2535
|
+
T{
|
2536
|
+
search engine
|
2537
|
+
T}
|
2538
|
+
_
|
2539
|
+
T{
|
2540
|
+
web search realtime
|
2541
|
+
T}
|
2542
|
+
_
|
2543
|
+
.TE
|
2544
|
+
.sp
|
2545
|
+
Groonga creates the following suggestion pairs:
|
2546
|
+
.TS
|
2547
|
+
center;
|
2548
|
+
|l|l|.
|
2549
|
+
_
|
2550
|
+
T{
|
2551
|
+
input
|
2552
|
+
T} T{
|
2553
|
+
suggested words
|
2554
|
+
T}
|
2555
|
+
_
|
2556
|
+
T{
|
2557
|
+
search
|
2558
|
+
T} T{
|
2559
|
+
search engine
|
2560
|
+
T}
|
2561
|
+
_
|
2562
|
+
T{
|
2563
|
+
engine
|
2564
|
+
T} T{
|
2565
|
+
search engine
|
2566
|
+
T}
|
2567
|
+
_
|
2568
|
+
T{
|
2569
|
+
web
|
2570
|
+
T} T{
|
2571
|
+
web search realtime
|
2572
|
+
T}
|
2573
|
+
_
|
2574
|
+
T{
|
2575
|
+
search
|
2576
|
+
T} T{
|
2577
|
+
web search realtime
|
2578
|
+
T}
|
2579
|
+
_
|
2580
|
+
T{
|
2581
|
+
realtime
|
2582
|
+
T} T{
|
2583
|
+
web search realtime
|
2584
|
+
T}
|
2585
|
+
_
|
2586
|
+
.TE
|
2587
|
+
.sp
|
2588
|
+
Those pairs are created by the following steps:
|
2589
|
+
.INDENT 0.0
|
2590
|
+
.INDENT 3.5
|
2591
|
+
.INDENT 0.0
|
2592
|
+
.IP 1. 3
|
2593
|
+
.
|
2594
|
+
Tokenizes user input query by TokenDelimit tokenizer
|
2595
|
+
that uses a space as token delimiter. (e.g. "search
|
2596
|
+
engine" is tokenized to two tokens "search" and
|
2597
|
+
"engine".)
|
2598
|
+
.IP 2. 3
|
2599
|
+
.
|
2600
|
+
Creates a pair that is consists of a token and original
|
2601
|
+
query for each token.
|
2602
|
+
.UNINDENT
|
2603
|
+
.UNINDENT
|
2604
|
+
.UNINDENT
|
2605
|
+
.sp
|
2606
|
+
If an user inputs "search" and cooccurrence search returns
|
2607
|
+
"search engine" and "web search realtime" because "search" is
|
2608
|
+
in two input columns and corresponding suggested word
|
2609
|
+
columns have "search engine" and "web search realtime".
|
2610
|
+
.SS How to use
|
2611
|
+
.sp
|
2612
|
+
Groonga provides \fB/commands/suggest\fP command to use
|
2613
|
+
suggestion. \fI\-\-type suggest\fP option requests suggestion
|
2614
|
+
.sp
|
2615
|
+
For example, here is an command to get suggestion results by
|
2616
|
+
"search":
|
2617
|
+
.sp
|
2618
|
+
Execution example:
|
2619
|
+
.sp
|
2620
|
+
.nf
|
2621
|
+
.ft C
|
2622
|
+
> suggest \-\-table item_query \-\-column kana \-\-types suggest \-\-threshold 1 \-\-query search
|
2623
|
+
[[0,1313131808.92868,0.000607197],{"suggest":[[2],[["_key","ShortText"],["_score","Int32"]],["search engine",1],["web search realtime",1]]}]
|
2624
|
+
.ft P
|
2625
|
+
.fi
|
2626
|
+
.SS How it learns
|
2627
|
+
.sp
|
2628
|
+
Cooccurrence search uses learned data. They are based on
|
2629
|
+
query logs, access logs and so on. To create learned data,
|
2630
|
+
groonga needs user input sequence with time stamp and user
|
2631
|
+
submit input with time stamp.
|
2632
|
+
.sp
|
2633
|
+
For example, an user wants to search by "engine". The user
|
2634
|
+
inputs the query with the following sequence:
|
2635
|
+
.INDENT 0.0
|
2636
|
+
.INDENT 3.5
|
2637
|
+
.INDENT 0.0
|
2638
|
+
.IP 1. 3
|
2639
|
+
.
|
2640
|
+
2011\-08\-10T13:33:23+09:00: search engine (submit)
|
2641
|
+
.IP 2. 3
|
2642
|
+
.
|
2643
|
+
2011\-08\-10T13:33:28+09:00: web search realtime (submit)
|
2644
|
+
.UNINDENT
|
2645
|
+
.UNINDENT
|
2646
|
+
.UNINDENT
|
2647
|
+
.sp
|
2648
|
+
Groonga can be learned from the submissions by the
|
2649
|
+
following command:
|
2650
|
+
.sp
|
2651
|
+
.nf
|
2652
|
+
.ft C
|
2653
|
+
load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
|
2654
|
+
[
|
2655
|
+
{"sequence": "1", "time": 1312950803.86057, "item": "search engine", "type": "submit"},
|
2656
|
+
{"sequence": "1", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"}
|
2657
|
+
]
|
2658
|
+
.ft P
|
2659
|
+
.fi
|
1831
2660
|
.SH リファレンスマニュアル
|
1832
2661
|
.SS 実行ファイル
|
1833
2662
|
.sp
|
@@ -2070,7 +2899,7 @@ out_gqtp コマンドファイル 出力ファイル名
|
|
2070
2899
|
.UNINDENT
|
2071
2900
|
.SS コマンドファイル
|
2072
2901
|
.sp
|
2073
|
-
コマンドファイルは、groonga組み込みコマンドを1行に1つずつ記述したテキストファイルです。拡張子に制限はありません。groonga組み込みコマンドに関しては \
|
2902
|
+
コマンドファイルは、groonga組み込みコマンドを1行に1つずつ記述したテキストファイルです。拡張子に制限はありません。groonga組み込みコマンドに関しては \fB/commands\fP を参照してください。
|
2074
2903
|
.SS サンプル
|
2075
2904
|
.sp
|
2076
2905
|
スクリプトファイルのサンプルです。:
|
@@ -2591,10 +3420,41 @@ GETメソッドのみが使用可能です。
|
|
2591
3420
|
.sp
|
2592
3421
|
output_typeにはjson, tsv, xmlが指定可能です。
|
2593
3422
|
.sp
|
2594
|
-
command_versionはコマンドの仕様の互換性を指定します。詳細は \
|
3423
|
+
command_versionはコマンドの仕様の互換性を指定します。詳細は \fB/command_version\fP を参照してください。
|
2595
3424
|
.SS 返値
|
2596
3425
|
.sp
|
2597
3426
|
output_typeの指定に従って、コマンドの実行結果を出力します。
|
3427
|
+
.SS groonga\-suggest\-create\-dataset
|
3428
|
+
.SS NAME
|
3429
|
+
.sp
|
3430
|
+
groonga\-suggest\-create\-dataset \- Defines schema for a suggestion dataset
|
3431
|
+
.SS SYNOPSTIS
|
3432
|
+
.sp
|
3433
|
+
.nf
|
3434
|
+
.ft C
|
3435
|
+
groonga\-suggest\-create\-dataset [options] DATABASE DATASET
|
3436
|
+
.ft P
|
3437
|
+
.fi
|
3438
|
+
.SS DESCTIPION
|
3439
|
+
.sp
|
3440
|
+
groonga\-suggest\-create\-dataset creates a dataset for \fB/suggest\fP. A database has many datasets. This command just defines schea for a suggestion dataset.
|
3441
|
+
.SS OPTIONS
|
3442
|
+
.sp
|
3443
|
+
None.
|
3444
|
+
.SS EXIT STATUS
|
3445
|
+
.sp
|
3446
|
+
TODO
|
3447
|
+
.SS FILES
|
3448
|
+
.sp
|
3449
|
+
TODO
|
3450
|
+
.SS EXAMPLE
|
3451
|
+
.sp
|
3452
|
+
TODO
|
3453
|
+
.SS SEE ALSO
|
3454
|
+
.sp
|
3455
|
+
\fB/suggest\fP
|
3456
|
+
.. : doc:\fIgroonga\-suggest\-httpd\fP
|
3457
|
+
.. : doc:\fIgroonga\-suggest\-learner\fP
|
2598
3458
|
.SS コマンド
|
2599
3459
|
.sp
|
2600
3460
|
まず、すべてのコマンドに関係するコマンドバージョンについて説明します。その後、組み込みのコマンドを順に説明します。
|
@@ -4484,100 +5344,366 @@ status
|
|
4484
5344
|
.ft P
|
4485
5345
|
.fi
|
4486
5346
|
.SS suggest
|
5347
|
+
.IP Note
|
5348
|
+
.
|
5349
|
+
The suggest feature specification isn\(aqt stable. The
|
5350
|
+
specification may be changed.
|
5351
|
+
.RE
|
5352
|
+
.SS NAME
|
4487
5353
|
.sp
|
4488
|
-
|
4489
|
-
.SS
|
4490
|
-
.sp
|
4491
|
-
suggest \- 指定したクエリに対する補完・修正・提案を行う。
|
4492
|
-
.SS 書式
|
5354
|
+
suggest \- returns completion, correction and/or suggestion for a query.
|
5355
|
+
.SS SYNOPSIS
|
4493
5356
|
.sp
|
4494
5357
|
.nf
|
4495
5358
|
.ft C
|
4496
|
-
suggest types table column query
|
5359
|
+
suggest types table column query [sortby [output_columns [offset [limit [frequency_threshold [conditional_probability_threshold [prefix_search]]]]]]]
|
4497
5360
|
.ft P
|
4498
5361
|
.fi
|
4499
|
-
.SS
|
5362
|
+
.SS DESCRIPTION
|
4500
5363
|
.sp
|
4501
|
-
suggest
|
5364
|
+
The suggest command returns completion, correction and/or
|
5365
|
+
suggestion for a specified query.
|
4502
5366
|
.sp
|
4503
|
-
|
4504
|
-
.
|
4505
|
-
.
|
4506
|
-
\fBtypes\fP
|
5367
|
+
See \fB/suggest/introduction\fP about completion,
|
5368
|
+
correction and suggestion.
|
5369
|
+
.SS OPTIONS
|
4507
5370
|
.INDENT 0.0
|
4508
|
-
.
|
5371
|
+
.TP
|
5372
|
+
.B \fBtypes\fP
|
4509
5373
|
.sp
|
4510
|
-
|
5374
|
+
It specifies what types are returned by the suggest
|
5375
|
+
command.
|
4511
5376
|
.sp
|
4512
|
-
|
5377
|
+
Here are available types:
|
5378
|
+
.INDENT 7.0
|
5379
|
+
.INDENT 3.5
|
4513
5380
|
.INDENT 0.0
|
5381
|
+
.TP
|
5382
|
+
.B \fBcomplete\fP
|
5383
|
+
.sp
|
5384
|
+
The suggest command does completion.
|
5385
|
+
.TP
|
5386
|
+
.B \fBcorrect\fP
|
5387
|
+
.sp
|
5388
|
+
The suggest command does correction.
|
5389
|
+
.TP
|
5390
|
+
.B \fBsuggest\fP
|
5391
|
+
.sp
|
5392
|
+
The suggest command does suggestion.
|
5393
|
+
.UNINDENT
|
5394
|
+
.UNINDENT
|
5395
|
+
.UNINDENT
|
5396
|
+
.sp
|
5397
|
+
You can specify one or more types separated by \fB|\fP.
|
5398
|
+
Here are examples:
|
5399
|
+
.INDENT 7.0
|
4514
5400
|
.INDENT 3.5
|
4515
5401
|
.sp
|
4516
|
-
|
5402
|
+
It returns correction:
|
5403
|
+
.sp
|
5404
|
+
.nf
|
5405
|
+
.ft C
|
5406
|
+
correct
|
5407
|
+
.ft P
|
5408
|
+
.fi
|
5409
|
+
.sp
|
5410
|
+
It returns correction and suggestion:
|
5411
|
+
.sp
|
5412
|
+
.nf
|
5413
|
+
.ft C
|
5414
|
+
correct|suggest
|
5415
|
+
.ft P
|
5416
|
+
.fi
|
5417
|
+
.sp
|
5418
|
+
It returns complete, correction and suggestion:
|
5419
|
+
.sp
|
5420
|
+
.nf
|
5421
|
+
.ft C
|
5422
|
+
complete|correct|suggest
|
5423
|
+
.ft P
|
5424
|
+
.fi
|
4517
5425
|
.UNINDENT
|
4518
5426
|
.UNINDENT
|
5427
|
+
.TP
|
5428
|
+
.B \fBtable\fP
|
5429
|
+
.sp
|
5430
|
+
It specifies table name that has \fBitem_${DATA_SET_NAME}\(ga format.
|
5431
|
+
For example, \(ga\(gaitem_query\fP is a table name if you created
|
5432
|
+
dataset by the following command:
|
5433
|
+
.sp
|
5434
|
+
.nf
|
5435
|
+
.ft C
|
5436
|
+
groonga\-suggest\-create\-dataset /tmp/db\-path query
|
5437
|
+
.ft P
|
5438
|
+
.fi
|
5439
|
+
.TP
|
5440
|
+
.B \fBcolumn\fP
|
4519
5441
|
.sp
|
4520
|
-
|
5442
|
+
It specifies a column name that has furigana in
|
5443
|
+
Katakana in \fBtable\fP table.
|
5444
|
+
.TP
|
5445
|
+
.B \fBquery\fP
|
5446
|
+
.sp
|
5447
|
+
It specifies query for completion, correction and/or
|
5448
|
+
suggestion.
|
5449
|
+
.TP
|
5450
|
+
.B \fBsortby\fP
|
5451
|
+
.sp
|
5452
|
+
It specifies sort key.
|
5453
|
+
.INDENT 7.0
|
5454
|
+
.TP
|
5455
|
+
.B Default:
|
5456
|
+
.
|
5457
|
+
\fB\-_score\fP
|
5458
|
+
.UNINDENT
|
5459
|
+
.TP
|
5460
|
+
.B \fBoutput_columns\fP
|
5461
|
+
.sp
|
5462
|
+
It specifies output columns.
|
5463
|
+
.INDENT 7.0
|
5464
|
+
.TP
|
5465
|
+
.B Default:
|
5466
|
+
.
|
5467
|
+
\fB_key,_score\fP
|
5468
|
+
.UNINDENT
|
5469
|
+
.TP
|
5470
|
+
.B \fBoffset\fP
|
5471
|
+
.sp
|
5472
|
+
It specifies returned records offset.
|
5473
|
+
.INDENT 7.0
|
5474
|
+
.TP
|
5475
|
+
.B Default:
|
5476
|
+
.
|
5477
|
+
\fB0\fP
|
5478
|
+
.UNINDENT
|
5479
|
+
.TP
|
5480
|
+
.B \fBlimit\fP
|
5481
|
+
.sp
|
5482
|
+
It specifies number of returned records.
|
5483
|
+
.INDENT 7.0
|
5484
|
+
.TP
|
5485
|
+
.B Default:
|
5486
|
+
.
|
5487
|
+
\fB10\fP
|
5488
|
+
.UNINDENT
|
5489
|
+
.TP
|
5490
|
+
.B \fBfrequency_threshold\fP
|
5491
|
+
.sp
|
5492
|
+
It specifies threshold for item frequency. Returned records must have
|
5493
|
+
\fB_score\fP that is greater than or equal to \fBfrequency_threshold\fP.
|
5494
|
+
.INDENT 7.0
|
5495
|
+
.TP
|
5496
|
+
.B Default:
|
5497
|
+
.
|
5498
|
+
\fB100\fP
|
5499
|
+
.UNINDENT
|
5500
|
+
.UNINDENT
|
5501
|
+
.sp
|
5502
|
+
\fBconditional_probability_threshold\fP
|
4521
5503
|
.INDENT 0.0
|
4522
5504
|
.INDENT 3.5
|
4523
5505
|
.sp
|
4524
|
-
|
5506
|
+
It specifies threshold for conditional
|
5507
|
+
probability. Conditional probability is used for learned
|
5508
|
+
data. It is probability of query submission when \fBquery\fP
|
5509
|
+
is occurred. Returned records must have conditional
|
5510
|
+
probability that is greater than or equal to
|
5511
|
+
\fBconditional_probability_threshold\fP.
|
5512
|
+
.INDENT 0.0
|
5513
|
+
.TP
|
5514
|
+
.B Default:
|
5515
|
+
.
|
5516
|
+
\fB0.2\fP
|
5517
|
+
.UNINDENT
|
4525
5518
|
.UNINDENT
|
4526
5519
|
.UNINDENT
|
4527
|
-
.sp
|
4528
|
-
\fBsuggest\fP
|
4529
5520
|
.INDENT 0.0
|
5521
|
+
.TP
|
5522
|
+
.B \fBprefix_search\fP
|
5523
|
+
.sp
|
5524
|
+
It specifies whether optional prefix search is used or not
|
5525
|
+
in completion.
|
5526
|
+
.sp
|
5527
|
+
Here are available values:
|
5528
|
+
.INDENT 7.0
|
4530
5529
|
.INDENT 3.5
|
5530
|
+
.INDENT 0.0
|
5531
|
+
.TP
|
5532
|
+
.B \fByes\fP
|
4531
5533
|
.sp
|
4532
|
-
|
5534
|
+
Prefix search is always used.
|
5535
|
+
.TP
|
5536
|
+
.B \fBno\fP
|
5537
|
+
.sp
|
5538
|
+
Prefix search is never used.
|
5539
|
+
.TP
|
5540
|
+
.B \fBauto\fP
|
5541
|
+
.sp
|
5542
|
+
Prefix search is used only when other search can\(aqt
|
5543
|
+
find any records.
|
5544
|
+
.UNINDENT
|
4533
5545
|
.UNINDENT
|
4534
5546
|
.UNINDENT
|
5547
|
+
.INDENT 7.0
|
5548
|
+
.TP
|
5549
|
+
.B Default:
|
5550
|
+
.
|
5551
|
+
\fBauto\fP
|
4535
5552
|
.UNINDENT
|
4536
5553
|
.UNINDENT
|
5554
|
+
.SS RETURN VALUE
|
5555
|
+
.SS JSON format
|
4537
5556
|
.sp
|
4538
|
-
|
5557
|
+
Here is a returned JSON format:
|
5558
|
+
.sp
|
5559
|
+
.nf
|
5560
|
+
.ft C
|
5561
|
+
{"type1": [["candidate1", score of candidate1],
|
5562
|
+
["candidate2", score of candidate2],
|
5563
|
+
...],
|
5564
|
+
"type2": [["candidate1", score of candidate1],
|
5565
|
+
["candidate2", score of candidate2],
|
5566
|
+
...],
|
5567
|
+
...}
|
5568
|
+
.ft P
|
5569
|
+
.fi
|
5570
|
+
.sp
|
5571
|
+
\fBtype\fP
|
4539
5572
|
.INDENT 0.0
|
4540
5573
|
.INDENT 3.5
|
4541
5574
|
.sp
|
4542
|
-
|
5575
|
+
A type specified by \fBtypes\fP.
|
4543
5576
|
.UNINDENT
|
4544
5577
|
.UNINDENT
|
4545
5578
|
.sp
|
4546
|
-
\
|
5579
|
+
\fBcandidate\fP
|
4547
5580
|
.INDENT 0.0
|
4548
5581
|
.INDENT 3.5
|
4549
5582
|
.sp
|
4550
|
-
|
5583
|
+
A candidate for completion, correction or suggestion.
|
4551
5584
|
.UNINDENT
|
4552
5585
|
.UNINDENT
|
4553
5586
|
.sp
|
4554
|
-
\
|
5587
|
+
\fBscore of candidate\fP
|
4555
5588
|
.INDENT 0.0
|
4556
5589
|
.INDENT 3.5
|
4557
5590
|
.sp
|
4558
|
-
|
5591
|
+
A score of corresponding \fBcandidate\fP. It means that
|
5592
|
+
higher score candidate is more likely candidate for
|
5593
|
+
completion, correction or suggestion. Returned candidates
|
5594
|
+
are sorted by \fBscore of candidate\fP descending by
|
5595
|
+
default.
|
4559
5596
|
.UNINDENT
|
4560
5597
|
.UNINDENT
|
4561
|
-
.SS
|
4562
|
-
.
|
5598
|
+
.SS EXAMPLE
|
5599
|
+
.sp
|
5600
|
+
Here are learned data for completion.
|
5601
|
+
.sp
|
5602
|
+
Execution example:
|
4563
5603
|
.sp
|
4564
5604
|
.nf
|
4565
5605
|
.ft C
|
4566
|
-
|
4567
|
-
|
4568
|
-
|
4569
|
-
|
4570
|
-
|
4571
|
-
|
4572
|
-
|
4573
|
-
|
4574
|
-
|
4575
|
-
|
4576
|
-
|
4577
|
-
|
4578
|
-
|
5606
|
+
> load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
|
5607
|
+
> [
|
5608
|
+
> {"sequence": "1", "time": 1312950803.86057, "item": "e"},
|
5609
|
+
> {"sequence": "1", "time": 1312950803.96857, "item": "en"},
|
5610
|
+
> {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
|
5611
|
+
> {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
|
5612
|
+
> {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
|
5613
|
+
> {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
|
5614
|
+
> ]
|
5615
|
+
[[0,1313562872.82845,1.577141877],6]
|
5616
|
+
.ft P
|
5617
|
+
.fi
|
5618
|
+
.sp
|
5619
|
+
Here are learned data for correction.
|
5620
|
+
.sp
|
5621
|
+
Execution example:
|
5622
|
+
.sp
|
5623
|
+
.nf
|
5624
|
+
.ft C
|
5625
|
+
> load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
|
5626
|
+
> [
|
5627
|
+
> {"sequence": "2", "time": 1312950803.86057, "item": "s"},
|
5628
|
+
> {"sequence": "2", "time": 1312950803.96857, "item": "sa"},
|
5629
|
+
> {"sequence": "2", "time": 1312950804.26057, "item": "sae"},
|
5630
|
+
> {"sequence": "2", "time": 1312950804.56057, "item": "saer"},
|
5631
|
+
> {"sequence": "2", "time": 1312950804.76057, "item": "saerc"},
|
5632
|
+
> {"sequence": "2", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
|
5633
|
+
> {"sequence": "2", "time": 1312950809.76057, "item": "serch"},
|
5634
|
+
> {"sequence": "2", "time": 1312950810.86057, "item": "search", "type": "submit"}
|
5635
|
+
> ]
|
5636
|
+
[[0,1313562874.6075,2.004191545],8]
|
5637
|
+
.ft P
|
5638
|
+
.fi
|
5639
|
+
.sp
|
5640
|
+
Here are learned data for suggestion.
|
5641
|
+
.sp
|
5642
|
+
Execution example:
|
5643
|
+
.sp
|
5644
|
+
.nf
|
5645
|
+
.ft C
|
5646
|
+
> load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
|
5647
|
+
> [
|
5648
|
+
> {"sequence": "3", "time": 1312950803.86057, "item": "search engine", "type": "submit"},
|
5649
|
+
> {"sequence": "3", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"}
|
5650
|
+
> ]
|
5651
|
+
[[0,1313562876.81305,0.801821271],2]
|
4579
5652
|
.ft P
|
4580
5653
|
.fi
|
5654
|
+
.sp
|
5655
|
+
Here is a completion example.
|
5656
|
+
.sp
|
5657
|
+
Execution example:
|
5658
|
+
.sp
|
5659
|
+
.nf
|
5660
|
+
.ft C
|
5661
|
+
> suggest \-\-table item_query \-\-column kana \-\-types complete \-\-threshold 1 \-\-query en
|
5662
|
+
[[0,1313562877.81745,0.001827712],{"complete":[[1],[["_key","ShortText"],["_score","Int32"]],["engine",1]]}]
|
5663
|
+
.ft P
|
5664
|
+
.fi
|
5665
|
+
.sp
|
5666
|
+
Here is a correction example.
|
5667
|
+
.sp
|
5668
|
+
Execution example:
|
5669
|
+
.sp
|
5670
|
+
.nf
|
5671
|
+
.ft C
|
5672
|
+
> suggest \-\-table item_query \-\-column kana \-\-types correct \-\-threshold 1 \-\-query saerch
|
5673
|
+
[[0,1313562878.02203,0.000442789],{"correct":[[1],[["_key","ShortText"],["_score","Int32"]],["search",1]]}]
|
5674
|
+
.ft P
|
5675
|
+
.fi
|
5676
|
+
.sp
|
5677
|
+
Here is a suggestion example.
|
5678
|
+
.sp
|
5679
|
+
Execution example:
|
5680
|
+
.sp
|
5681
|
+
.nf
|
5682
|
+
.ft C
|
5683
|
+
> suggest \-\-table item_query \-\-column kana \-\-types suggest \-\-threshold 1 \-\-query search
|
5684
|
+
[[0,1313562878.22422,0.000812428],{"suggest":[[2],[["_key","ShortText"],["_score","Int32"]],["search engine",1],["web search realtime",1]]}]
|
5685
|
+
.ft P
|
5686
|
+
.fi
|
5687
|
+
.sp
|
5688
|
+
Here is a mixed example.
|
5689
|
+
.sp
|
5690
|
+
Execution example:
|
5691
|
+
.sp
|
5692
|
+
.nf
|
5693
|
+
.ft C
|
5694
|
+
> suggest \-\-table item_query \-\-column kana \-\-types complete|correct|suggest \-\-threshold 1 \-\-query search
|
5695
|
+
[[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]]}]
|
5696
|
+
.ft P
|
5697
|
+
.fi
|
5698
|
+
.SS SEE ALSO
|
5699
|
+
.INDENT 0.0
|
5700
|
+
.IP \(bu 2
|
5701
|
+
.
|
5702
|
+
\fB/suggest\fP
|
5703
|
+
.IP \(bu 2
|
5704
|
+
.
|
5705
|
+
\fB/executables/groonga\-suggest\-create\-dataset\fP
|
5706
|
+
.UNINDENT
|
4581
5707
|
.SS table_create
|
4582
5708
|
.SS 名前
|
4583
5709
|
.sp
|