rroonga 1.2.5-x86-mingw32 → 1.2.7-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +30 -0
- data/Rakefile +24 -285
- data/ext/groonga/extconf.rb +4 -2
- data/ext/groonga/rb-grn-array.c +5 -4
- data/ext/groonga/rb-grn-context.c +7 -22
- data/ext/groonga/rb-grn-database.c +42 -1
- data/ext/groonga/rb-grn-index-column.c +5 -0
- data/ext/groonga/rb-grn-object.c +58 -26
- data/ext/groonga/rb-grn-patricia-trie.c +2 -1
- data/ext/groonga/rb-grn-record.c +11 -1
- data/ext/groonga/rb-grn-snippet.c +44 -1
- data/ext/groonga/rb-grn-table-key-support.c +21 -10
- data/ext/groonga/rb-grn-utils.c +3 -1
- data/ext/groonga/rb-grn-variable-size-column.c +47 -1
- data/ext/groonga/rb-grn.h +4 -1
- data/extconf.rb +1 -0
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/dumper.rb +3 -3
- data/lib/groonga/pagination.rb +1 -1
- data/lib/groonga/record.rb +10 -0
- data/rroonga-build.rb +1 -1
- data/test/test-accessor.rb +4 -0
- data/test/test-array.rb +9 -1
- data/test/test-database.rb +16 -0
- data/test/test-expression.rb +2 -0
- data/test/test-hash.rb +11 -2
- data/test/test-patricia-trie.rb +10 -1
- data/test/test-table-select.rb +31 -17
- data/test/test-type.rb +3 -3
- data/test/test-variable-size-column.rb +8 -1
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga.h +20 -4
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +207 -35
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/{http.txt → groonga-http.txt} +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +14 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/log.txt +214 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +35 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +195 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/correction.txt +148 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +94 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/suggestion.txt +115 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/tutorial.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +22 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +1 -0
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +258 -72
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +49 -49
- data/vendor/local/share/doc/groonga/en/html/executables/{http.html → groonga-http.html} +34 -34
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +186 -0
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/executables.html +22 -21
- data/vendor/local/share/doc/groonga/en/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +105 -74
- data/vendor/local/share/doc/groonga/en/html/install.html +22 -11
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/log.html +345 -0
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +94 -57
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference.html +69 -68
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +357 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +286 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +243 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +265 -0
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +134 -0
- data/vendor/local/share/doc/groonga/en/html/suggest.html +166 -0
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial03.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial04.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial05.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial06.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial07.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial08.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial09.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial10.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +207 -35
- data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/{source/executables/http.txt → ja/html/_sources/executables/groonga-http.txt} +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +14 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/log.txt +214 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +35 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +195 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/correction.txt +148 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +94 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/suggestion.txt +115 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/tutorial.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +22 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +1 -0
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +237 -72
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands.html +42 -42
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/executables/{http.html → groonga-http.html} +34 -34
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +187 -0
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -21
- data/vendor/local/share/doc/groonga/ja/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +105 -74
- data/vendor/local/share/doc/groonga/ja/html/install.html +24 -11
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/log.html +346 -0
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +87 -55
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -68
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +327 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +254 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +225 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +248 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +135 -0
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +166 -0
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial01.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial02.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial03.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial04.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial05.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial06.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial07.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial08.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial09.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial10.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +207 -35
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +5 -0
- data/vendor/local/share/doc/groonga/source/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/{ja/html/_sources/executables/http.txt → source/executables/groonga-http.txt} +1 -1
- data/vendor/local/share/doc/groonga/source/executables/groonga-suggest-create-dataset.txt +50 -0
- data/vendor/local/share/doc/groonga/source/index.txt +1 -0
- data/vendor/local/share/doc/groonga/source/install.txt +14 -3
- data/vendor/local/share/doc/groonga/source/log.txt +214 -0
- data/vendor/local/share/doc/groonga/source/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/source/news.txt +35 -3
- data/vendor/local/share/doc/groonga/source/suggest/completion.txt +195 -0
- data/vendor/local/share/doc/groonga/source/suggest/correction.txt +148 -0
- data/vendor/local/share/doc/groonga/source/suggest/introduction.txt +94 -0
- data/vendor/local/share/doc/groonga/source/suggest/suggestion.txt +115 -0
- data/vendor/local/share/doc/groonga/source/suggest/tutorial.txt +8 -0
- data/vendor/local/share/doc/groonga/source/suggest.txt +22 -0
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +2 -1
- data/vendor/local/share/doc/groonga/source/update_execution_example.py +46 -20
- data/vendor/local/share/license/groonga/AUTHORS +17 -0
- data/vendor/local/share/license/groonga/COPYING +504 -0
- data/vendor/local/share/license/mecab/AUTHORS +1 -0
- data/vendor/local/share/license/mecab/BSD +29 -0
- data/vendor/local/share/license/mecab/COPYING +4 -0
- data/vendor/local/share/license/mecab/GPL +340 -0
- data/vendor/local/share/license/mecab/LGPL +504 -0
- data/vendor/local/share/license/naist-jdic/AUTHORS +2 -0
- data/vendor/local/share/license/naist-jdic/COPYING +31 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +1050 -45
- data/vendor/local/share/man/man1/groonga.1 +1174 -48
- metadata +62 -9
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>
|
12
|
+
<title>7.1. 検索 — groonga v1.2.5ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,10 +28,10 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v1.2.
|
32
|
-
<link rel="up" title="
|
33
|
-
<link rel="next" title="
|
34
|
-
<link rel="prev" title="
|
31
|
+
<link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
|
32
|
+
<link rel="up" title="7. 仕様" href="../spec.html" />
|
33
|
+
<link rel="next" title="8. 制限事項" href="../limitations.html" />
|
34
|
+
<link rel="prev" title="7. 仕様" href="../spec.html" />
|
35
35
|
</head>
|
36
36
|
<body>
|
37
37
|
<div class="header">
|
@@ -58,13 +58,13 @@
|
|
58
58
|
<a href="../genindex.html" title="総合索引"
|
59
59
|
accesskey="I">索引</a></li>
|
60
60
|
<li class="right" >
|
61
|
-
<a href="../limitations.html" title="
|
61
|
+
<a href="../limitations.html" title="8. 制限事項"
|
62
62
|
accesskey="N">次へ</a> |</li>
|
63
63
|
<li class="right" >
|
64
|
-
<a href="../spec.html" title="
|
64
|
+
<a href="../spec.html" title="7. 仕様"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v1.2.
|
67
|
-
<li><a href="../spec.html" accesskey="U">
|
66
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
67
|
+
<li><a href="../spec.html" accesskey="U">7. 仕様</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
70
70
|
|
@@ -74,10 +74,10 @@
|
|
74
74
|
<div class="body">
|
75
75
|
|
76
76
|
<div class="section" id="id1">
|
77
|
-
<h1>
|
77
|
+
<h1>7.1. 検索<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
78
78
|
<p><a class="reference internal" href="../commands/select.html"><em>select</em></a> コマンドがqueryパラメータを使ってどのように検索するのかを説明します。</p>
|
79
79
|
<div class="section" id="id2">
|
80
|
-
<h2>
|
80
|
+
<h2>7.1.1. 検索の挙動<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
81
81
|
<p>検索の挙動には以下の3種類あり、検索結果によって動的に使い分けています。</p>
|
82
82
|
<ol class="arabic simple">
|
83
83
|
<li>完全一致検索</li>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
</ol>
|
87
87
|
<p>どのように検索の挙動を使い分けているかを説明する前に、まず、それぞれの検索の挙動を説明します。</p>
|
88
88
|
<div class="section" id="id3">
|
89
|
-
<h3>
|
89
|
+
<h3>7.1.1.1. 完全一致検索<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
90
90
|
<p>検索対象文書は複数の語彙にトークナイズ(分割)され、それぞれを単位とした語彙表に索引を管理します。
|
91
91
|
検索キーワードも同一の方法でトークナイズされます。</p>
|
92
92
|
<p>このとき、検索キーワードをトークナイズした結果得られる語彙の配列と同一の配列を含む文書を検索する処理を完全一致検索と呼んでいます。</p>
|
@@ -120,7 +120,7 @@
|
|
120
120
|
<p>という三つの語彙として処理されます。この語彙の並びは「楽し / しい / いb / bi / il / ll / li / ia / ar / rd / d」という語彙の並びに含まれるので、完全一致でヒットします。</p>
|
121
121
|
</div>
|
122
122
|
<div class="section" id="id4">
|
123
|
-
<h3>
|
123
|
+
<h3>7.1.1.2. 非わかち書き検索<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
124
124
|
<p>非わかち書き検索はパトリシア木で語彙表を構築している場合のみ利用可能です。</p>
|
125
125
|
<p>非わかち書き検索の挙動はTokenBigramなどN-gram系のトークナイザーを利用している場合とTokenMecabトークナイザーを利用している場合で挙動が変わります。</p>
|
126
126
|
<p>N-gram系のトークナイザーを利用している場合はキーワードで前方一致検索をします。</p>
|
@@ -129,7 +129,7 @@
|
|
129
129
|
<p>例えば、「スープカレー」というキーワードで検索した場合、「スープカレーバー」(1単語扱い)にヒットしますが、「スープカレー」("スープ"と"カレー"の2単語扱い)や「スープカレーライス」("スープ"と"カレーライス"の2単語扱い)にはヒットしません。</p>
|
130
130
|
</div>
|
131
131
|
<div class="section" id="id5">
|
132
|
-
<h3>
|
132
|
+
<h3>7.1.1.3. 部分一致検索<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
133
133
|
<p>部分一致検索はパトリシア木で語彙表を構築していて、かつ、KEY_WITH_SISオプションを指定している場合のみ利用可能です。KEY_WITH_SISオプションが指定されていない場合は非わかち書き検索と同等です。</p>
|
134
134
|
<p>部分一致検索の挙動はTokenBigramなどN-gram系のトークナイザーを利用している場合とTokenMecabトークナイザーを利用している場合で挙動が変わります。</p>
|
135
135
|
<p>Bigramの場合は前方一致検索と中間一致検索と後方一致検索を行います。</p>
|
@@ -139,7 +139,7 @@
|
|
139
139
|
</div>
|
140
140
|
</div>
|
141
141
|
<div class="section" id="id6">
|
142
|
-
<h2>
|
142
|
+
<h2>7.1.2. 検索の使い分け<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
143
143
|
<p>groongaは基本的に完全一致検索のみを行います。完全一致検索でのヒット件数が所定の閾値を超えない場合に限り、非わかち書き検索を行い、それでもヒット件数が閾値を超えない場合は部分一致検索を行います。(閾値は1がデフォルト値となっています)</p>
|
144
144
|
<p>ただし、すでに検索結果セットが存在する場合はたとえヒット件数が閾値に満たなくても完全一致検索のみを行います。</p>
|
145
145
|
<p>例えば、以下のようなクエリの場合は、それぞれの検索でヒット件数が閾値に満たない場合は完全一致検索、非わかち書き検索、部分一致検索を順に行います。:</p>
|
@@ -162,24 +162,24 @@
|
|
162
162
|
<div class="sphinxsidebarwrapper">
|
163
163
|
<h3><a href="../index.html">目次</a></h3>
|
164
164
|
<ul>
|
165
|
-
<li><a class="reference internal" href="#">
|
166
|
-
<li><a class="reference internal" href="#id2">
|
167
|
-
<li><a class="reference internal" href="#id3">
|
168
|
-
<li><a class="reference internal" href="#id4">
|
169
|
-
<li><a class="reference internal" href="#id5">
|
165
|
+
<li><a class="reference internal" href="#">7.1. 検索</a><ul>
|
166
|
+
<li><a class="reference internal" href="#id2">7.1.1. 検索の挙動</a><ul>
|
167
|
+
<li><a class="reference internal" href="#id3">7.1.1.1. 完全一致検索</a></li>
|
168
|
+
<li><a class="reference internal" href="#id4">7.1.1.2. 非わかち書き検索</a></li>
|
169
|
+
<li><a class="reference internal" href="#id5">7.1.1.3. 部分一致検索</a></li>
|
170
170
|
</ul>
|
171
171
|
</li>
|
172
|
-
<li><a class="reference internal" href="#id6">
|
172
|
+
<li><a class="reference internal" href="#id6">7.1.2. 検索の使い分け</a></li>
|
173
173
|
</ul>
|
174
174
|
</li>
|
175
175
|
</ul>
|
176
176
|
|
177
177
|
<h4>前のトピックへ</h4>
|
178
178
|
<p class="topless"><a href="../spec.html"
|
179
|
-
title="前の章へ">
|
179
|
+
title="前の章へ">7. 仕様</a></p>
|
180
180
|
<h4>次のトピックへ</h4>
|
181
181
|
<p class="topless"><a href="../limitations.html"
|
182
|
-
title="次の章へ">
|
182
|
+
title="次の章へ">8. 制限事項</a></p>
|
183
183
|
<h3>このページ</h3>
|
184
184
|
<ul class="this-page-menu">
|
185
185
|
<li><a href="../_sources/spec/search.txt"
|
@@ -209,13 +209,13 @@
|
|
209
209
|
<a href="../genindex.html" title="総合索引"
|
210
210
|
>索引</a></li>
|
211
211
|
<li class="right" >
|
212
|
-
<a href="../limitations.html" title="
|
212
|
+
<a href="../limitations.html" title="8. 制限事項"
|
213
213
|
>次へ</a> |</li>
|
214
214
|
<li class="right" >
|
215
|
-
<a href="../spec.html" title="
|
215
|
+
<a href="../spec.html" title="7. 仕様"
|
216
216
|
>前へ</a> |</li>
|
217
|
-
<li><a href="../index.html">groonga v1.2.
|
218
|
-
<li><a href="../spec.html" >
|
217
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
218
|
+
<li><a href="../spec.html" >7. 仕様</a> »</li>
|
219
219
|
</ul>
|
220
220
|
</div>
|
221
221
|
<div class="footer">
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>
|
12
|
+
<title>7. 仕様 — groonga v1.2.5ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,9 +28,9 @@
|
|
28
28
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v1.2.
|
32
|
-
<link rel="next" title="
|
33
|
-
<link rel="prev" title="
|
31
|
+
<link rel="top" title="groonga v1.2.5ドキュメント" href="index.html" />
|
32
|
+
<link rel="next" title="7.1. 検索" href="spec/search.html" />
|
33
|
+
<link rel="prev" title="6.7. Log" href="log.html" />
|
34
34
|
</head>
|
35
35
|
<body>
|
36
36
|
<div class="header">
|
@@ -57,12 +57,12 @@
|
|
57
57
|
<a href="genindex.html" title="総合索引"
|
58
58
|
accesskey="I">索引</a></li>
|
59
59
|
<li class="right" >
|
60
|
-
<a href="spec/search.html" title="
|
60
|
+
<a href="spec/search.html" title="7.1. 検索"
|
61
61
|
accesskey="N">次へ</a> |</li>
|
62
62
|
<li class="right" >
|
63
|
-
<a href="log.html" title="
|
63
|
+
<a href="log.html" title="6.7. Log"
|
64
64
|
accesskey="P">前へ</a> |</li>
|
65
|
-
<li><a href="index.html">groonga v1.2.
|
65
|
+
<li><a href="index.html">groonga v1.2.5ドキュメント</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
68
68
|
|
@@ -72,10 +72,10 @@
|
|
72
72
|
<div class="body">
|
73
73
|
|
74
74
|
<div class="section" id="id1">
|
75
|
-
<h1>
|
75
|
+
<h1>7. 仕様<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
76
76
|
<div class="toctree-wrapper compound">
|
77
77
|
<ul>
|
78
|
-
<li class="toctree-l1"><a class="reference internal" href="spec/search.html">
|
78
|
+
<li class="toctree-l1"><a class="reference internal" href="spec/search.html">7.1. 検索</a></li>
|
79
79
|
</ul>
|
80
80
|
</div>
|
81
81
|
</div>
|
@@ -88,10 +88,10 @@
|
|
88
88
|
<div class="sphinxsidebarwrapper">
|
89
89
|
<h4>前のトピックへ</h4>
|
90
90
|
<p class="topless"><a href="log.html"
|
91
|
-
title="前の章へ">
|
91
|
+
title="前の章へ">6.7. Log</a></p>
|
92
92
|
<h4>次のトピックへ</h4>
|
93
93
|
<p class="topless"><a href="spec/search.html"
|
94
|
-
title="次の章へ">
|
94
|
+
title="次の章へ">7.1. 検索</a></p>
|
95
95
|
<h3>このページ</h3>
|
96
96
|
<ul class="this-page-menu">
|
97
97
|
<li><a href="_sources/spec.txt"
|
@@ -121,12 +121,12 @@
|
|
121
121
|
<a href="genindex.html" title="総合索引"
|
122
122
|
>索引</a></li>
|
123
123
|
<li class="right" >
|
124
|
-
<a href="spec/search.html" title="
|
124
|
+
<a href="spec/search.html" title="7.1. 検索"
|
125
125
|
>次へ</a> |</li>
|
126
126
|
<li class="right" >
|
127
|
-
<a href="log.html" title="
|
127
|
+
<a href="log.html" title="6.7. Log"
|
128
128
|
>前へ</a> |</li>
|
129
|
-
<li><a href="index.html">groonga v1.2.
|
129
|
+
<li><a href="index.html">groonga v1.2.5ドキュメント</a> »</li>
|
130
130
|
</ul>
|
131
131
|
</div>
|
132
132
|
<div class="footer">
|
@@ -0,0 +1,327 @@
|
|
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.3. 補完 — 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.4. 補正" href="correction.html" />
|
34
|
+
<link rel="prev" title="5.2. チュートリアル" href="tutorial.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/completion.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="correction.html" title="5.4. 補正"
|
62
|
+
accesskey="N">次へ</a> |</li>
|
63
|
+
<li class="right" >
|
64
|
+
<a href="tutorial.html" title="5.2. チュートリアル"
|
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="completion">
|
77
|
+
<h1>5.3. 補完<a class="headerlink" href="#completion" 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.3.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>登録されている語を前方一致RK検索。</li>
|
90
|
+
<li>学習したデータを共起検索。</li>
|
91
|
+
<li>登録されている語を前方一致検索。(実行しないこともある)</li>
|
92
|
+
</ol>
|
93
|
+
</div></blockquote>
|
94
|
+
<div class="section" id="prefix-rk-search">
|
95
|
+
<h3>5.3.1.1. 前方一致RK検索<a class="headerlink" href="#prefix-rk-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
96
|
+
<p>RKはローマ字(Romaji)とカタカナ(Katakana)を意味しています。前方一致RK検索は登録されている語をユーザの入力から前方一致検索します。このとき、ユーザの入力はローマ字でもカタカナでもひらがなでも構いません。この機能は日本語を検索するときに便利です。</p>
|
97
|
+
<p>例えば、"日本"という語が登録されているとします。そして、その読みとして"ニホン"(カタカナにしないといけません)が登録されているとします。このとき、ユーザの入力が"ni"でも"二"でも"に"でも"日本"を見つけることができます。</p>
|
98
|
+
</div>
|
99
|
+
<div class="section" id="cooccurrence-search">
|
100
|
+
<h3>5.3.1.2. 共起検索<a class="headerlink" href="#cooccurrence-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
101
|
+
<p>共起検索は入力途中のユーザのクエリから登録されている語を見つけます。共起検索では検索データベースとしてユーザの入力シーケンスを使います。これはクエリログやアクセスログなどから学習します。</p>
|
102
|
+
<p>例えば、以下のようなユーザの入力シーケンスがあるとします。</p>
|
103
|
+
<table border="1" class="docutils">
|
104
|
+
<colgroup>
|
105
|
+
<col width="50%" />
|
106
|
+
<col width="50%" />
|
107
|
+
</colgroup>
|
108
|
+
<thead valign="bottom">
|
109
|
+
<tr class="row-odd"><th class="head">入力</th>
|
110
|
+
<th class="head">検索実行</th>
|
111
|
+
</tr>
|
112
|
+
</thead>
|
113
|
+
<tbody valign="top">
|
114
|
+
<tr class="row-even"><td>s</td>
|
115
|
+
<td>していない</td>
|
116
|
+
</tr>
|
117
|
+
<tr class="row-odd"><td>se</td>
|
118
|
+
<td>していない</td>
|
119
|
+
</tr>
|
120
|
+
<tr class="row-even"><td>sea</td>
|
121
|
+
<td>していない</td>
|
122
|
+
</tr>
|
123
|
+
<tr class="row-odd"><td>sear</td>
|
124
|
+
<td>していない</td>
|
125
|
+
</tr>
|
126
|
+
<tr class="row-even"><td>searc</td>
|
127
|
+
<td>していない</td>
|
128
|
+
</tr>
|
129
|
+
<tr class="row-odd"><td>search</td>
|
130
|
+
<td>した</td>
|
131
|
+
</tr>
|
132
|
+
<tr class="row-even"><td>e</td>
|
133
|
+
<td>していない</td>
|
134
|
+
</tr>
|
135
|
+
<tr class="row-odd"><td>en</td>
|
136
|
+
<td>していない</td>
|
137
|
+
</tr>
|
138
|
+
<tr class="row-even"><td>eng</td>
|
139
|
+
<td>していない</td>
|
140
|
+
</tr>
|
141
|
+
<tr class="row-odd"><td>engi</td>
|
142
|
+
<td>していない</td>
|
143
|
+
</tr>
|
144
|
+
<tr class="row-even"><td>engin</td>
|
145
|
+
<td>していない</td>
|
146
|
+
</tr>
|
147
|
+
<tr class="row-odd"><td>engine</td>
|
148
|
+
<td>していない</td>
|
149
|
+
</tr>
|
150
|
+
<tr class="row-even"><td>enginen</td>
|
151
|
+
<td>していない(入力ミス!)</td>
|
152
|
+
</tr>
|
153
|
+
<tr class="row-odd"><td>engine</td>
|
154
|
+
<td>した</td>
|
155
|
+
</tr>
|
156
|
+
</tbody>
|
157
|
+
</table>
|
158
|
+
<p>groongaは以下のような補完ペアを作ります。:</p>
|
159
|
+
<table border="1" class="docutils">
|
160
|
+
<colgroup>
|
161
|
+
<col width="33%" />
|
162
|
+
<col width="67%" />
|
163
|
+
</colgroup>
|
164
|
+
<thead valign="bottom">
|
165
|
+
<tr class="row-odd"><th class="head">入力</th>
|
166
|
+
<th class="head">補完語</th>
|
167
|
+
</tr>
|
168
|
+
</thead>
|
169
|
+
<tbody valign="top">
|
170
|
+
<tr class="row-even"><td>s</td>
|
171
|
+
<td>search</td>
|
172
|
+
</tr>
|
173
|
+
<tr class="row-odd"><td>se</td>
|
174
|
+
<td>search</td>
|
175
|
+
</tr>
|
176
|
+
<tr class="row-even"><td>sea</td>
|
177
|
+
<td>search</td>
|
178
|
+
</tr>
|
179
|
+
<tr class="row-odd"><td>sear</td>
|
180
|
+
<td>search</td>
|
181
|
+
</tr>
|
182
|
+
<tr class="row-even"><td>searc</td>
|
183
|
+
<td>search</td>
|
184
|
+
</tr>
|
185
|
+
<tr class="row-odd"><td>e</td>
|
186
|
+
<td>engine</td>
|
187
|
+
</tr>
|
188
|
+
<tr class="row-even"><td>en</td>
|
189
|
+
<td>engine</td>
|
190
|
+
</tr>
|
191
|
+
<tr class="row-odd"><td>eng</td>
|
192
|
+
<td>engine</td>
|
193
|
+
</tr>
|
194
|
+
<tr class="row-even"><td>engi</td>
|
195
|
+
<td>engine</td>
|
196
|
+
</tr>
|
197
|
+
<tr class="row-odd"><td>engin</td>
|
198
|
+
<td>engine</td>
|
199
|
+
</tr>
|
200
|
+
<tr class="row-even"><td>engine</td>
|
201
|
+
<td>engine</td>
|
202
|
+
</tr>
|
203
|
+
<tr class="row-odd"><td>enginen</td>
|
204
|
+
<td>engine</td>
|
205
|
+
</tr>
|
206
|
+
</tbody>
|
207
|
+
</table>
|
208
|
+
<p>ユーザが検索を実行する前のすべての入力(例では"s"、"se"など)を検索を実行した語(例では"search")に対応付けます。</p>
|
209
|
+
<p>厳密に言うとこの説明は正しくありません。なぜならタイムスタンプに関することを省略しているからです。groongaは本当は「ユーザが検索を実行する前のすべての入力を」使いません。厳密には「ユーザが検索を実行する前の1分以内の入力のみ」を使います。検索実行時から1分より前の入力は使われません。</p>
|
210
|
+
<p>ユーザが"sea"と入力したら、共起検索は"search"を返します。なぜなら、「入力」カラムには"sea"という値があり、対応する「補完語」カラムには"search"という値が入っているからです。</p>
|
211
|
+
</div>
|
212
|
+
<div class="section" id="prefix-search">
|
213
|
+
<h3>5.3.1.3. 前方一致検索<a class="headerlink" href="#prefix-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
214
|
+
<p>前方一致検索はユーザが入力した文字列から始まる登録済みの語を検索します。この検索は前方一致RK検索とは違ってローマ字、カタカナ、ひらがなを特別扱いしません。</p>
|
215
|
+
<p>この検索はいつも実行されるわけではありません。この検索は明示的に実行するように指示するか、前方一致RK検索と共起検索の両方がなにもヒットしないときのみ実行されます。</p>
|
216
|
+
<p>例えば、"search"が登録されているとします。ユーザは"s"、"se"、"sea"、"sear"、"searc"、"search"のどれでも"search"を補完候補として利用できます。</p>
|
217
|
+
</div>
|
218
|
+
</div>
|
219
|
+
<div class="section" id="how-to-use">
|
220
|
+
<h2>5.3.2. 使い方<a class="headerlink" href="#how-to-use" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
221
|
+
<p>groongaは補完機能を使うために <a class="reference internal" href="../commands/suggest.html"><em>suggest</em></a> コマンドを用意しています。 <cite>--type complete</cite> オプションを使うと補完機能を利用できます。</p>
|
222
|
+
<p>例えば、"en"と入力したときの補完結果を取得するコマンドは以下のようになります。:</p>
|
223
|
+
<p>実行例:</p>
|
224
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types complete --threshold 1 --query en
|
225
|
+
[[0,1313131879.64588,0.000913584],{"complete":[[1],[["_key","ShortText"],["_score","Int32"]],["engine",1]]}]
|
226
|
+
</pre></div>
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
<div class="section" id="how-it-learns">
|
230
|
+
<h2>5.3.3. 学習方法<a class="headerlink" href="#how-it-learns" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
231
|
+
<p>共起検索は学習データを使います。学習データはクエリログやアクセスログなどを元に作成します。学習データを作成するには、タイムスタンプ付きの入力シーケンスと、タイムスタンプ付きの検索実行時の入力内容が必要です。</p>
|
232
|
+
<p>例えば、ユーザが"engine"で検索したいとします。ユーザが以下のようなシーケンスで検索クエリを入力したとします。:</p>
|
233
|
+
<blockquote>
|
234
|
+
<div><ol class="arabic simple">
|
235
|
+
<li>2011-08-10T13:33:23+09:00: e</li>
|
236
|
+
<li>2011-08-10T13:33:23+09:00: en</li>
|
237
|
+
<li>2011-08-10T13:33:24+09:00: eng</li>
|
238
|
+
<li>2011-08-10T13:33:24+09:00: engi</li>
|
239
|
+
<li>2011-08-10T13:33:24+09:00: engin</li>
|
240
|
+
<li>2011-08-10T13:33:25+09:00: engine (検索実行!)</li>
|
241
|
+
</ol>
|
242
|
+
</div></blockquote>
|
243
|
+
<p>以下のコマンドでこの入力シーケンスから学習できます。:</p>
|
244
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
245
|
+
[
|
246
|
+
{"sequence": "1", "time": 1312950803.86057, "item": "e"},
|
247
|
+
{"sequence": "1", "time": 1312950803.96857, "item": "en"},
|
248
|
+
{"sequence": "1", "time": 1312950804.26057, "item": "eng"},
|
249
|
+
{"sequence": "1", "time": 1312950804.56057, "item": "engi"},
|
250
|
+
{"sequence": "1", "time": 1312950804.76057, "item": "engin"},
|
251
|
+
{"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
|
252
|
+
]
|
253
|
+
</pre></div>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
|
259
|
+
</div>
|
260
|
+
</div>
|
261
|
+
</div>
|
262
|
+
<div class="sphinxsidebar">
|
263
|
+
<div class="sphinxsidebarwrapper">
|
264
|
+
<h3><a href="../index.html">目次</a></h3>
|
265
|
+
<ul>
|
266
|
+
<li><a class="reference internal" href="#">5.3. 補完</a><ul>
|
267
|
+
<li><a class="reference internal" href="#how-it-works">5.3.1. どのように動作するか</a><ul>
|
268
|
+
<li><a class="reference internal" href="#prefix-rk-search">5.3.1.1. 前方一致RK検索</a></li>
|
269
|
+
<li><a class="reference internal" href="#cooccurrence-search">5.3.1.2. 共起検索</a></li>
|
270
|
+
<li><a class="reference internal" href="#prefix-search">5.3.1.3. 前方一致検索</a></li>
|
271
|
+
</ul>
|
272
|
+
</li>
|
273
|
+
<li><a class="reference internal" href="#how-to-use">5.3.2. 使い方</a></li>
|
274
|
+
<li><a class="reference internal" href="#how-it-learns">5.3.3. 学習方法</a></li>
|
275
|
+
</ul>
|
276
|
+
</li>
|
277
|
+
</ul>
|
278
|
+
|
279
|
+
<h4>前のトピックへ</h4>
|
280
|
+
<p class="topless"><a href="tutorial.html"
|
281
|
+
title="前の章へ">5.2. チュートリアル</a></p>
|
282
|
+
<h4>次のトピックへ</h4>
|
283
|
+
<p class="topless"><a href="correction.html"
|
284
|
+
title="次の章へ">5.4. 補正</a></p>
|
285
|
+
<h3>このページ</h3>
|
286
|
+
<ul class="this-page-menu">
|
287
|
+
<li><a href="../_sources/suggest/completion.txt"
|
288
|
+
rel="nofollow">ソースコードを表示</a></li>
|
289
|
+
</ul>
|
290
|
+
<div id="searchbox" style="display: none">
|
291
|
+
<h3>クイック検索</h3>
|
292
|
+
<form class="search" action="../search.html" method="get">
|
293
|
+
<input type="text" name="q" size="18" />
|
294
|
+
<input type="submit" value="検索" />
|
295
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
296
|
+
<input type="hidden" name="area" value="default" />
|
297
|
+
</form>
|
298
|
+
<p class="searchtip" style="font-size: 90%">
|
299
|
+
モジュール、クラス、または関数名を入力してください
|
300
|
+
</p>
|
301
|
+
</div>
|
302
|
+
<script type="text/javascript">$('#searchbox').show(0);</script>
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
<div class="clearer"></div>
|
306
|
+
</div>
|
307
|
+
<div class="related">
|
308
|
+
<h3>ナビゲーション</h3>
|
309
|
+
<ul>
|
310
|
+
<li class="right" style="margin-right: 10px">
|
311
|
+
<a href="../genindex.html" title="総合索引"
|
312
|
+
>索引</a></li>
|
313
|
+
<li class="right" >
|
314
|
+
<a href="correction.html" title="5.4. 補正"
|
315
|
+
>次へ</a> |</li>
|
316
|
+
<li class="right" >
|
317
|
+
<a href="tutorial.html" title="5.2. チュートリアル"
|
318
|
+
>前へ</a> |</li>
|
319
|
+
<li><a href="../index.html">groonga v1.2.5ドキュメント</a> »</li>
|
320
|
+
<li><a href="../suggest.html" >5. サジェスト</a> »</li>
|
321
|
+
</ul>
|
322
|
+
</div>
|
323
|
+
<div class="footer">
|
324
|
+
© Copyright 2009-2011, Brazil, Inc.
|
325
|
+
</div>
|
326
|
+
</body>
|
327
|
+
</html>
|