rroonga 1.2.7-x86-mingw32 → 1.3.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Rakefile +1 -0
- data/bin/grntest-log-analyze +123 -0
- data/bin/groonga-query-log-extract +117 -0
- data/ext/groonga/rb-grn-accessor.c +7 -5
- data/ext/groonga/rb-grn-array-cursor.c +1 -1
- data/ext/groonga/rb-grn-array.c +34 -44
- data/ext/groonga/rb-grn-column.c +74 -38
- data/ext/groonga/rb-grn-context.c +41 -16
- data/ext/groonga/rb-grn-database.c +50 -43
- data/ext/groonga/rb-grn-double-array-trie-cursor.c +40 -0
- data/ext/groonga/rb-grn-double-array-trie.c +530 -0
- data/ext/groonga/rb-grn-encoding-support.c +1 -1
- data/ext/groonga/rb-grn-encoding.c +1 -1
- data/ext/groonga/rb-grn-exception.c +1 -1
- data/ext/groonga/rb-grn-expression-builder.c +1 -1
- data/ext/groonga/rb-grn-expression.c +63 -51
- data/ext/groonga/rb-grn-fix-size-column.c +7 -7
- data/ext/groonga/rb-grn-hash-cursor.c +1 -1
- data/ext/groonga/rb-grn-hash.c +42 -39
- data/ext/groonga/rb-grn-index-column.c +35 -31
- data/ext/groonga/rb-grn-index-cursor.c +1 -1
- data/ext/groonga/rb-grn-logger.c +23 -18
- data/ext/groonga/rb-grn-object.c +69 -40
- data/ext/groonga/rb-grn-operator.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie.c +122 -90
- data/ext/groonga/rb-grn-plugin.c +8 -7
- data/ext/groonga/rb-grn-posting.c +1 -1
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-query.c +12 -12
- data/ext/groonga/rb-grn-record.c +1 -1
- data/ext/groonga/rb-grn-snippet.c +26 -19
- data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
- data/ext/groonga/rb-grn-table-cursor.c +4 -3
- data/ext/groonga/rb-grn-table-key-support.c +23 -23
- data/ext/groonga/rb-grn-table.c +280 -149
- data/ext/groonga/rb-grn-type.c +11 -7
- data/ext/groonga/rb-grn-utils.c +81 -9
- data/ext/groonga/rb-grn-variable-size-column.c +1 -1
- data/ext/groonga/rb-grn-variable.c +2 -2
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view-cursor.c +1 -1
- data/ext/groonga/rb-grn-view-record.c +1 -1
- data/ext/groonga/rb-grn-view.c +43 -34
- data/ext/groonga/rb-grn.h +10 -2
- data/ext/groonga/rb-groonga.c +1 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/context.rb +16 -41
- data/lib/groonga/dumper.rb +41 -10
- data/lib/groonga/expression-builder-19.rb +40 -0
- data/lib/groonga/expression-builder.rb +56 -26
- data/lib/groonga/grntest-log.rb +206 -0
- data/lib/groonga/pagination.rb +21 -19
- data/lib/groonga/patricia-trie.rb +7 -10
- data/lib/groonga/posting.rb +1 -1
- data/lib/groonga/query-log.rb +348 -0
- data/lib/groonga/record.rb +47 -143
- data/lib/groonga/schema.rb +679 -406
- data/lib/groonga/view-record.rb +4 -10
- data/lib/groonga.rb +4 -2
- data/rroonga-build.rb +1 -1
- data/test/groonga-test-utils.rb +8 -0
- data/test/test-array.rb +25 -4
- data/test/test-column.rb +8 -8
- data/test/test-database.rb +2 -3
- data/test/test-double-array-trie.rb +164 -0
- data/test/test-expression-builder.rb +2 -2
- data/test/test-expression.rb +10 -9
- data/test/test-gqtp.rb +2 -2
- data/test/test-hash.rb +32 -8
- data/test/test-patricia-trie.rb +34 -10
- data/test/test-query-log.rb +258 -0
- data/test/test-record.rb +6 -5
- data/test/test-schema-create-table.rb +8 -0
- data/test/test-schema-dumper.rb +6 -0
- data/test/test-schema.rb +491 -234
- data/test/test-table-select.rb +9 -0
- data/test/test-table.rb +17 -24
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga-query-log-analyzer +22 -17
- 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 +251 -5
- 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 +2 -2
- 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 +2 -2
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +1 -1
- 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 +3 -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/_images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/geolocation_search.txt +52 -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 +31 -40
- data/vendor/local/share/doc/groonga/en/html/_sources/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +118 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial03.txt → en/html/_sources/tutorial/data.txt} +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial05.txt → drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial06.txt → en/html/_sources/tutorial/index.txt} +8 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial07.txt → en/html/_sources/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial10.txt → micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial08.txt → patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial04.txt → en/html/_sources/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +11 -2
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +9 -0
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +46 -46
- 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 +44 -39
- 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 +47 -47
- 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 +41 -41
- 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 +13 -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 +55 -55
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/executables.html +22 -22
- 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 +17 -17
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +176 -0
- data/vendor/local/share/doc/groonga/en/html/index.html +149 -138
- data/vendor/local/share/doc/groonga/en/html/install.html +57 -65
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/log.html +26 -26
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +281 -0
- data/vendor/local/share/doc/groonga/en/html/news.html +219 -65
- 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 -69
- 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 +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +10 -10
- 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/{tutorial03.html → data.html} +32 -32
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial06.html → index.html} +44 -44
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +438 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +236 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +197 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial04.html → search.html} +41 -35
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +60 -55
- 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/_images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/geolocation_search.txt +52 -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 +31 -40
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +118 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial03.txt → ja/html/_sources/tutorial/data.txt} +5 -5
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial05.txt → ja/html/_sources/tutorial/drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial06.txt → index.txt} +8 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial07.txt → ja/html/_sources/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial10.txt → ja/html/_sources/tutorial/micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial08.txt → ja/html/_sources/tutorial/patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial04.txt → ja/html/_sources/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +11 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +9 -0
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +32 -32
- 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 +44 -39
- 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 +47 -47
- 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 +41 -41
- 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 +13 -8
- 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 +55 -55
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -22
- 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 +17 -17
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +165 -0
- data/vendor/local/share/doc/groonga/ja/html/index.html +144 -133
- data/vendor/local/share/doc/groonga/ja/html/install.html +52 -65
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/log.html +26 -26
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +282 -0
- data/vendor/local/share/doc/groonga/ja/html/news.html +203 -63
- 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 -69
- 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 +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +10 -10
- 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/{tutorial03.html → data.html} +31 -31
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial06.html → index.html} +44 -44
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial01.html → introduction.html} +140 -129
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial02.html → network.html} +56 -58
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +198 -0
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial04.html → search.html} +41 -35
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +59 -54
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/source/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/source/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-completion.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-correction.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-completion.log +13 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-correction.log +15 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-suggestion.log +9 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-mixed.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-suggestion.log +5 -0
- data/vendor/local/share/doc/groonga/source/conf.py +1 -1
- data/vendor/local/share/doc/groonga/source/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-1.log → tutorial/data-1.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-2.log → tutorial/data-2.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-3.log → tutorial/data-3.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-1.log → tutorial/drilldown-1.log} +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-2.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-3.log → tutorial/drilldown-3.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-4.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-5.log → tutorial/drilldown-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-6.log → tutorial/drilldown-6.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-1.log +25 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-2.log → tutorial/index-2.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-3.log +21 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-4.log → tutorial/index-4.log} +3 -3
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-5.log → tutorial/index-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-6.log → tutorial/index-6.log} +5 -5
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-7.log → tutorial/index-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +18 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-11.log → tutorial/introduction-11.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-12.log → tutorial/introduction-12.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +9 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-17.log → tutorial/introduction-17.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-5.log → tutorial/introduction-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-6.log → tutorial/introduction-6.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-7.log → tutorial/introduction-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-8.log → tutorial/introduction-8.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-1.log → tutorial/match_columns-1.log} +8 -8
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-2.log → tutorial/match_columns-2.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-3.log → tutorial/match_columns-3.log} +7 -7
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-4.log → tutorial/match_columns-4.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-1.log → tutorial/micro_blog-1.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-10.log → tutorial/micro_blog-10.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-2.log → tutorial/micro_blog-2.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-3.log → tutorial/micro_blog-3.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-4.log → tutorial/micro_blog-4.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-5.log → tutorial/micro_blog-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-6.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-7.log → tutorial/micro_blog-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-8.log → tutorial/micro_blog-8.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-9.log → tutorial/micro_blog-9.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial02-2.log → tutorial/network-2.log} +1 -1
- data/vendor/local/share/doc/groonga/source/example/{tutorial02-3.log → tutorial/network-3.log} +3 -3
- data/vendor/local/share/doc/groonga/source/example/{tutorial08-1.log → tutorial/patricia_trie-1.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial08-2.log → tutorial/patricia_trie-2.log} +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-1.log +27 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-2.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-3.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-1.log → tutorial/search-1.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-2.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-3.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-4.log → tutorial/search-4.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-5.log → tutorial/search-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-6.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-7.log → tutorial/search-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/source/geolocation_search.txt +52 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.svg +188 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.svg +501 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.svg +275 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.svg +899 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.svg +249 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.svg +275 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.svg +743 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.svg +261 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.svg +228 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.svg +241 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.svg +602 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.svg +917 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.svg +561 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.svg +389 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.svg +469 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.svg +514 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.svg +595 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.svg +424 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.svg +549 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.svg +241 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.svg +203 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.svg +264 -0
- data/vendor/local/share/doc/groonga/source/images/geo-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-distance.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-distance.svg +317 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.svg +306 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.svg +304 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-sort.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-sort.svg +383 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points.svg +296 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.svg +287 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.svg +174 -0
- data/vendor/local/share/doc/groonga/source/index.txt +1 -0
- data/vendor/local/share/doc/groonga/source/install.txt +31 -40
- data/vendor/local/share/doc/groonga/source/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/source/news.txt +118 -0
- data/vendor/local/share/doc/groonga/source/tutorial/{tutorial03.txt → data.txt} +5 -5
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial05.txt → source/tutorial/drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial06.txt → source/tutorial/index.txt} +8 -8
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/source/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial07.txt → source/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial10.txt → source/tutorial/micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial08.txt → source/tutorial/patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial04.txt → source/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/source/tutorial.txt +11 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +449 -772
- data/vendor/local/share/man/man1/groonga.1 +591 -875
- metadata +232 -124
- data/vendor/local/etc/groonga/init.d/redhat/groonga +0 -160
- data/vendor/local/etc/groonga/init.d/redhat/sysconfig/groonga +0 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +0 -409
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +0 -235
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/doc/groonga/source/example/tutorial01-1.log +0 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial01-10.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-13.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-14.log +0 -9
- data/vendor/local/share/doc/groonga/source/example/tutorial01-15.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-16.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-2.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-3.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-4.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial01-9.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial02-1.log +0 -8
- data/vendor/local/share/doc/groonga/source/example/tutorial04-2.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial04-3.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial04-6.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial05-2.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial05-4.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial06-1.log +0 -25
- data/vendor/local/share/doc/groonga/source/example/tutorial06-3.log +0 -21
- data/vendor/local/share/doc/groonga/source/example/tutorial10-6.log +0 -5
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -47
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -57
- data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -162
- data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -51
- data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -110
- data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -133
- data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -84
data/ext/groonga/rb-grn-type.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* -*- c-file-style: "ruby" -*- */
|
1
|
+
/* -*- coding: utf-8; c-file-style: "ruby" -*- */
|
2
2
|
/*
|
3
3
|
Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
|
@@ -52,24 +52,28 @@ rb_grn_type_to_ruby_object (grn_ctx *context, grn_obj *type,
|
|
52
52
|
* call-seq:
|
53
53
|
* Groonga::Type.new(name, options={})
|
54
54
|
*
|
55
|
-
* 名前が_name_の型を作成する。_options_に指定可能な値は以下の通
|
55
|
+
* 名前が _name_ の型を作成する。 _options_ に指定可能な値は以下の通
|
56
56
|
* り。
|
57
|
+
* @param options [::Hash] The name and value
|
58
|
+
* pairs. Omitted names are initialized as the default value
|
59
|
+
* @option options :type (variable) The type
|
57
60
|
*
|
58
|
-
* [+:type+]
|
59
61
|
* :integer(符号付き整数)、:int(:integerの省略
|
60
62
|
* 形)、:unsigned_integer(符号なし整
|
61
63
|
* 数)、:uint(:unsigned_integerの省略形)、:float(浮動小
|
62
64
|
* 数点数)、:variable(可変長文字列)のいずれかを指定する。
|
63
65
|
* 省略した場合は:variableを指定したものと扱う。
|
64
66
|
*
|
65
|
-
* :variable
|
67
|
+
* :variableを指定した場合は必ず +:size+ を指定しなければいけない。
|
68
|
+
*
|
69
|
+
* @option options :context The context
|
66
70
|
*
|
67
|
-
* [+:context+]
|
68
71
|
* 型の作成時に利用するGroonga::Contextを指定する。省略すると
|
69
72
|
* Groonga::Context.defaultを用いる。
|
70
73
|
*
|
71
|
-
*
|
72
|
-
*
|
74
|
+
* @option options :size The size
|
75
|
+
*
|
76
|
+
* +:option+ が:variableの場合は最大長、それ以外の場合は長さを
|
73
77
|
* 指定する(単位:byte)。
|
74
78
|
*/
|
75
79
|
static VALUE
|
data/ext/groonga/rb-grn-utils.c
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
/* -*- c-file-style: "ruby" -*- */
|
1
|
+
/* -*- coding: utf-8; c-file-style: "ruby" -*- */
|
2
2
|
/* vim: set sts=4 sw=4 ts=8 noet: */
|
3
3
|
/*
|
4
|
-
Copyright (C) 2009-
|
4
|
+
Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
|
5
5
|
|
6
6
|
This library is free software; you can redistribute it and/or
|
7
7
|
modify it under the terms of the GNU Lesser General Public
|
@@ -30,20 +30,86 @@ rb_grn_inspect (VALUE object)
|
|
30
30
|
return StringValueCStr(inspected);
|
31
31
|
}
|
32
32
|
|
33
|
+
const char *
|
34
|
+
rb_grn_inspect_type (unsigned char type)
|
35
|
+
{
|
36
|
+
switch (type) {
|
37
|
+
case GRN_VOID:
|
38
|
+
return "void";
|
39
|
+
case GRN_BULK:
|
40
|
+
return "bulk";
|
41
|
+
case GRN_PTR:
|
42
|
+
return "ptr";
|
43
|
+
case GRN_UVECTOR:
|
44
|
+
return "uvector";
|
45
|
+
case GRN_PVECTOR:
|
46
|
+
return "pvector";
|
47
|
+
case GRN_MSG:
|
48
|
+
return "msg";
|
49
|
+
case GRN_QUERY:
|
50
|
+
return "query";
|
51
|
+
case GRN_ACCESSOR:
|
52
|
+
return "accessor";
|
53
|
+
case GRN_SNIP:
|
54
|
+
return "snip";
|
55
|
+
case GRN_PATSNIP:
|
56
|
+
return "patsnip";
|
57
|
+
case GRN_CURSOR_TABLE_HASH_KEY:
|
58
|
+
return "cursor-table-hash-key";
|
59
|
+
case GRN_CURSOR_TABLE_PAT_KEY:
|
60
|
+
return "cursor-table-pat-key";
|
61
|
+
case GRN_CURSOR_TABLE_DAT_KEY:
|
62
|
+
return "cursor-table-dat-key";
|
63
|
+
case GRN_CURSOR_TABLE_NO_KEY:
|
64
|
+
return "cursor-table-no-key";
|
65
|
+
case GRN_CURSOR_TABLE_VIEW:
|
66
|
+
return "cursor-table-view";
|
67
|
+
case GRN_CURSOR_COLUMN_INDEX:
|
68
|
+
return "cursor-column-index";
|
69
|
+
case GRN_TYPE:
|
70
|
+
return "type";
|
71
|
+
case GRN_PROC:
|
72
|
+
return "proc";
|
73
|
+
case GRN_EXPR:
|
74
|
+
return "expr";
|
75
|
+
case GRN_TABLE_HASH_KEY:
|
76
|
+
return "table-hash-key";
|
77
|
+
case GRN_TABLE_PAT_KEY:
|
78
|
+
return "table-pat-key";
|
79
|
+
case GRN_TABLE_DAT_KEY:
|
80
|
+
return "table-dat-key";
|
81
|
+
case GRN_TABLE_NO_KEY:
|
82
|
+
return "table-no-key";
|
83
|
+
case GRN_TABLE_VIEW:
|
84
|
+
return "table-view";
|
85
|
+
case GRN_DB:
|
86
|
+
return "db";
|
87
|
+
case GRN_COLUMN_FIX_SIZE:
|
88
|
+
return "column-fix-size";
|
89
|
+
case GRN_COLUMN_VAR_SIZE:
|
90
|
+
return "column-var-size";
|
91
|
+
case GRN_COLUMN_INDEX:
|
92
|
+
return "column-index";
|
93
|
+
default:
|
94
|
+
return "unknown";
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
33
98
|
void
|
34
99
|
rb_grn_scan_options (VALUE options, ...)
|
35
100
|
{
|
101
|
+
VALUE original_options = options;
|
36
102
|
VALUE available_keys;
|
37
103
|
const char *key;
|
38
104
|
VALUE *value;
|
39
105
|
va_list args;
|
40
106
|
|
41
|
-
|
107
|
+
options = rb_check_convert_type(options, T_HASH, "Hash", "to_hash");
|
108
|
+
if (NIL_P(options)) {
|
42
109
|
options = rb_hash_new();
|
43
|
-
else
|
110
|
+
} else if (options == original_options) {
|
44
111
|
options = rb_funcall(options, rb_intern("dup"), 0);
|
45
|
-
|
46
|
-
Check_Type(options, T_HASH);
|
112
|
+
}
|
47
113
|
|
48
114
|
available_keys = rb_ary_new();
|
49
115
|
va_start(args, options);
|
@@ -156,6 +222,7 @@ rb_grn_bulk_to_ruby_object_by_range_type (grn_ctx *context, grn_obj *bulk,
|
|
156
222
|
switch (range->header.type) {
|
157
223
|
case GRN_TABLE_HASH_KEY:
|
158
224
|
case GRN_TABLE_PAT_KEY:
|
225
|
+
case GRN_TABLE_DAT_KEY:
|
159
226
|
case GRN_TABLE_NO_KEY:
|
160
227
|
{
|
161
228
|
grn_id id;
|
@@ -622,8 +689,10 @@ rb_grn_value_to_ruby_object (grn_ctx *context,
|
|
622
689
|
break;
|
623
690
|
default:
|
624
691
|
rb_raise(rb_eGrnError,
|
625
|
-
"unsupported value type:
|
626
|
-
value->header.type,
|
692
|
+
"unsupported value type: %s(%#x): %s",
|
693
|
+
rb_grn_inspect_type(value->header.type),
|
694
|
+
value->header.type,
|
695
|
+
rb_grn_inspect(related_object));
|
627
696
|
break;
|
628
697
|
}
|
629
698
|
|
@@ -697,6 +766,7 @@ rb_grn_key_from_ruby_object (VALUE rb_key, grn_ctx *context,
|
|
697
766
|
break;
|
698
767
|
case GRN_TABLE_HASH_KEY:
|
699
768
|
case GRN_TABLE_PAT_KEY:
|
769
|
+
case GRN_TABLE_DAT_KEY:
|
700
770
|
case GRN_TABLE_NO_KEY:
|
701
771
|
id = RVAL2GRNID(rb_key, context, domain, related_object);
|
702
772
|
break;
|
@@ -768,6 +838,7 @@ rb_grn_obj_to_ruby_object (VALUE klass, grn_ctx *context,
|
|
768
838
|
/* case GRN_EXPR: */
|
769
839
|
/* case GRN_TABLE_HASH_KEY: */
|
770
840
|
/* case GRN_TABLE_PAT_KEY: */
|
841
|
+
/* case GRN_TABLE_DAT_KEY: */
|
771
842
|
/* case GRN_TABLE_NO_KEY: */
|
772
843
|
/* case GRN_DB: */
|
773
844
|
/* case GRN_COLUMN_FIX_SIZE: */
|
@@ -775,7 +846,8 @@ rb_grn_obj_to_ruby_object (VALUE klass, grn_ctx *context,
|
|
775
846
|
/* case GRN_COLUMN_INDEX: */
|
776
847
|
default:
|
777
848
|
rb_raise(rb_eTypeError,
|
778
|
-
"unsupported groonga object:
|
849
|
+
"unsupported groonga object: %s(%#x): <%s>",
|
850
|
+
rb_grn_inspect_type(obj->header.type),
|
779
851
|
obj->header.type,
|
780
852
|
rb_grn_inspect(related_object));
|
781
853
|
break;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* -*- c-file-style: "ruby" -*- */
|
1
|
+
/* -*- coding: utf-8; c-file-style: "ruby" -*- */
|
2
2
|
/*
|
3
3
|
Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
|
@@ -81,7 +81,7 @@ rb_grn_variable_get_value (VALUE self)
|
|
81
81
|
* call-seq:
|
82
82
|
* variable.value=(value)
|
83
83
|
*
|
84
|
-
* 変数の値を_value_に設定する。
|
84
|
+
* 変数の値を _value_ に設定する。
|
85
85
|
*/
|
86
86
|
static VALUE
|
87
87
|
rb_grn_variable_set_value (VALUE self, VALUE value)
|
data/ext/groonga/rb-grn-view.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* -*- c-file-style: "ruby" -*- */
|
1
|
+
/* -*- coding: utf-8; c-file-style: "ruby" -*- */
|
2
2
|
/*
|
3
3
|
Copyright (C) 2010-2011 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
|
@@ -47,45 +47,51 @@ VALUE rb_cGrnView;
|
|
47
47
|
* ビューにテーブルを追加するときはGroonga::View#add_tableを
|
48
48
|
* 使う。
|
49
49
|
*
|
50
|
-
* _options_に指定可能な値は以下の通り。
|
50
|
+
* _options_ に指定可能な値は以下の通り。
|
51
|
+
* @param options [::Hash] The name and value
|
52
|
+
* pairs. Omitted names are initialized as the default value
|
53
|
+
* @option options :context (Groonga::Context.default)
|
51
54
|
*
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
55
|
+
* ビューが利用するGroonga::Context。
|
56
|
+
*
|
57
|
+
* @option options :name The view name
|
55
58
|
*
|
56
|
-
* [+:name+]
|
57
59
|
* ビューの名前。名前をつけると、Groonga::Context#[]に名
|
58
60
|
* 前を指定してビューを取得することができる。省略すると
|
59
61
|
* 無名ビューになり、ビューIDでのみ取得できる。
|
60
62
|
*
|
61
|
-
*
|
63
|
+
* @option options :path The path
|
64
|
+
*
|
62
65
|
* ビューを保存するパス。パスを指定すると永続ビューとな
|
63
66
|
* り、プロセス終了後もレコードは保持される。次回起動時に
|
64
67
|
* Groonga::View.openで保存されたビューを利用することが
|
65
68
|
* できる。省略すると一時ビューになり、プロセスが終了する
|
66
69
|
* とビューは破棄される。
|
67
70
|
*
|
68
|
-
*
|
69
|
-
*
|
70
|
-
*
|
71
|
+
* @option options :persistent The persistent
|
72
|
+
*
|
73
|
+
* +true+ を指定すると永続ビューとなる。 +path+ を省略した
|
74
|
+
* 場合は自動的にパスが付加される。 +:context+ で指定した
|
71
75
|
* Groonga::Contextに結びついているデータベースが一時デー
|
72
76
|
* タベースの場合は例外が発生する。
|
73
77
|
*
|
74
|
-
*
|
75
|
-
*
|
76
|
-
*
|
77
|
-
* Groonga::View.create
|
78
|
+
* @example
|
79
|
+
* 無名一時ビューを生成する。
|
80
|
+
* Groonga::View.create
|
78
81
|
*
|
79
|
-
*
|
80
|
-
*
|
82
|
+
* @example
|
83
|
+
* 無名永続ビューを生成する。
|
84
|
+
* Groonga::View.create(:path => "/tmp/view.grn")
|
81
85
|
*
|
82
|
-
*
|
83
|
-
*
|
84
|
-
*
|
85
|
-
*
|
86
|
+
* @example
|
87
|
+
* 名前付き永続ビューを生成する。ただし、ファイル名は気に
|
88
|
+
* しない。
|
89
|
+
* Groonga::View.create(:name => "Entries",
|
90
|
+
* :persistent => true)
|
86
91
|
*
|
87
|
-
*
|
88
|
-
*
|
92
|
+
* @example
|
93
|
+
* +Users+ テーブルと +Dogs+ テーブルを横断検索するための
|
94
|
+
* るビューを生成する。
|
89
95
|
* entries = Groonga::View.create(:name => "Entries")
|
90
96
|
* entries.add_table("Users")
|
91
97
|
* entries.add_table("Dogs")
|
@@ -141,7 +147,7 @@ rb_grn_view_s_create (int argc, VALUE *argv, VALUE klass)
|
|
141
147
|
* call-seq:
|
142
148
|
* view.add_table(table)
|
143
149
|
*
|
144
|
-
* _table_をビューからアクセスできるようにする。
|
150
|
+
* _table_ をビューからアクセスできるようにする。
|
145
151
|
*/
|
146
152
|
static VALUE
|
147
153
|
rb_grn_view_add_table (VALUE self, VALUE rb_table)
|
@@ -218,7 +224,7 @@ rb_grn_view_each (VALUE self)
|
|
218
224
|
* call-seq:
|
219
225
|
* view.column_value(id, name) -> 値
|
220
226
|
*
|
221
|
-
* _view_の_id_に対応するカラム_name_の値を返す。
|
227
|
+
* _view_ の _id_ に対応するカラム _name_ の値を返す。
|
222
228
|
*/
|
223
229
|
static VALUE
|
224
230
|
rb_grn_view_get_column_value (VALUE self, VALUE rb_id, VALUE rb_name)
|
@@ -256,25 +262,28 @@ rb_grn_view_get_column_value (VALUE self, VALUE rb_id, VALUE rb_name)
|
|
256
262
|
* call-seq:
|
257
263
|
* view.sort(keys, options={}) -> Groonga::ViewRecordの配列
|
258
264
|
*
|
259
|
-
* テーブルに登録されているレコードを_keys_で指定されたルー
|
265
|
+
* テーブルに登録されているレコードを _keys_ で指定されたルー
|
260
266
|
* ルに従ってソートしたレコードの配列を返す。
|
261
|
-
*
|
262
|
-
* [
|
267
|
+
* <pre>
|
268
|
+
* ==[
|
263
269
|
* {:key => "カラム名", :order => :asc, :ascending,
|
264
270
|
* :desc, :descendingのいずれか},
|
265
271
|
* {:key => "カラム名", :order => :asc, :ascending,
|
266
272
|
* :desc, :descendingのいずれか},
|
267
273
|
* ...,
|
268
|
-
* ]
|
269
|
-
*
|
270
|
-
* _options_に指定可能な値は以下の通り。
|
274
|
+
* ]==
|
275
|
+
* </pre>
|
276
|
+
* _options_ に指定可能な値は以下の通り。
|
277
|
+
* @param options [::Hash] The name and value
|
278
|
+
* pairs. Omitted names are initialized as the default value
|
279
|
+
* @option options :offset The offset
|
271
280
|
*
|
272
|
-
*
|
273
|
-
* ソートされたレコードのうち、(0ベースで)_:offset_番目
|
281
|
+
* ソートされたレコードのうち、(0ベースで) _:offset_ 番目
|
274
282
|
* からレコードを取り出す。
|
275
283
|
*
|
276
|
-
*
|
277
|
-
*
|
284
|
+
* @option options :limit The limit
|
285
|
+
*
|
286
|
+
* ソートされたレコードのうち、 _:limit_ 件のみを取り出す。
|
278
287
|
* 省略された場合または-1が指定された場合は、全件が指定され
|
279
288
|
* たものとみなす。
|
280
289
|
*/
|
data/ext/groonga/rb-grn.h
CHANGED
@@ -24,6 +24,9 @@
|
|
24
24
|
#ifdef HAVE_RUBY_ENCODING_H
|
25
25
|
# include <ruby/encoding.h>
|
26
26
|
#endif
|
27
|
+
#ifdef HAVE_RUBY_INTERN_H
|
28
|
+
# include <ruby/intern.h>
|
29
|
+
#endif
|
27
30
|
|
28
31
|
#include <groonga.h>
|
29
32
|
|
@@ -68,8 +71,8 @@ RB_GRN_BEGIN_DECLS
|
|
68
71
|
#endif
|
69
72
|
|
70
73
|
#define RB_GRN_MAJOR_VERSION 1
|
71
|
-
#define RB_GRN_MINOR_VERSION
|
72
|
-
#define RB_GRN_MICRO_VERSION
|
74
|
+
#define RB_GRN_MINOR_VERSION 3
|
75
|
+
#define RB_GRN_MICRO_VERSION 0
|
73
76
|
|
74
77
|
#define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
|
75
78
|
|
@@ -203,12 +206,14 @@ RB_GRN_VAR VALUE rb_cGrnTable;
|
|
203
206
|
RB_GRN_VAR VALUE rb_mGrnTableKeySupport;
|
204
207
|
RB_GRN_VAR VALUE rb_cGrnHash;
|
205
208
|
RB_GRN_VAR VALUE rb_cGrnPatriciaTrie;
|
209
|
+
RB_GRN_VAR VALUE rb_cGrnDoubleArrayTrie;
|
206
210
|
RB_GRN_VAR VALUE rb_cGrnArray;
|
207
211
|
RB_GRN_VAR VALUE rb_cGrnView;
|
208
212
|
RB_GRN_VAR VALUE rb_cGrnTableCursor;
|
209
213
|
RB_GRN_VAR VALUE rb_mGrnTableCursorKeySupport;
|
210
214
|
RB_GRN_VAR VALUE rb_cGrnHashCursor;
|
211
215
|
RB_GRN_VAR VALUE rb_cGrnPatriciaTrieCursor;
|
216
|
+
RB_GRN_VAR VALUE rb_cGrnDoubleArrayTrieCursor;
|
212
217
|
RB_GRN_VAR VALUE rb_cGrnViewCursor;
|
213
218
|
RB_GRN_VAR VALUE rb_cGrnArrayCursor;
|
214
219
|
RB_GRN_VAR VALUE rb_cGrnType;
|
@@ -244,12 +249,14 @@ void rb_grn_init_table_key_support (VALUE mGrn);
|
|
244
249
|
void rb_grn_init_array (VALUE mGrn);
|
245
250
|
void rb_grn_init_hash (VALUE mGrn);
|
246
251
|
void rb_grn_init_patricia_trie (VALUE mGrn);
|
252
|
+
void rb_grn_init_double_array_trie (VALUE mGrn);
|
247
253
|
void rb_grn_init_view (VALUE mGrn);
|
248
254
|
void rb_grn_init_table_cursor (VALUE mGrn);
|
249
255
|
void rb_grn_init_table_cursor_key_support (VALUE mGrn);
|
250
256
|
void rb_grn_init_array_cursor (VALUE mGrn);
|
251
257
|
void rb_grn_init_hash_cursor (VALUE mGrn);
|
252
258
|
void rb_grn_init_patricia_trie_cursor (VALUE mGrn);
|
259
|
+
void rb_grn_init_double_array_trie_cursor (VALUE mGrn);
|
253
260
|
void rb_grn_init_view_cursor (VALUE mGrn);
|
254
261
|
void rb_grn_init_type (VALUE mGrn);
|
255
262
|
void rb_grn_init_procedure (VALUE mGrn);
|
@@ -290,6 +297,7 @@ grn_obj *rb_grn_context_get_backward_compatibility
|
|
290
297
|
unsigned int name_size);
|
291
298
|
|
292
299
|
const char *rb_grn_inspect (VALUE object);
|
300
|
+
const char *rb_grn_inspect_type (unsigned char type);
|
293
301
|
void rb_grn_scan_options (VALUE options, ...)
|
294
302
|
RB_GRN_GNUC_NULL_TERMINATED;
|
295
303
|
grn_bool rb_grn_equal_option (VALUE option,
|
data/ext/groonga/rb-groonga.c
CHANGED
data/lib/1.8/groonga.so
CHANGED
Binary file
|
data/lib/1.9/groonga.so
CHANGED
Binary file
|
data/lib/groonga/context.rb
CHANGED
@@ -17,10 +17,7 @@
|
|
17
17
|
|
18
18
|
module Groonga
|
19
19
|
class Context
|
20
|
-
#
|
21
|
-
# context.open_database(path) -> Groonga::Database
|
22
|
-
#
|
23
|
-
# _path_にある既存のデータベースを開く。ブロックを指定した場
|
20
|
+
# _path_ にある既存のデータベースを開く。ブロックを指定した場
|
24
21
|
# 合はブロックに開いたデータベースを渡し、ブロックを抜けると
|
25
22
|
# きに閉じる。
|
26
23
|
def open_database(path, &block)
|
@@ -29,18 +26,14 @@ module Groonga
|
|
29
26
|
Database.open(path, options, &block)
|
30
27
|
end
|
31
28
|
|
32
|
-
#
|
33
|
-
# context.create_database(path=nil) -> Groonga::Database
|
34
|
-
#
|
35
|
-
# _path_に新しくデータベースを作成する。_path_を省略すると
|
29
|
+
# _path_ に新しくデータベースを作成する。 _path_ を省略すると
|
36
30
|
# 一時データベースとなる。
|
37
31
|
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
# 一時データベースを作成:
|
32
|
+
# @example
|
33
|
+
# #一時データベースを作成:
|
41
34
|
# context.create_database
|
42
35
|
#
|
43
|
-
#
|
36
|
+
# #永続データベースを作成:
|
44
37
|
# context.create_database("/tmp/db.groonga")
|
45
38
|
def create_database(path=nil)
|
46
39
|
options = {:context => self}
|
@@ -51,12 +44,8 @@ module Groonga
|
|
51
44
|
Database.create(options)
|
52
45
|
end
|
53
46
|
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# context.register_plugin({:path => path})
|
57
|
-
#
|
58
|
-
# groongaのプラグインディレクトリにあるプラグイン_name_
|
59
|
-
# を登録する。_path_を指定するとプラグインディレクトリ以
|
47
|
+
# groongaのプラグインディレクトリにあるプラグイン _name_
|
48
|
+
# を登録する。 _path_ を指定するとプラグインディレクトリ以
|
60
49
|
# 外にあるプラグインを登録することができる。
|
61
50
|
def register_plugin(name_or_options)
|
62
51
|
options = {:context => self}
|
@@ -68,19 +57,17 @@ module Groonga
|
|
68
57
|
end
|
69
58
|
end
|
70
59
|
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
74
|
-
# _table_から指定した条件にマッチするレコードの値を取得
|
75
|
-
# する。_table_はテーブル名かテーブルオブジェクトを指定
|
60
|
+
# _table_ から指定した条件にマッチするレコードの値を取得
|
61
|
+
# する。 _table_ はテーブル名かテーブルオブジェクトを指定
|
76
62
|
# する。
|
77
63
|
#
|
78
|
-
# _options_に指定できるキーは以下の通り。
|
64
|
+
# _options_ に指定できるキーは以下の通り。
|
65
|
+
# @param [::Hash] options The name and value
|
66
|
+
# pairs. Omitted names are initialized as the default value.
|
67
|
+
# @option options [Array] output_columns The output_columns
|
79
68
|
#
|
80
|
-
#
|
81
|
-
# [
|
82
|
-
#
|
83
|
-
# 例:
|
69
|
+
# 値を取得するカラムを指定する。
|
70
|
+
# @option options [Array] XXX TODO
|
84
71
|
# TODO
|
85
72
|
def select(table, options={})
|
86
73
|
select = SelectCommand.new(self, table, options)
|
@@ -91,7 +78,7 @@ module Groonga
|
|
91
78
|
:drill_down)
|
92
79
|
class << self
|
93
80
|
def parse(json, drill_down_keys)
|
94
|
-
select_result, *drill_down_results =
|
81
|
+
select_result, *drill_down_results = JSON.parse(json)
|
95
82
|
result = new
|
96
83
|
n_hits, columns, values = extract_result(select_result)
|
97
84
|
result.n_hits = n_hits
|
@@ -144,18 +131,6 @@ module Groonga
|
|
144
131
|
value
|
145
132
|
end
|
146
133
|
end
|
147
|
-
|
148
|
-
begin
|
149
|
-
require 'json'
|
150
|
-
def parse_json(json)
|
151
|
-
JSON.parse(json)
|
152
|
-
end
|
153
|
-
rescue LoadError
|
154
|
-
require 'yaml'
|
155
|
-
def parse_json(json)
|
156
|
-
YAML.load(json)
|
157
|
-
end
|
158
|
-
end
|
159
134
|
end
|
160
135
|
|
161
136
|
def records
|
data/lib/groonga/dumper.rb
CHANGED
@@ -49,7 +49,6 @@ module Groonga
|
|
49
49
|
|
50
50
|
private
|
51
51
|
def dump_plugins(options)
|
52
|
-
first_table = true
|
53
52
|
plugin_paths = {}
|
54
53
|
options[:database].each(:order_by => :id) do |object|
|
55
54
|
next unless object.is_a?(Groonga::Procedure)
|
@@ -138,7 +137,8 @@ module Groonga
|
|
138
137
|
end
|
139
138
|
end
|
140
139
|
|
141
|
-
|
140
|
+
# @private
|
141
|
+
class BaseSyntax
|
142
142
|
def initialize(database, output)
|
143
143
|
@database = database
|
144
144
|
@output = output
|
@@ -223,7 +223,8 @@ module Groonga
|
|
223
223
|
end
|
224
224
|
end
|
225
225
|
|
226
|
-
|
226
|
+
# @private
|
227
|
+
class RubySyntax < BaseSyntax
|
227
228
|
private
|
228
229
|
def create_table_header(table)
|
229
230
|
parameters = []
|
@@ -266,13 +267,19 @@ module Groonga
|
|
266
267
|
def define_column(table, column)
|
267
268
|
type = column_method(column)
|
268
269
|
name = column.local_name
|
269
|
-
|
270
|
+
options = column_options(column)
|
271
|
+
arguments = [dump_object(name), options].compact.join(", ")
|
272
|
+
write(" table.#{type}(#{arguments})\n")
|
270
273
|
end
|
271
274
|
|
272
275
|
def define_reference_column(table, column)
|
273
276
|
name = column.local_name
|
274
277
|
reference = column.range
|
275
|
-
|
278
|
+
options = column_options(column)
|
279
|
+
arguments = [dump_object(name),
|
280
|
+
dump_object(reference.name),
|
281
|
+
options].compact.join(", ")
|
282
|
+
write(" table.reference(#{arguments})\n")
|
276
283
|
end
|
277
284
|
|
278
285
|
def define_index_column(table, column)
|
@@ -280,14 +287,15 @@ module Groonga
|
|
280
287
|
sources = column.sources
|
281
288
|
source_names = sources.collect do |source|
|
282
289
|
if source.is_a?(Groonga::Table)
|
283
|
-
"_key"
|
290
|
+
name = "_key"
|
284
291
|
else
|
285
|
-
source.local_name
|
292
|
+
name = source.local_name
|
286
293
|
end
|
294
|
+
dump_object(name)
|
287
295
|
end.join(", ")
|
288
|
-
arguments = [target_table_name
|
296
|
+
arguments = [dump_object(target_table_name),
|
289
297
|
sources.size == 1 ? source_names : "[#{source_names}]",
|
290
|
-
":name => #{column.local_name
|
298
|
+
":name => #{dump_object(column.local_name)}"]
|
291
299
|
write(" table.index(#{arguments.join(', ')})\n")
|
292
300
|
end
|
293
301
|
|
@@ -316,9 +324,32 @@ module Groonga
|
|
316
324
|
raise ArgumentError, "unsupported column: #{column.inspect}"
|
317
325
|
end
|
318
326
|
end
|
327
|
+
|
328
|
+
def column_options(column)
|
329
|
+
options = {}
|
330
|
+
options[:type] = :vector if column.vector?
|
331
|
+
return nil if options.empty?
|
332
|
+
|
333
|
+
dumped_options = ""
|
334
|
+
options.each do |key, value|
|
335
|
+
dumped_key = dump_object(key)
|
336
|
+
dumped_value = dump_object(value)
|
337
|
+
dumped_options << "#{dumped_key} => #{dumped_value}"
|
338
|
+
end
|
339
|
+
dumped_options
|
340
|
+
end
|
341
|
+
|
342
|
+
def dump_object(object)
|
343
|
+
if object.respond_to?(:dump)
|
344
|
+
object.dump
|
345
|
+
else
|
346
|
+
object.inspect
|
347
|
+
end
|
348
|
+
end
|
319
349
|
end
|
320
350
|
|
321
|
-
|
351
|
+
# @private
|
352
|
+
class CommandSyntax < BaseSyntax
|
322
353
|
private
|
323
354
|
def create_table_header(table)
|
324
355
|
parameters = []
|