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
@@ -0,0 +1,254 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
+
|
7
|
+
|
8
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
9
|
+
<head>
|
10
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
|
+
|
12
|
+
<title>5.4. 補正 — groonga v1.2.5ドキュメント</title>
|
13
|
+
|
14
|
+
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
|
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
var DOCUMENTATION_OPTIONS = {
|
19
|
+
URL_ROOT: '../',
|
20
|
+
VERSION: '1.2.5',
|
21
|
+
COLLAPSE_INDEX: false,
|
22
|
+
FILE_SUFFIX: '.html',
|
23
|
+
HAS_SOURCE: true
|
24
|
+
};
|
25
|
+
</script>
|
26
|
+
<script type="text/javascript" src="../_static/jquery.js"></script>
|
27
|
+
<script type="text/javascript" src="../_static/underscore.js"></script>
|
28
|
+
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
|
+
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
|
+
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
+
<link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
|
32
|
+
<link rel="up" title="5. サジェスト" href="../suggest.html" />
|
33
|
+
<link rel="next" title="5.5. 提案" href="suggestion.html" />
|
34
|
+
<link rel="prev" title="5.3. 補完" href="completion.html" />
|
35
|
+
</head>
|
36
|
+
<body>
|
37
|
+
<div class="header">
|
38
|
+
<h1 class="title">
|
39
|
+
<a id="top-link" href="../index.html">
|
40
|
+
<span class="project">groonga</span>
|
41
|
+
<span class="separator">-</span>
|
42
|
+
<span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span>
|
43
|
+
</a>
|
44
|
+
</h1>
|
45
|
+
|
46
|
+
<div class="other-language-links">
|
47
|
+
<ul>
|
48
|
+
<li><a href="../../../en/html/suggest/correction.html"><img src="../_static/us.png" alt="English"></a></li>
|
49
|
+
</ul>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
<div class="related">
|
55
|
+
<h3>ナビゲーション</h3>
|
56
|
+
<ul>
|
57
|
+
<li class="right" style="margin-right: 10px">
|
58
|
+
<a href="../genindex.html" title="総合索引"
|
59
|
+
accesskey="I">索引</a></li>
|
60
|
+
<li class="right" >
|
61
|
+
<a href="suggestion.html" title="5.5. 提案"
|
62
|
+
accesskey="N">次へ</a> |</li>
|
63
|
+
<li class="right" >
|
64
|
+
<a href="completion.html" title="5.3. 補完"
|
65
|
+
accesskey="P">前へ</a> |</li>
|
66
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
67
|
+
<li><a href="../suggest.html" accesskey="U">5. サジェスト</a> »</li>
|
68
|
+
</ul>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div class="document">
|
72
|
+
<div class="documentwrapper">
|
73
|
+
<div class="bodywrapper">
|
74
|
+
<div class="body">
|
75
|
+
|
76
|
+
<div class="section" id="correction">
|
77
|
+
<h1>5.4. 補正<a class="headerlink" href="#correction" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
78
|
+
<p>このセクションでは以下の補正機能について説明します。:</p>
|
79
|
+
<ul class="simple">
|
80
|
+
<li>どのように動作するか</li>
|
81
|
+
<li>使い方</li>
|
82
|
+
<li>学習方法</li>
|
83
|
+
</ul>
|
84
|
+
<div class="section" id="how-it-works">
|
85
|
+
<h2>5.4.1. どのように動作するか<a class="headerlink" href="#how-it-works" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
86
|
+
<p>補正機能は補正した語を計算するために3種類の検索を使います。:</p>
|
87
|
+
<blockquote>
|
88
|
+
<div><ol class="arabic simple">
|
89
|
+
<li>学習したデータを共起検索。</li>
|
90
|
+
<li>登録されている語を類似検索。(実行しないこともある)</li>
|
91
|
+
</ol>
|
92
|
+
</div></blockquote>
|
93
|
+
<div class="section" id="cooccurrence-search">
|
94
|
+
<h3>5.4.1.1. 共起検索<a class="headerlink" href="#cooccurrence-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
95
|
+
<p>共起検索はユーザの間違って入力した文字列から登録済みの語を検索します。共起検索ではユーザがどのように検索を実行したかを使います。ユーザがどのように検索したかはクエリログやアクセスログから学習します。</p>
|
96
|
+
<p>例えば、ユーザが以下のように検索を実行したとします。:</p>
|
97
|
+
<table border="1" class="docutils">
|
98
|
+
<colgroup>
|
99
|
+
<col width="41%" />
|
100
|
+
<col width="59%" />
|
101
|
+
</colgroup>
|
102
|
+
<thead valign="bottom">
|
103
|
+
<tr class="row-odd"><th class="head">クエリ</th>
|
104
|
+
<th class="head">時刻</th>
|
105
|
+
</tr>
|
106
|
+
</thead>
|
107
|
+
<tbody valign="top">
|
108
|
+
<tr class="row-even"><td>serach (入力ミス!)</td>
|
109
|
+
<td>2011-08-10T22:20:50+09:00</td>
|
110
|
+
</tr>
|
111
|
+
<tr class="row-odd"><td>search (修正!)</td>
|
112
|
+
<td>2011-08-10T22:20:52+09:00</td>
|
113
|
+
</tr>
|
114
|
+
</tbody>
|
115
|
+
</table>
|
116
|
+
<p>上記の検索実行ログから以下のような補正ペアを作ります。</p>
|
117
|
+
<table border="1" class="docutils">
|
118
|
+
<colgroup>
|
119
|
+
<col width="33%" />
|
120
|
+
<col width="67%" />
|
121
|
+
</colgroup>
|
122
|
+
<thead valign="bottom">
|
123
|
+
<tr class="row-odd"><th class="head">入力</th>
|
124
|
+
<th class="head">補正された語</th>
|
125
|
+
</tr>
|
126
|
+
</thead>
|
127
|
+
<tbody valign="top">
|
128
|
+
<tr class="row-even"><td>serach</td>
|
129
|
+
<td>search</td>
|
130
|
+
</tr>
|
131
|
+
</tbody>
|
132
|
+
</table>
|
133
|
+
<p>1分以内の連続して実行された検索をユーザが入力を補正したものとみなします。検索を実行した間の入力途中の入力シーケンスは、補正用の学習データとしては利用しません。</p>
|
134
|
+
<p>ユーザが"serach"と入力した場合、共起検索は"saerch"を返します。なぜなら、"serach"が「入力」カラムにあり、対応する「補正される語」カラムの値が"search"だからです。</p>
|
135
|
+
</div>
|
136
|
+
<div class="section" id="similar-search">
|
137
|
+
<h3>5.4.1.2. 類似検索<a class="headerlink" href="#similar-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
138
|
+
<p>類似検索はユーザの入力をトークナイズし、同じトークンを含んだ登録済みの語を検索します。トークナイズにはTokenBigramトークナイザーを使います。これは <a class="reference internal" href="../executables/groonga-suggest-create-dataset.html"><em>groonga-suggest-create-dataset</em></a> が作るサジェストデータセットスキーマではデフォルトトークナイザーとしてTokenBigramトークナイザーを使っているからです。</p>
|
139
|
+
<p>例えば、"search engine"という語が登録されているとします。ユーザが"web search service"や"sound engine"などで検索すると"search engine"が補正候補になります。なぜなら、"search engine"と"web search engine"は"search"という同じトークンを持つからです。また、"search engine"と"sound engine"は"engine"という同じトークンを持っています。</p>
|
140
|
+
<p>"search engine"は"search"トークンと"engine"トークンにトークナイズされます。(groongaのTokenBigramトークナイザーは連続するアルファベットと数字を2文字にトークナイズしません。これは検索ノイズを減らす為です。確実に2文字でトークナイズするためにはTokenBigramSplitSymbolAlphaDigitを使います。)"web search service"は"web"トークンと"search"トークンと"service"トークンにトークナイズされます。"sound engine"は"sound"トークンと"engine"トークンにトークナイズされます。</p>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
<div class="section" id="how-to-use">
|
144
|
+
<h2>5.4.2. 使い方<a class="headerlink" href="#how-to-use" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
145
|
+
<p>groongaは補正機能を使うために <a class="reference internal" href="../commands/suggest.html"><em>suggest</em></a> コマンドを用意しています。 <cite>--type correct</cite> オプションを使うと補正機能を利用できます。</p>
|
146
|
+
<p>例えば、"saerch"と入力した時の補正結果取得するコマンドは以下のようになります。:</p>
|
147
|
+
<p>実行例:</p>
|
148
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types correction --threshold 1 --query saerch
|
149
|
+
[[0,1313131812.39207,0.000783031],{"correct":[[1],[["_key","ShortText"],["_score","Int32"]],["search",1]]}]
|
150
|
+
</pre></div>
|
151
|
+
</div>
|
152
|
+
</div>
|
153
|
+
<div class="section" id="how-it-learns">
|
154
|
+
<h2>5.4.3. 学習方法<a class="headerlink" href="#how-it-learns" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
155
|
+
<p>共起検索は学習データを使います。学習データはクエリログやアクセスログから作ります。学習データを作るためにはユーザが検索を実行したときの検索クエリとタイムスタンプが必要です。</p>
|
156
|
+
<p>例えば、ユーザが"search"で検索したかったとします。しかし、ユーザは正しい"search"というクエリで検索を実行する前に間違って"saerch"で検索してしまいました。このユーザの入力シーケンスは以下のようになります。:</p>
|
157
|
+
<blockquote>
|
158
|
+
<div><ol class="arabic simple">
|
159
|
+
<li>2011-08-10T13:33:23+09:00: s</li>
|
160
|
+
<li>2011-08-10T13:33:23+09:00: sa</li>
|
161
|
+
<li>2011-08-10T13:33:24+09:00: sae</li>
|
162
|
+
<li>2011-08-10T13:33:24+09:00: saer</li>
|
163
|
+
<li>2011-08-10T13:33:24+09:00: saerc</li>
|
164
|
+
<li>2011-08-10T13:33:25+09:00: saerch (検索実行!)</li>
|
165
|
+
<li>2011-08-10T13:33:29+09:00: serch (修正中…)</li>
|
166
|
+
<li>2011-08-10T13:33:30+09:00: search (検索実行!)</li>
|
167
|
+
</ol>
|
168
|
+
</div></blockquote>
|
169
|
+
<p>以下のコマンドでこの入力シーケンスから学習できます。:</p>
|
170
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
171
|
+
[
|
172
|
+
{"sequence": "1", "time": 1312950803.86057, "item": "s"},
|
173
|
+
{"sequence": "1", "time": 1312950803.96857, "item": "sa"},
|
174
|
+
{"sequence": "1", "time": 1312950804.26057, "item": "sae"},
|
175
|
+
{"sequence": "1", "time": 1312950804.56057, "item": "saer"},
|
176
|
+
{"sequence": "1", "time": 1312950804.76057, "item": "saerc"},
|
177
|
+
{"sequence": "1", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
|
178
|
+
{"sequence": "1", "time": 1312950809.76057, "item": "serch"},
|
179
|
+
{"sequence": "1", "time": 1312950810.86057, "item": "search", "type": "submit"}
|
180
|
+
]
|
181
|
+
</pre></div>
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
<div class="sphinxsidebar">
|
191
|
+
<div class="sphinxsidebarwrapper">
|
192
|
+
<h3><a href="../index.html">目次</a></h3>
|
193
|
+
<ul>
|
194
|
+
<li><a class="reference internal" href="#">5.4. 補正</a><ul>
|
195
|
+
<li><a class="reference internal" href="#how-it-works">5.4.1. どのように動作するか</a><ul>
|
196
|
+
<li><a class="reference internal" href="#cooccurrence-search">5.4.1.1. 共起検索</a></li>
|
197
|
+
<li><a class="reference internal" href="#similar-search">5.4.1.2. 類似検索</a></li>
|
198
|
+
</ul>
|
199
|
+
</li>
|
200
|
+
<li><a class="reference internal" href="#how-to-use">5.4.2. 使い方</a></li>
|
201
|
+
<li><a class="reference internal" href="#how-it-learns">5.4.3. 学習方法</a></li>
|
202
|
+
</ul>
|
203
|
+
</li>
|
204
|
+
</ul>
|
205
|
+
|
206
|
+
<h4>前のトピックへ</h4>
|
207
|
+
<p class="topless"><a href="completion.html"
|
208
|
+
title="前の章へ">5.3. 補完</a></p>
|
209
|
+
<h4>次のトピックへ</h4>
|
210
|
+
<p class="topless"><a href="suggestion.html"
|
211
|
+
title="次の章へ">5.5. 提案</a></p>
|
212
|
+
<h3>このページ</h3>
|
213
|
+
<ul class="this-page-menu">
|
214
|
+
<li><a href="../_sources/suggest/correction.txt"
|
215
|
+
rel="nofollow">ソースコードを表示</a></li>
|
216
|
+
</ul>
|
217
|
+
<div id="searchbox" style="display: none">
|
218
|
+
<h3>クイック検索</h3>
|
219
|
+
<form class="search" action="../search.html" method="get">
|
220
|
+
<input type="text" name="q" size="18" />
|
221
|
+
<input type="submit" value="検索" />
|
222
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
223
|
+
<input type="hidden" name="area" value="default" />
|
224
|
+
</form>
|
225
|
+
<p class="searchtip" style="font-size: 90%">
|
226
|
+
モジュール、クラス、または関数名を入力してください
|
227
|
+
</p>
|
228
|
+
</div>
|
229
|
+
<script type="text/javascript">$('#searchbox').show(0);</script>
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
<div class="clearer"></div>
|
233
|
+
</div>
|
234
|
+
<div class="related">
|
235
|
+
<h3>ナビゲーション</h3>
|
236
|
+
<ul>
|
237
|
+
<li class="right" style="margin-right: 10px">
|
238
|
+
<a href="../genindex.html" title="総合索引"
|
239
|
+
>索引</a></li>
|
240
|
+
<li class="right" >
|
241
|
+
<a href="suggestion.html" title="5.5. 提案"
|
242
|
+
>次へ</a> |</li>
|
243
|
+
<li class="right" >
|
244
|
+
<a href="completion.html" title="5.3. 補完"
|
245
|
+
>前へ</a> |</li>
|
246
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
247
|
+
<li><a href="../suggest.html" >5. サジェスト</a> »</li>
|
248
|
+
</ul>
|
249
|
+
</div>
|
250
|
+
<div class="footer">
|
251
|
+
© Copyright 2009-2011, Brazil, Inc.
|
252
|
+
</div>
|
253
|
+
</body>
|
254
|
+
</html>
|
@@ -0,0 +1,225 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
+
|
7
|
+
|
8
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
9
|
+
<head>
|
10
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
|
+
|
12
|
+
<title>5.1. はじめに — groonga v1.2.5ドキュメント</title>
|
13
|
+
|
14
|
+
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
|
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
var DOCUMENTATION_OPTIONS = {
|
19
|
+
URL_ROOT: '../',
|
20
|
+
VERSION: '1.2.5',
|
21
|
+
COLLAPSE_INDEX: false,
|
22
|
+
FILE_SUFFIX: '.html',
|
23
|
+
HAS_SOURCE: true
|
24
|
+
};
|
25
|
+
</script>
|
26
|
+
<script type="text/javascript" src="../_static/jquery.js"></script>
|
27
|
+
<script type="text/javascript" src="../_static/underscore.js"></script>
|
28
|
+
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
|
+
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
|
+
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
+
<link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
|
32
|
+
<link rel="up" title="5. サジェスト" href="../suggest.html" />
|
33
|
+
<link rel="next" title="5.2. チュートリアル" href="tutorial.html" />
|
34
|
+
<link rel="prev" title="5. サジェスト" href="../suggest.html" />
|
35
|
+
</head>
|
36
|
+
<body>
|
37
|
+
<div class="header">
|
38
|
+
<h1 class="title">
|
39
|
+
<a id="top-link" href="../index.html">
|
40
|
+
<span class="project">groonga</span>
|
41
|
+
<span class="separator">-</span>
|
42
|
+
<span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span>
|
43
|
+
</a>
|
44
|
+
</h1>
|
45
|
+
|
46
|
+
<div class="other-language-links">
|
47
|
+
<ul>
|
48
|
+
<li><a href="../../../en/html/suggest/introduction.html"><img src="../_static/us.png" alt="English"></a></li>
|
49
|
+
</ul>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
<div class="related">
|
55
|
+
<h3>ナビゲーション</h3>
|
56
|
+
<ul>
|
57
|
+
<li class="right" style="margin-right: 10px">
|
58
|
+
<a href="../genindex.html" title="総合索引"
|
59
|
+
accesskey="I">索引</a></li>
|
60
|
+
<li class="right" >
|
61
|
+
<a href="tutorial.html" title="5.2. チュートリアル"
|
62
|
+
accesskey="N">次へ</a> |</li>
|
63
|
+
<li class="right" >
|
64
|
+
<a href="../suggest.html" title="5. サジェスト"
|
65
|
+
accesskey="P">前へ</a> |</li>
|
66
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
67
|
+
<li><a href="../suggest.html" accesskey="U">5. サジェスト</a> »</li>
|
68
|
+
</ul>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div class="document">
|
72
|
+
<div class="documentwrapper">
|
73
|
+
<div class="bodywrapper">
|
74
|
+
<div class="body">
|
75
|
+
|
76
|
+
<div class="section" id="introduction">
|
77
|
+
<h1>5.1. はじめに<a class="headerlink" href="#introduction" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
78
|
+
<p>groongaのサジェスト機能は以下の機能を提供します。:</p>
|
79
|
+
<ul class="simple">
|
80
|
+
<li>補完</li>
|
81
|
+
<li>補正</li>
|
82
|
+
<li>提案</li>
|
83
|
+
</ul>
|
84
|
+
<div class="section" id="completion">
|
85
|
+
<h2>5.1.1. 補完<a class="headerlink" href="#completion" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
86
|
+
<p>補完はユーザの入力を支援します。ユーザが単語の一部分のみしか入力していないときに、登録済みの語の中から補完候補の語を返します。</p>
|
87
|
+
<p>例えば、以下が登録済みの語とします。:</p>
|
88
|
+
<ul class="simple">
|
89
|
+
<li>"groonga"</li>
|
90
|
+
<li>"complete"</li>
|
91
|
+
<li>"correction"</li>
|
92
|
+
<li>"suggest"</li>
|
93
|
+
</ul>
|
94
|
+
<p>ユーザが"co"と入力したとき、"complete"と"correction"を補完候補として返します。これはどちらも"co"で始まっているからです。</p>
|
95
|
+
<p>ユーザが"sug"と入力したとき、"suggest"を返します。これは"suggest"が"sug"から始まっているからです。</p>
|
96
|
+
<p>ユーザが"ab"と入力したときは何も返しません。これは"ab"から始まる語が1つも登録されていないからです。</p>
|
97
|
+
</div>
|
98
|
+
<div class="section" id="correction">
|
99
|
+
<h2>5.1.2. 補正<a class="headerlink" href="#correction" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
100
|
+
<p>修正もユーザの入力を支援します。ユーザが間違った語を入力したときに登録済みの修正ペアの中から修正された語を返します。</p>
|
101
|
+
<p>例えば、以下のような修正ペアが登録されていたとします。</p>
|
102
|
+
<table border="1" class="docutils">
|
103
|
+
<colgroup>
|
104
|
+
<col width="46%" />
|
105
|
+
<col width="54%" />
|
106
|
+
</colgroup>
|
107
|
+
<thead valign="bottom">
|
108
|
+
<tr class="row-odd"><th class="head">間違った語</th>
|
109
|
+
<th class="head">正しい語</th>
|
110
|
+
</tr>
|
111
|
+
</thead>
|
112
|
+
<tbody valign="top">
|
113
|
+
<tr class="row-even"><td>grroonga
|
114
|
+
gronga
|
115
|
+
gronnga</td>
|
116
|
+
<td>groonga
|
117
|
+
groonga
|
118
|
+
groonga</td>
|
119
|
+
</tr>
|
120
|
+
</tbody>
|
121
|
+
</table>
|
122
|
+
<p>ユーザが"gronga"と入力したとき、"groonga"を返します。これは、"gronga"が「間違った語」にあり、対応する「正しい語」カラムの値が"groonga"だからです。</p>
|
123
|
+
<p>ユーザが"roonga"と入力したときは何も返しません。これは"roonga"が「間違った語」カラムにないからです。</p>
|
124
|
+
</div>
|
125
|
+
<div class="section" id="suggestion">
|
126
|
+
<h2>5.1.3. 提案<a class="headerlink" href="#suggestion" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
127
|
+
<p>提案は、たくさんの文書が見つかったときに、ユーザがさらに絞り込むことを支援します。ユーザがクエリを入力したとき、登録済みの関連クエリペアから追加のキーワードを選び、追加のキーワードを含んだ新しいクエリを返します。</p>
|
128
|
+
<p>例えば、以下の関連クエリペアが登録されているとします。:</p>
|
129
|
+
<table border="1" class="docutils">
|
130
|
+
<colgroup>
|
131
|
+
<col width="52%" />
|
132
|
+
<col width="48%" />
|
133
|
+
</colgroup>
|
134
|
+
<thead valign="bottom">
|
135
|
+
<tr class="row-odd"><th class="head">キーワード</th>
|
136
|
+
<th class="head">関連クエリ</th>
|
137
|
+
</tr>
|
138
|
+
</thead>
|
139
|
+
<tbody valign="top">
|
140
|
+
<tr class="row-even"><td>groonga</td>
|
141
|
+
<td>groonga search engine</td>
|
142
|
+
</tr>
|
143
|
+
<tr class="row-odd"><td>search</td>
|
144
|
+
<td>Google search</td>
|
145
|
+
</tr>
|
146
|
+
<tr class="row-even"><td>speed</td>
|
147
|
+
<td>groonga speed</td>
|
148
|
+
</tr>
|
149
|
+
</tbody>
|
150
|
+
</table>
|
151
|
+
<p>ユーザが"groonga"と入力したとき、"groonga search engine"を返します。これは、"groonga"が「キーワード」カラムの値にあり、対応する「関連クエリ」カラムの値が"groonga search engine"だからです。</p>
|
152
|
+
<p>ユーザが"MySQL"と入力したときは何も返しません。これは"MySQL"が「キーワード」カラムにないからです。</p>
|
153
|
+
</div>
|
154
|
+
<div class="section" id="learning">
|
155
|
+
<h2>5.1.4. 学習<a class="headerlink" href="#learning" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
156
|
+
<p>サジェスト機能を使う場合は、事前に登録済みのデータを用意する必要があります。これらのデータはユーザの入力を使って登録できます。これ用にgroonga-suggest-httpdコマンドとgroonga-suggest-learnerコマンドがあります。</p>
|
157
|
+
</div>
|
158
|
+
</div>
|
159
|
+
|
160
|
+
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
<div class="sphinxsidebar">
|
165
|
+
<div class="sphinxsidebarwrapper">
|
166
|
+
<h3><a href="../index.html">目次</a></h3>
|
167
|
+
<ul>
|
168
|
+
<li><a class="reference internal" href="#">5.1. はじめに</a><ul>
|
169
|
+
<li><a class="reference internal" href="#completion">5.1.1. 補完</a></li>
|
170
|
+
<li><a class="reference internal" href="#correction">5.1.2. 補正</a></li>
|
171
|
+
<li><a class="reference internal" href="#suggestion">5.1.3. 提案</a></li>
|
172
|
+
<li><a class="reference internal" href="#learning">5.1.4. 学習</a></li>
|
173
|
+
</ul>
|
174
|
+
</li>
|
175
|
+
</ul>
|
176
|
+
|
177
|
+
<h4>前のトピックへ</h4>
|
178
|
+
<p class="topless"><a href="../suggest.html"
|
179
|
+
title="前の章へ">5. サジェスト</a></p>
|
180
|
+
<h4>次のトピックへ</h4>
|
181
|
+
<p class="topless"><a href="tutorial.html"
|
182
|
+
title="次の章へ">5.2. チュートリアル</a></p>
|
183
|
+
<h3>このページ</h3>
|
184
|
+
<ul class="this-page-menu">
|
185
|
+
<li><a href="../_sources/suggest/introduction.txt"
|
186
|
+
rel="nofollow">ソースコードを表示</a></li>
|
187
|
+
</ul>
|
188
|
+
<div id="searchbox" style="display: none">
|
189
|
+
<h3>クイック検索</h3>
|
190
|
+
<form class="search" action="../search.html" method="get">
|
191
|
+
<input type="text" name="q" size="18" />
|
192
|
+
<input type="submit" value="検索" />
|
193
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
194
|
+
<input type="hidden" name="area" value="default" />
|
195
|
+
</form>
|
196
|
+
<p class="searchtip" style="font-size: 90%">
|
197
|
+
モジュール、クラス、または関数名を入力してください
|
198
|
+
</p>
|
199
|
+
</div>
|
200
|
+
<script type="text/javascript">$('#searchbox').show(0);</script>
|
201
|
+
</div>
|
202
|
+
</div>
|
203
|
+
<div class="clearer"></div>
|
204
|
+
</div>
|
205
|
+
<div class="related">
|
206
|
+
<h3>ナビゲーション</h3>
|
207
|
+
<ul>
|
208
|
+
<li class="right" style="margin-right: 10px">
|
209
|
+
<a href="../genindex.html" title="総合索引"
|
210
|
+
>索引</a></li>
|
211
|
+
<li class="right" >
|
212
|
+
<a href="tutorial.html" title="5.2. チュートリアル"
|
213
|
+
>次へ</a> |</li>
|
214
|
+
<li class="right" >
|
215
|
+
<a href="../suggest.html" title="5. サジェスト"
|
216
|
+
>前へ</a> |</li>
|
217
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
218
|
+
<li><a href="../suggest.html" >5. サジェスト</a> »</li>
|
219
|
+
</ul>
|
220
|
+
</div>
|
221
|
+
<div class="footer">
|
222
|
+
© Copyright 2009-2011, Brazil, Inc.
|
223
|
+
</div>
|
224
|
+
</body>
|
225
|
+
</html>
|