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
data/test/test-table-select.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2009-
|
3
|
+
# Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -53,7 +53,7 @@ class TableSelectTest < Test::Unit::TestCase
|
|
53
53
|
:user => "darashi")
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
56
|
+
def test_sub_expression
|
57
57
|
result = @comments.select do |record|
|
58
58
|
record.match("Hello", "content") &
|
59
59
|
(record["created_at"] < Time.parse("2009-08-01"))
|
@@ -61,22 +61,22 @@ class TableSelectTest < Test::Unit::TestCase
|
|
61
61
|
assert_equal_select_result([@comment2], result)
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
64
|
+
def test_query
|
65
65
|
result = @comments.select("content:@Hello")
|
66
66
|
assert_equal_select_result([@comment1, @comment2], result)
|
67
67
|
end
|
68
68
|
|
69
|
-
def
|
69
|
+
def test_query_with_parser
|
70
70
|
result = @comments.select("content @ \"Hello\"", :syntax => :script)
|
71
71
|
assert_equal_select_result([@comment1, @comment2], result)
|
72
72
|
end
|
73
73
|
|
74
|
-
def
|
74
|
+
def test_query_with_default_column
|
75
75
|
result = @comments.select("Hello", {:default_column => 'content'})
|
76
76
|
assert_equal_select_result([@comment1, @comment2], result)
|
77
77
|
end
|
78
78
|
|
79
|
-
def
|
79
|
+
def test_expression
|
80
80
|
expression = Groonga::Expression.new
|
81
81
|
variable = expression.define_variable(:domain => @comments)
|
82
82
|
expression.append_object(variable)
|
@@ -87,76 +87,90 @@ class TableSelectTest < Test::Unit::TestCase
|
|
87
87
|
assert_equal_select_result([@comment1, @comment2], result)
|
88
88
|
end
|
89
89
|
|
90
|
-
def
|
90
|
+
def test_query_with_block
|
91
91
|
result = @comments.select("content:@Hello") do |record|
|
92
92
|
record["created_at"] < Time.parse("2009-08-01")
|
93
93
|
end
|
94
94
|
assert_equal_select_result([@comment2], result)
|
95
95
|
end
|
96
96
|
|
97
|
-
def
|
97
|
+
def test_query_with_block_match
|
98
98
|
result = @comments.select("content:@Hello") do |record|
|
99
99
|
record.match("World", "content")
|
100
100
|
end
|
101
101
|
assert_equal_select_result([@comment2], result)
|
102
102
|
end
|
103
103
|
|
104
|
-
def
|
104
|
+
def test_without_block
|
105
105
|
assert_equal_select_result([@comment1, @comment2,
|
106
106
|
@comment3, @japanese_comment],
|
107
107
|
@comments.select)
|
108
108
|
end
|
109
109
|
|
110
|
-
def
|
110
|
+
def test_query_japanese
|
111
111
|
result = @comments.select("content:@ボロTV")
|
112
112
|
assert_equal_select_result([@japanese_comment], result)
|
113
113
|
end
|
114
114
|
|
115
|
-
def
|
115
|
+
def test_but_query
|
116
116
|
result = @comments.select do |record|
|
117
117
|
record["content"].match "Hello -World"
|
118
118
|
end
|
119
119
|
assert_equal_select_result([@comment1], result)
|
120
120
|
end
|
121
121
|
|
122
|
-
def
|
122
|
+
def test_query_with_three_terms
|
123
123
|
result = @comments.select do |record|
|
124
124
|
record["content"].match "Say Hello World"
|
125
125
|
end
|
126
126
|
assert_equal_select_result([], result)
|
127
127
|
end
|
128
128
|
|
129
|
-
def
|
129
|
+
def test_query_with_brackets
|
130
130
|
result = @comments.select do |record|
|
131
131
|
record["content"].match "Say (Hello World)"
|
132
132
|
end
|
133
133
|
assert_equal_select_result([], result)
|
134
134
|
end
|
135
135
|
|
136
|
-
def
|
136
|
+
def test_equal_reference_column_by_key
|
137
137
|
result = @comments.select do |record|
|
138
138
|
record["user"] == "darashi"
|
139
139
|
end
|
140
140
|
assert_equal_select_result([@japanese_comment], result)
|
141
141
|
end
|
142
142
|
|
143
|
-
def
|
143
|
+
def test_not_equal_reference_column_by_key
|
144
144
|
result = @comments.select('user != "darashi"', :syntax => :script)
|
145
145
|
assert_equal_select_result([@comment1, @comment2, @comment3],
|
146
146
|
result)
|
147
147
|
end
|
148
148
|
|
149
|
-
def
|
149
|
+
def test_equal_reference_column_by_nonexistent_key
|
150
150
|
result = @comments.select do |record|
|
151
151
|
record["user"] == "nonexistent"
|
152
152
|
end
|
153
153
|
assert_equal_select_result([], result)
|
154
154
|
end
|
155
155
|
|
156
|
-
def
|
156
|
+
def test_query_key
|
157
157
|
result = @users.select do |record|
|
158
158
|
record["_key"] =~ "mori"
|
159
159
|
end
|
160
160
|
assert_equal_select_result([@users["morita"]], result)
|
161
161
|
end
|
162
|
+
|
163
|
+
def test_symbol
|
164
|
+
result = @comments.select do |record|
|
165
|
+
record[:content].match("Say Hello World")
|
166
|
+
end
|
167
|
+
assert_equal_select_result([], result)
|
168
|
+
end
|
169
|
+
|
170
|
+
def test_method
|
171
|
+
result = @comments.select do |record|
|
172
|
+
record.content.match("Say Hello World")
|
173
|
+
end
|
174
|
+
assert_equal_select_result([], result)
|
175
|
+
end
|
162
176
|
end
|
data/test/test-type.rb
CHANGED
@@ -23,12 +23,12 @@ class TypeTest < Test::Unit::TestCase
|
|
23
23
|
assert_equal("user_id", type.name)
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def test_new_with_space_name
|
27
27
|
exception = assert_raise(Groonga::InvalidArgument) do
|
28
|
-
Groonga::Type.new("user
|
28
|
+
Groonga::Type.new("user id", :type => :integer)
|
29
29
|
end
|
30
30
|
message =
|
31
|
-
"name can't start with '_' and
|
31
|
+
"name can't start with '_' and contains only 0-9, A-Z, a-z, #, - or _"
|
32
32
|
assert_match(/#{Regexp.escape(message)}/,
|
33
33
|
exception.message)
|
34
34
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -107,4 +107,11 @@ class VariableSizeColumnTest < Test::Unit::TestCase
|
|
107
107
|
@morita.prepend("nick_names", "moritapo")
|
108
108
|
assert_equal(["moritapo", "morita"], @morita["nick_names"])
|
109
109
|
end
|
110
|
+
|
111
|
+
def test_defrag
|
112
|
+
1000.times do |i|
|
113
|
+
@users.add(:name => "user #{i}" * 1000)
|
114
|
+
end
|
115
|
+
assert_equal(3, @name.defrag)
|
116
|
+
end
|
110
117
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
|
3
|
-
prefix=/home/kou/work/c/groonga.
|
3
|
+
prefix=/home/kou/work/c/groonga.clean/packages/windows/dist
|
4
4
|
exec_prefix=${prefix}
|
5
5
|
exec_prefix_set=no
|
6
6
|
|
@@ -107,7 +107,7 @@ while test $# -gt 0; do
|
|
107
107
|
;;
|
108
108
|
|
109
109
|
--libexecdir)
|
110
|
-
echo /home/kou/work/c/groonga.
|
110
|
+
echo /home/kou/work/c/groonga.clean/packages/windows/dist/libexec/mecab
|
111
111
|
;;
|
112
112
|
|
113
113
|
--sysconfdir)
|
data/vendor/local/bin/mecab.exe
CHANGED
Binary file
|
@@ -206,9 +206,21 @@ struct _grn_ctx {
|
|
206
206
|
|
207
207
|
#define GRN_CTX_USE_QL (0x03)
|
208
208
|
#define GRN_CTX_BATCH_MODE (0x04)
|
209
|
+
#define GRN_CTX_PER_DB (0x08)
|
209
210
|
|
210
211
|
GRN_API grn_rc grn_ctx_init(grn_ctx *ctx, int flags);
|
211
212
|
|
213
|
+
/**
|
214
|
+
* grn_ctx_fin:
|
215
|
+
* @ctx: 解放するctx構造体へのポインタを指定します。
|
216
|
+
*
|
217
|
+
* ctxの管理するメモリを解放し、使用を終了します。
|
218
|
+
*
|
219
|
+
* If @ctx is initialized by grn_ctx_open() not
|
220
|
+
* grn_ctx_init(). You need also to call grn_ctx_close().
|
221
|
+
**/
|
222
|
+
GRN_API grn_rc grn_ctx_fin(grn_ctx *ctx);
|
223
|
+
|
212
224
|
/**
|
213
225
|
* grn_ctx_open:
|
214
226
|
* @flags: 初期化するctxのオプションを指定します。
|
@@ -225,12 +237,13 @@ GRN_API grn_rc grn_ctx_init(grn_ctx *ctx, int flags);
|
|
225
237
|
GRN_API grn_ctx *grn_ctx_open(int flags);
|
226
238
|
|
227
239
|
/**
|
228
|
-
*
|
229
|
-
* @ctx:
|
240
|
+
* grn_ctx_close:
|
241
|
+
* @ctx: no longer needed grn_ctx.
|
230
242
|
*
|
231
|
-
*
|
243
|
+
* It calls grn_ctx_fin() and frees allocated memory for
|
244
|
+
* @ctx by grn_ctx_open().
|
232
245
|
**/
|
233
|
-
GRN_API grn_rc
|
246
|
+
GRN_API grn_rc grn_ctx_close(grn_ctx *ctx);
|
234
247
|
|
235
248
|
/**
|
236
249
|
* grn_ctx_set_finalizer:
|
@@ -514,6 +527,8 @@ GRN_API void grn_db_touch(grn_ctx *ctx, grn_obj *db);
|
|
514
527
|
*
|
515
528
|
* ctxが操作対象とするdbを指定します。NULLを指定した場合は、
|
516
529
|
* dbを操作しない状態(init直後の状態)になります。
|
530
|
+
*
|
531
|
+
* Don't use it with grn_ctx that has GRN_CTX_PER_DB flag.
|
517
532
|
**/
|
518
533
|
GRN_API grn_rc grn_ctx_use(grn_ctx *ctx, grn_obj *db);
|
519
534
|
|
@@ -685,6 +700,7 @@ GRN_API grn_obj *grn_table_create(grn_ctx *ctx,
|
|
685
700
|
* keyに対応するrecordがすでにtableに存在するならば、そのrecordのIDを返す。
|
686
701
|
* GRN_OBJ_TABLE_NO_KEYが指定されたtableでは、key, key_size は無視される。
|
687
702
|
**/
|
703
|
+
/* TODO: int *added -> grn_bool *added */
|
688
704
|
GRN_API grn_id grn_table_add(grn_ctx *ctx, grn_obj *table,
|
689
705
|
const void *key, unsigned key_size, int *added);
|
690
706
|
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# suggest.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-
|
2
|
+
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-3
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library='suggest.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' /home/kou/work/c/groonga.
|
20
|
+
dependency_libs=' /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libgroonga.la -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/kou/work/c/groonga.
|
41
|
+
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib/groonga/plugins/suggest'
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# mecab.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-
|
2
|
+
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-3
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library='mecab.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -L/home/kou/work/c/groonga.
|
20
|
+
dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist/lib /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libmecab.la /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libgroonga.la -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/kou/work/c/groonga.
|
41
|
+
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib/groonga/plugins/tokenizers'
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# libgroonga.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-
|
2
|
+
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-3
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/kou/work/c/groonga.
|
41
|
+
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib'
|
data/vendor/local/lib/libmecab.a
CHANGED
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
prefix=/home/kou/work/c/groonga.
|
1
|
+
prefix=/home/kou/work/c/groonga.clean/packages/windows/dist
|
2
2
|
exec_prefix=${prefix}
|
3
3
|
bindir=${exec_prefix}/bin
|
4
4
|
libdir=${exec_prefix}/lib
|
@@ -8,6 +8,6 @@ groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset.exe
|
|
8
8
|
|
9
9
|
Name: Groonga
|
10
10
|
Description: An Embeddable Fulltext Search Engine
|
11
|
-
Version: 1.2.
|
11
|
+
Version: 1.2.5
|
12
12
|
Libs: -L${libdir} -lgroonga
|
13
13
|
Cflags: -I${includedir}/groonga
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# Sphinx build info version 1
|
2
2
|
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
3
|
-
config:
|
3
|
+
config: b6b362d161e603cf11c7590fceaa7a26
|
4
4
|
tags: fbb0d17656682115ca4d033fb2f83ba1
|