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 documentation</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,10 +27,10 @@
|
|
27
27
|
<script type="text/javascript" src="../_static/underscore.js"></script>
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
30
|
-
<link rel="top" title="groonga v1.2.
|
31
|
-
<link rel="up" title="
|
32
|
-
<link rel="next" title="
|
33
|
-
<link rel="prev" title="
|
30
|
+
<link rel="top" title="groonga v1.2.5 documentation" href="../index.html" />
|
31
|
+
<link rel="up" title="7. 仕様" href="../spec.html" />
|
32
|
+
<link rel="next" title="8. 制限事項" href="../limitations.html" />
|
33
|
+
<link rel="prev" title="7. 仕様" href="../spec.html" />
|
34
34
|
</head>
|
35
35
|
<body>
|
36
36
|
<div class="header">
|
@@ -57,13 +57,13 @@
|
|
57
57
|
<a href="../genindex.html" title="General Index"
|
58
58
|
accesskey="I">index</a></li>
|
59
59
|
<li class="right" >
|
60
|
-
<a href="../limitations.html" title="
|
60
|
+
<a href="../limitations.html" title="8. 制限事項"
|
61
61
|
accesskey="N">next</a> |</li>
|
62
62
|
<li class="right" >
|
63
|
-
<a href="../spec.html" title="
|
63
|
+
<a href="../spec.html" title="7. 仕様"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="../index.html">groonga v1.2.
|
66
|
-
<li><a href="../spec.html" accesskey="U">
|
65
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
66
|
+
<li><a href="../spec.html" accesskey="U">7. 仕様</a> »</li>
|
67
67
|
</ul>
|
68
68
|
</div>
|
69
69
|
|
@@ -73,10 +73,10 @@
|
|
73
73
|
<div class="body">
|
74
74
|
|
75
75
|
<div class="section" id="id1">
|
76
|
-
<h1>
|
76
|
+
<h1>7.1. 検索<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
|
77
77
|
<p><a class="reference internal" href="../commands/select.html"><em>select</em></a> コマンドがqueryパラメータを使ってどのように検索するのかを説明します。</p>
|
78
78
|
<div class="section" id="id2">
|
79
|
-
<h2>
|
79
|
+
<h2>7.1.1. 検索の挙動<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
|
80
80
|
<p>検索の挙動には以下の3種類あり、検索結果によって動的に使い分けています。</p>
|
81
81
|
<ol class="arabic simple">
|
82
82
|
<li>完全一致検索</li>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
</ol>
|
86
86
|
<p>どのように検索の挙動を使い分けているかを説明する前に、まず、それぞれの検索の挙動を説明します。</p>
|
87
87
|
<div class="section" id="id3">
|
88
|
-
<h3>
|
88
|
+
<h3>7.1.1.1. 完全一致検索<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3>
|
89
89
|
<p>検索対象文書は複数の語彙にトークナイズ(分割)され、それぞれを単位とした語彙表に索引を管理します。
|
90
90
|
検索キーワードも同一の方法でトークナイズされます。</p>
|
91
91
|
<p>このとき、検索キーワードをトークナイズした結果得られる語彙の配列と同一の配列を含む文書を検索する処理を完全一致検索と呼んでいます。</p>
|
@@ -119,7 +119,7 @@
|
|
119
119
|
<p>という三つの語彙として処理されます。この語彙の並びは「楽し / しい / いb / bi / il / ll / li / ia / ar / rd / d」という語彙の並びに含まれるので、完全一致でヒットします。</p>
|
120
120
|
</div>
|
121
121
|
<div class="section" id="id4">
|
122
|
-
<h3>
|
122
|
+
<h3>7.1.1.2. 非わかち書き検索<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h3>
|
123
123
|
<p>非わかち書き検索はパトリシア木で語彙表を構築している場合のみ利用可能です。</p>
|
124
124
|
<p>非わかち書き検索の挙動はTokenBigramなどN-gram系のトークナイザーを利用している場合とTokenMecabトークナイザーを利用している場合で挙動が変わります。</p>
|
125
125
|
<p>N-gram系のトークナイザーを利用している場合はキーワードで前方一致検索をします。</p>
|
@@ -128,7 +128,7 @@
|
|
128
128
|
<p>例えば、「スープカレー」というキーワードで検索した場合、「スープカレーバー」(1単語扱い)にヒットしますが、「スープカレー」("スープ"と"カレー"の2単語扱い)や「スープカレーライス」("スープ"と"カレーライス"の2単語扱い)にはヒットしません。</p>
|
129
129
|
</div>
|
130
130
|
<div class="section" id="id5">
|
131
|
-
<h3>
|
131
|
+
<h3>7.1.1.3. 部分一致検索<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h3>
|
132
132
|
<p>部分一致検索はパトリシア木で語彙表を構築していて、かつ、KEY_WITH_SISオプションを指定している場合のみ利用可能です。KEY_WITH_SISオプションが指定されていない場合は非わかち書き検索と同等です。</p>
|
133
133
|
<p>部分一致検索の挙動はTokenBigramなどN-gram系のトークナイザーを利用している場合とTokenMecabトークナイザーを利用している場合で挙動が変わります。</p>
|
134
134
|
<p>Bigramの場合は前方一致検索と中間一致検索と後方一致検索を行います。</p>
|
@@ -138,7 +138,7 @@
|
|
138
138
|
</div>
|
139
139
|
</div>
|
140
140
|
<div class="section" id="id6">
|
141
|
-
<h2>
|
141
|
+
<h2>7.1.2. 検索の使い分け<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
|
142
142
|
<p>groongaは基本的に完全一致検索のみを行います。完全一致検索でのヒット件数が所定の閾値を超えない場合に限り、非わかち書き検索を行い、それでもヒット件数が閾値を超えない場合は部分一致検索を行います。(閾値は1がデフォルト値となっています)</p>
|
143
143
|
<p>ただし、すでに検索結果セットが存在する場合はたとえヒット件数が閾値に満たなくても完全一致検索のみを行います。</p>
|
144
144
|
<p>例えば、以下のようなクエリの場合は、それぞれの検索でヒット件数が閾値に満たない場合は完全一致検索、非わかち書き検索、部分一致検索を順に行います。:</p>
|
@@ -161,24 +161,24 @@
|
|
161
161
|
<div class="sphinxsidebarwrapper">
|
162
162
|
<h3><a href="../index.html">Table Of Contents</a></h3>
|
163
163
|
<ul>
|
164
|
-
<li><a class="reference internal" href="#">
|
165
|
-
<li><a class="reference internal" href="#id2">
|
166
|
-
<li><a class="reference internal" href="#id3">
|
167
|
-
<li><a class="reference internal" href="#id4">
|
168
|
-
<li><a class="reference internal" href="#id5">
|
164
|
+
<li><a class="reference internal" href="#">7.1. 検索</a><ul>
|
165
|
+
<li><a class="reference internal" href="#id2">7.1.1. 検索の挙動</a><ul>
|
166
|
+
<li><a class="reference internal" href="#id3">7.1.1.1. 完全一致検索</a></li>
|
167
|
+
<li><a class="reference internal" href="#id4">7.1.1.2. 非わかち書き検索</a></li>
|
168
|
+
<li><a class="reference internal" href="#id5">7.1.1.3. 部分一致検索</a></li>
|
169
169
|
</ul>
|
170
170
|
</li>
|
171
|
-
<li><a class="reference internal" href="#id6">
|
171
|
+
<li><a class="reference internal" href="#id6">7.1.2. 検索の使い分け</a></li>
|
172
172
|
</ul>
|
173
173
|
</li>
|
174
174
|
</ul>
|
175
175
|
|
176
176
|
<h4>Previous topic</h4>
|
177
177
|
<p class="topless"><a href="../spec.html"
|
178
|
-
title="previous chapter">
|
178
|
+
title="previous chapter">7. 仕様</a></p>
|
179
179
|
<h4>Next topic</h4>
|
180
180
|
<p class="topless"><a href="../limitations.html"
|
181
|
-
title="next chapter">
|
181
|
+
title="next chapter">8. 制限事項</a></p>
|
182
182
|
<h3>This Page</h3>
|
183
183
|
<ul class="this-page-menu">
|
184
184
|
<li><a href="../_sources/spec/search.txt"
|
@@ -208,13 +208,13 @@
|
|
208
208
|
<a href="../genindex.html" title="General Index"
|
209
209
|
>index</a></li>
|
210
210
|
<li class="right" >
|
211
|
-
<a href="../limitations.html" title="
|
211
|
+
<a href="../limitations.html" title="8. 制限事項"
|
212
212
|
>next</a> |</li>
|
213
213
|
<li class="right" >
|
214
|
-
<a href="../spec.html" title="
|
214
|
+
<a href="../spec.html" title="7. 仕様"
|
215
215
|
>previous</a> |</li>
|
216
|
-
<li><a href="../index.html">groonga v1.2.
|
217
|
-
<li><a href="../spec.html" >
|
216
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
217
|
+
<li><a href="../spec.html" >7. 仕様</a> »</li>
|
218
218
|
</ul>
|
219
219
|
</div>
|
220
220
|
<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 documentation</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.5',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,9 +27,9 @@
|
|
27
27
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
28
28
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
29
29
|
<link rel="shortcut icon" href="_static/favicon.ico"/>
|
30
|
-
<link rel="top" title="groonga v1.2.
|
31
|
-
<link rel="next" title="
|
32
|
-
<link rel="prev" title="
|
30
|
+
<link rel="top" title="groonga v1.2.5 documentation" href="index.html" />
|
31
|
+
<link rel="next" title="7.1. 検索" href="spec/search.html" />
|
32
|
+
<link rel="prev" title="6.7. Log" href="log.html" />
|
33
33
|
</head>
|
34
34
|
<body>
|
35
35
|
<div class="header">
|
@@ -56,12 +56,12 @@
|
|
56
56
|
<a href="genindex.html" title="General Index"
|
57
57
|
accesskey="I">index</a></li>
|
58
58
|
<li class="right" >
|
59
|
-
<a href="spec/search.html" title="
|
59
|
+
<a href="spec/search.html" title="7.1. 検索"
|
60
60
|
accesskey="N">next</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="log.html" title="
|
62
|
+
<a href="log.html" title="6.7. Log"
|
63
63
|
accesskey="P">previous</a> |</li>
|
64
|
-
<li><a href="index.html">groonga v1.2.
|
64
|
+
<li><a href="index.html">groonga v1.2.5 documentation</a> »</li>
|
65
65
|
</ul>
|
66
66
|
</div>
|
67
67
|
|
@@ -71,10 +71,10 @@
|
|
71
71
|
<div class="body">
|
72
72
|
|
73
73
|
<div class="section" id="id1">
|
74
|
-
<h1>
|
74
|
+
<h1>7. 仕様<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
|
75
75
|
<div class="toctree-wrapper compound">
|
76
76
|
<ul>
|
77
|
-
<li class="toctree-l1"><a class="reference internal" href="spec/search.html">
|
77
|
+
<li class="toctree-l1"><a class="reference internal" href="spec/search.html">7.1. 検索</a></li>
|
78
78
|
</ul>
|
79
79
|
</div>
|
80
80
|
</div>
|
@@ -87,10 +87,10 @@
|
|
87
87
|
<div class="sphinxsidebarwrapper">
|
88
88
|
<h4>Previous topic</h4>
|
89
89
|
<p class="topless"><a href="log.html"
|
90
|
-
title="previous chapter">
|
90
|
+
title="previous chapter">6.7. Log</a></p>
|
91
91
|
<h4>Next topic</h4>
|
92
92
|
<p class="topless"><a href="spec/search.html"
|
93
|
-
title="next chapter">
|
93
|
+
title="next chapter">7.1. 検索</a></p>
|
94
94
|
<h3>This Page</h3>
|
95
95
|
<ul class="this-page-menu">
|
96
96
|
<li><a href="_sources/spec.txt"
|
@@ -120,12 +120,12 @@
|
|
120
120
|
<a href="genindex.html" title="General Index"
|
121
121
|
>index</a></li>
|
122
122
|
<li class="right" >
|
123
|
-
<a href="spec/search.html" title="
|
123
|
+
<a href="spec/search.html" title="7.1. 検索"
|
124
124
|
>next</a> |</li>
|
125
125
|
<li class="right" >
|
126
|
-
<a href="log.html" title="
|
126
|
+
<a href="log.html" title="6.7. Log"
|
127
127
|
>previous</a> |</li>
|
128
|
-
<li><a href="index.html">groonga v1.2.
|
128
|
+
<li><a href="index.html">groonga v1.2.5 documentation</a> »</li>
|
129
129
|
</ul>
|
130
130
|
</div>
|
131
131
|
<div class="footer">
|
@@ -0,0 +1,357 @@
|
|
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. Completion — groonga v1.2.5 documentation</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
|
+
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
30
|
+
<link rel="top" title="groonga v1.2.5 documentation" href="../index.html" />
|
31
|
+
<link rel="up" title="5. Suggest" href="../suggest.html" />
|
32
|
+
<link rel="next" title="5.4. Correction" href="correction.html" />
|
33
|
+
<link rel="prev" title="5.2. Tutorial" href="tutorial.html" />
|
34
|
+
</head>
|
35
|
+
<body>
|
36
|
+
<div class="header">
|
37
|
+
<h1 class="title">
|
38
|
+
<a id="top-link" href="../index.html">
|
39
|
+
<span class="project">groonga</span>
|
40
|
+
<span class="separator">-</span>
|
41
|
+
<span class="description">An open-source fulltext search engine and column store.</span>
|
42
|
+
</a>
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<div class="other-language-links">
|
46
|
+
<ul>
|
47
|
+
<li><a href="../../../ja/html/suggest/completion.html"><img src="../_static/jp.png" alt="日本語"></a></li>
|
48
|
+
</ul>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
<div class="related">
|
54
|
+
<h3>Navigation</h3>
|
55
|
+
<ul>
|
56
|
+
<li class="right" style="margin-right: 10px">
|
57
|
+
<a href="../genindex.html" title="General Index"
|
58
|
+
accesskey="I">index</a></li>
|
59
|
+
<li class="right" >
|
60
|
+
<a href="correction.html" title="5.4. Correction"
|
61
|
+
accesskey="N">next</a> |</li>
|
62
|
+
<li class="right" >
|
63
|
+
<a href="tutorial.html" title="5.2. Tutorial"
|
64
|
+
accesskey="P">previous</a> |</li>
|
65
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
66
|
+
<li><a href="../suggest.html" accesskey="U">5. Suggest</a> »</li>
|
67
|
+
</ul>
|
68
|
+
</div>
|
69
|
+
|
70
|
+
<div class="document">
|
71
|
+
<div class="documentwrapper">
|
72
|
+
<div class="bodywrapper">
|
73
|
+
<div class="body">
|
74
|
+
|
75
|
+
<div class="section" id="completion">
|
76
|
+
<h1>5.3. Completion<a class="headerlink" href="#completion" title="Permalink to this headline">¶</a></h1>
|
77
|
+
<p>This section describes about the following completion
|
78
|
+
features:</p>
|
79
|
+
<ul class="simple">
|
80
|
+
<li>How it works</li>
|
81
|
+
<li>How to use</li>
|
82
|
+
<li>How to learn</li>
|
83
|
+
</ul>
|
84
|
+
<div class="section" id="how-it-works">
|
85
|
+
<h2>5.3.1. How it works<a class="headerlink" href="#how-it-works" title="Permalink to this headline">¶</a></h2>
|
86
|
+
<p>The completion feature uses three searches to compute
|
87
|
+
completed words:</p>
|
88
|
+
<blockquote>
|
89
|
+
<div><ol class="arabic simple">
|
90
|
+
<li>Prefix RK search against registered words.</li>
|
91
|
+
<li>Cooccurrence search against learned data.</li>
|
92
|
+
<li>Prefix search against registered words. (optional)</li>
|
93
|
+
</ol>
|
94
|
+
</div></blockquote>
|
95
|
+
<div class="section" id="prefix-rk-search">
|
96
|
+
<h3>5.3.1.1. Prefix RK search<a class="headerlink" href="#prefix-rk-search" title="Permalink to this headline">¶</a></h3>
|
97
|
+
<p>RK means Romaji and Katakana. Prefix RK search can find
|
98
|
+
registered words that start with user's input by romaji,
|
99
|
+
katakana or hiragana. It's useful for searching in Japanese.</p>
|
100
|
+
<p>For example, there is a registered word "日本". And "ニホン"
|
101
|
+
(it must be katakana) is registered as its reading. An user
|
102
|
+
can find "日本" by "ni", "二" or "に".</p>
|
103
|
+
</div>
|
104
|
+
<div class="section" id="cooccurrence-search">
|
105
|
+
<h3>5.3.1.2. Cooccurrence search<a class="headerlink" href="#cooccurrence-search" title="Permalink to this headline">¶</a></h3>
|
106
|
+
<p>Cooccurrence search can find registered words from user's
|
107
|
+
partial input. It uses user input sequences that will be
|
108
|
+
learned from query logs, access logs and so on.</p>
|
109
|
+
<p>For example, there is the following user input sequence:</p>
|
110
|
+
<table border="1" class="docutils">
|
111
|
+
<colgroup>
|
112
|
+
<col width="50%" />
|
113
|
+
<col width="50%" />
|
114
|
+
</colgroup>
|
115
|
+
<thead valign="bottom">
|
116
|
+
<tr class="row-odd"><th class="head">input</th>
|
117
|
+
<th class="head">submit</th>
|
118
|
+
</tr>
|
119
|
+
</thead>
|
120
|
+
<tbody valign="top">
|
121
|
+
<tr class="row-even"><td>s</td>
|
122
|
+
<td>no</td>
|
123
|
+
</tr>
|
124
|
+
<tr class="row-odd"><td>se</td>
|
125
|
+
<td>no</td>
|
126
|
+
</tr>
|
127
|
+
<tr class="row-even"><td>sea</td>
|
128
|
+
<td>no</td>
|
129
|
+
</tr>
|
130
|
+
<tr class="row-odd"><td>sear</td>
|
131
|
+
<td>no</td>
|
132
|
+
</tr>
|
133
|
+
<tr class="row-even"><td>searc</td>
|
134
|
+
<td>no</td>
|
135
|
+
</tr>
|
136
|
+
<tr class="row-odd"><td>search</td>
|
137
|
+
<td>yes</td>
|
138
|
+
</tr>
|
139
|
+
<tr class="row-even"><td>e</td>
|
140
|
+
<td>no</td>
|
141
|
+
</tr>
|
142
|
+
<tr class="row-odd"><td>en</td>
|
143
|
+
<td>no</td>
|
144
|
+
</tr>
|
145
|
+
<tr class="row-even"><td>eng</td>
|
146
|
+
<td>no</td>
|
147
|
+
</tr>
|
148
|
+
<tr class="row-odd"><td>engi</td>
|
149
|
+
<td>no</td>
|
150
|
+
</tr>
|
151
|
+
<tr class="row-even"><td>engin</td>
|
152
|
+
<td>no</td>
|
153
|
+
</tr>
|
154
|
+
<tr class="row-odd"><td>engine</td>
|
155
|
+
<td>no</td>
|
156
|
+
</tr>
|
157
|
+
<tr class="row-even"><td>enginen</td>
|
158
|
+
<td>no (typo!)</td>
|
159
|
+
</tr>
|
160
|
+
<tr class="row-odd"><td>engine</td>
|
161
|
+
<td>yes</td>
|
162
|
+
</tr>
|
163
|
+
</tbody>
|
164
|
+
</table>
|
165
|
+
<p>Groonga creates the following completion pairs:</p>
|
166
|
+
<table border="1" class="docutils">
|
167
|
+
<colgroup>
|
168
|
+
<col width="33%" />
|
169
|
+
<col width="67%" />
|
170
|
+
</colgroup>
|
171
|
+
<thead valign="bottom">
|
172
|
+
<tr class="row-odd"><th class="head">input</th>
|
173
|
+
<th class="head">completed word</th>
|
174
|
+
</tr>
|
175
|
+
</thead>
|
176
|
+
<tbody valign="top">
|
177
|
+
<tr class="row-even"><td>s</td>
|
178
|
+
<td>search</td>
|
179
|
+
</tr>
|
180
|
+
<tr class="row-odd"><td>se</td>
|
181
|
+
<td>search</td>
|
182
|
+
</tr>
|
183
|
+
<tr class="row-even"><td>sea</td>
|
184
|
+
<td>search</td>
|
185
|
+
</tr>
|
186
|
+
<tr class="row-odd"><td>sear</td>
|
187
|
+
<td>search</td>
|
188
|
+
</tr>
|
189
|
+
<tr class="row-even"><td>searc</td>
|
190
|
+
<td>search</td>
|
191
|
+
</tr>
|
192
|
+
<tr class="row-odd"><td>e</td>
|
193
|
+
<td>engine</td>
|
194
|
+
</tr>
|
195
|
+
<tr class="row-even"><td>en</td>
|
196
|
+
<td>engine</td>
|
197
|
+
</tr>
|
198
|
+
<tr class="row-odd"><td>eng</td>
|
199
|
+
<td>engine</td>
|
200
|
+
</tr>
|
201
|
+
<tr class="row-even"><td>engi</td>
|
202
|
+
<td>engine</td>
|
203
|
+
</tr>
|
204
|
+
<tr class="row-odd"><td>engin</td>
|
205
|
+
<td>engine</td>
|
206
|
+
</tr>
|
207
|
+
<tr class="row-even"><td>engine</td>
|
208
|
+
<td>engine</td>
|
209
|
+
</tr>
|
210
|
+
<tr class="row-odd"><td>enginen</td>
|
211
|
+
<td>engine</td>
|
212
|
+
</tr>
|
213
|
+
</tbody>
|
214
|
+
</table>
|
215
|
+
<p>All user not-submitted inputs (e.g. "s", "se" and so on)
|
216
|
+
before each an user submission maps to the submitted input
|
217
|
+
(e.g. "search").</p>
|
218
|
+
<p>To be precise, this description isn't correct because it
|
219
|
+
omits about time stamp. Groonga doesn't case about "all user
|
220
|
+
not-submitted inputs before each an user
|
221
|
+
submission". Groonga just case about "all user not-submitted
|
222
|
+
inputs within a minute from an user submission before each
|
223
|
+
an user submission". Groonga doesn't treat user inputs
|
224
|
+
before a minute ago.</p>
|
225
|
+
<p>If an user inputs "sea" and cooccurrence search returns
|
226
|
+
"search" because "sea" is in input column and corresponding
|
227
|
+
completed word column value is "search".</p>
|
228
|
+
</div>
|
229
|
+
<div class="section" id="prefix-search">
|
230
|
+
<h3>5.3.1.3. Prefix search<a class="headerlink" href="#prefix-search" title="Permalink to this headline">¶</a></h3>
|
231
|
+
<p>Prefix search can find registered word that start with
|
232
|
+
user's input. This search doesn't care about romaji,
|
233
|
+
katakana and hiragana not like Prefix RK search.</p>
|
234
|
+
<p>This search isn't always ran. It's just ran when it's
|
235
|
+
requested explicitly or both prefix RK search and
|
236
|
+
cooccurrence search return nothing.</p>
|
237
|
+
<p>For example, there is a registered word "search". An user
|
238
|
+
can find "search" by "s", "se", "sea", "sear", "searc" and
|
239
|
+
"search".</p>
|
240
|
+
</div>
|
241
|
+
</div>
|
242
|
+
<div class="section" id="how-to-use">
|
243
|
+
<h2>5.3.2. How to use<a class="headerlink" href="#how-to-use" title="Permalink to this headline">¶</a></h2>
|
244
|
+
<p>Groonga provides <a class="reference internal" href="../commands/suggest.html"><em>suggest</em></a> command to use
|
245
|
+
completion. <cite>--type complete</cite> option requests completion.</p>
|
246
|
+
<p>For example, here is an command to get completion results by
|
247
|
+
"en":</p>
|
248
|
+
<p>Execution example:</p>
|
249
|
+
<div class="highlight-none"><div class="highlight"><pre>> suggest --table item_query --column kana --types complete --threshold 1 --query en
|
250
|
+
[[0,1313131879.64588,0.000913584],{"complete":[[1],[["_key","ShortText"],["_score","Int32"]],["engine",1]]}]
|
251
|
+
</pre></div>
|
252
|
+
</div>
|
253
|
+
</div>
|
254
|
+
<div class="section" id="how-it-learns">
|
255
|
+
<h2>5.3.3. How it learns<a class="headerlink" href="#how-it-learns" title="Permalink to this headline">¶</a></h2>
|
256
|
+
<p>Cooccurrence search uses learned data. They are based on
|
257
|
+
query logs, access logs and so on. To create learned data,
|
258
|
+
groonga needs user input sequence with time stamp and user
|
259
|
+
submit input with time stamp.</p>
|
260
|
+
<p>For example, an user wants to search by "engine". The user
|
261
|
+
inputs the query with the following sequence:</p>
|
262
|
+
<blockquote>
|
263
|
+
<div><ol class="arabic simple">
|
264
|
+
<li>2011-08-10T13:33:23+09:00: e</li>
|
265
|
+
<li>2011-08-10T13:33:23+09:00: en</li>
|
266
|
+
<li>2011-08-10T13:33:24+09:00: eng</li>
|
267
|
+
<li>2011-08-10T13:33:24+09:00: engi</li>
|
268
|
+
<li>2011-08-10T13:33:24+09:00: engin</li>
|
269
|
+
<li>2011-08-10T13:33:25+09:00: engine (submit!)</li>
|
270
|
+
</ol>
|
271
|
+
</div></blockquote>
|
272
|
+
<p>Groonga can be learned from the input sequence by the
|
273
|
+
following command:</p>
|
274
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
|
275
|
+
[
|
276
|
+
{"sequence": "1", "time": 1312950803.86057, "item": "e"},
|
277
|
+
{"sequence": "1", "time": 1312950803.96857, "item": "en"},
|
278
|
+
{"sequence": "1", "time": 1312950804.26057, "item": "eng"},
|
279
|
+
{"sequence": "1", "time": 1312950804.56057, "item": "engi"},
|
280
|
+
{"sequence": "1", "time": 1312950804.76057, "item": "engin"},
|
281
|
+
{"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
|
282
|
+
]
|
283
|
+
</pre></div>
|
284
|
+
</div>
|
285
|
+
</div>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
</div>
|
290
|
+
</div>
|
291
|
+
</div>
|
292
|
+
<div class="sphinxsidebar">
|
293
|
+
<div class="sphinxsidebarwrapper">
|
294
|
+
<h3><a href="../index.html">Table Of Contents</a></h3>
|
295
|
+
<ul>
|
296
|
+
<li><a class="reference internal" href="#">5.3. Completion</a><ul>
|
297
|
+
<li><a class="reference internal" href="#how-it-works">5.3.1. How it works</a><ul>
|
298
|
+
<li><a class="reference internal" href="#prefix-rk-search">5.3.1.1. Prefix RK search</a></li>
|
299
|
+
<li><a class="reference internal" href="#cooccurrence-search">5.3.1.2. Cooccurrence search</a></li>
|
300
|
+
<li><a class="reference internal" href="#prefix-search">5.3.1.3. Prefix search</a></li>
|
301
|
+
</ul>
|
302
|
+
</li>
|
303
|
+
<li><a class="reference internal" href="#how-to-use">5.3.2. How to use</a></li>
|
304
|
+
<li><a class="reference internal" href="#how-it-learns">5.3.3. How it learns</a></li>
|
305
|
+
</ul>
|
306
|
+
</li>
|
307
|
+
</ul>
|
308
|
+
|
309
|
+
<h4>Previous topic</h4>
|
310
|
+
<p class="topless"><a href="tutorial.html"
|
311
|
+
title="previous chapter">5.2. Tutorial</a></p>
|
312
|
+
<h4>Next topic</h4>
|
313
|
+
<p class="topless"><a href="correction.html"
|
314
|
+
title="next chapter">5.4. Correction</a></p>
|
315
|
+
<h3>This Page</h3>
|
316
|
+
<ul class="this-page-menu">
|
317
|
+
<li><a href="../_sources/suggest/completion.txt"
|
318
|
+
rel="nofollow">Show Source</a></li>
|
319
|
+
</ul>
|
320
|
+
<div id="searchbox" style="display: none">
|
321
|
+
<h3>Quick search</h3>
|
322
|
+
<form class="search" action="../search.html" method="get">
|
323
|
+
<input type="text" name="q" size="18" />
|
324
|
+
<input type="submit" value="Go" />
|
325
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
326
|
+
<input type="hidden" name="area" value="default" />
|
327
|
+
</form>
|
328
|
+
<p class="searchtip" style="font-size: 90%">
|
329
|
+
Enter search terms or a module, class or function name.
|
330
|
+
</p>
|
331
|
+
</div>
|
332
|
+
<script type="text/javascript">$('#searchbox').show(0);</script>
|
333
|
+
</div>
|
334
|
+
</div>
|
335
|
+
<div class="clearer"></div>
|
336
|
+
</div>
|
337
|
+
<div class="related">
|
338
|
+
<h3>Navigation</h3>
|
339
|
+
<ul>
|
340
|
+
<li class="right" style="margin-right: 10px">
|
341
|
+
<a href="../genindex.html" title="General Index"
|
342
|
+
>index</a></li>
|
343
|
+
<li class="right" >
|
344
|
+
<a href="correction.html" title="5.4. Correction"
|
345
|
+
>next</a> |</li>
|
346
|
+
<li class="right" >
|
347
|
+
<a href="tutorial.html" title="5.2. Tutorial"
|
348
|
+
>previous</a> |</li>
|
349
|
+
<li><a href="../index.html">groonga v1.2.5 documentation</a> »</li>
|
350
|
+
<li><a href="../suggest.html" >5. Suggest</a> »</li>
|
351
|
+
</ul>
|
352
|
+
</div>
|
353
|
+
<div class="footer">
|
354
|
+
© Copyright 2009-2011, Brazil, Inc.
|
355
|
+
</div>
|
356
|
+
</body>
|
357
|
+
</html>
|