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
@@ -0,0 +1,40 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
#
|
5
|
+
# This library is free software; you can redistribute it and/or
|
6
|
+
# modify it under the terms of the GNU Lesser General Public
|
7
|
+
# License version 2.1 as published by the Free Software Foundation.
|
8
|
+
#
|
9
|
+
# This library is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
# Lesser General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU Lesser General Public
|
15
|
+
# License along with this library; if not, write to the Free Software
|
16
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
17
|
+
|
18
|
+
module Groonga
|
19
|
+
module ExpressionBuildable
|
20
|
+
class ColumnValueExpressionBuilder
|
21
|
+
def !=(other)
|
22
|
+
NotEqualExpressionBuilder.new(self, normalize(other))
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# @private
|
27
|
+
class NotEqualExpressionBuilder < BinaryExpressionBuilder
|
28
|
+
def initialize(column_value_builder, value)
|
29
|
+
super(Groonga::Operation::NOT_EQUAL, column_value_builder, value)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# @private
|
35
|
+
class ColumnExpressionBuilder
|
36
|
+
def !=(other)
|
37
|
+
column_value_builder != other
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -16,7 +16,8 @@
|
|
16
16
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
17
17
|
|
18
18
|
module Groonga
|
19
|
-
|
19
|
+
# @private
|
20
|
+
module ExpressionBuildable
|
20
21
|
attr_reader :table
|
21
22
|
attr_accessor :query
|
22
23
|
attr_accessor :syntax
|
@@ -94,7 +95,8 @@ module Groonga
|
|
94
95
|
expression
|
95
96
|
end
|
96
97
|
|
97
|
-
|
98
|
+
# @private
|
99
|
+
class ExpressionBuilder
|
98
100
|
def initialize
|
99
101
|
super()
|
100
102
|
end
|
@@ -108,7 +110,8 @@ module Groonga
|
|
108
110
|
end
|
109
111
|
end
|
110
112
|
|
111
|
-
|
113
|
+
# @private
|
114
|
+
class SetExpressionBuilder < ExpressionBuilder
|
112
115
|
def initialize(operation, *expression_builders)
|
113
116
|
super()
|
114
117
|
@operation = operation
|
@@ -124,19 +127,22 @@ module Groonga
|
|
124
127
|
end
|
125
128
|
end
|
126
129
|
|
127
|
-
|
130
|
+
# @private
|
131
|
+
class AndExpressionBuilder < SetExpressionBuilder
|
128
132
|
def initialize(*expression_builders)
|
129
133
|
super(Groonga::Operation::AND, *expression_builders)
|
130
134
|
end
|
131
135
|
end
|
132
136
|
|
133
|
-
|
137
|
+
# @private
|
138
|
+
class OrExpressionBuilder < SetExpressionBuilder
|
134
139
|
def initialize(*expression_builders)
|
135
140
|
super(Groonga::Operation::OR, *expression_builders)
|
136
141
|
end
|
137
142
|
end
|
138
143
|
|
139
|
-
|
144
|
+
# @private
|
145
|
+
class ColumnValueExpressionBuilder < ExpressionBuilder
|
140
146
|
def initialize(column, options={})
|
141
147
|
super()
|
142
148
|
@table = options[:table] || column.table
|
@@ -244,7 +250,8 @@ module Groonga
|
|
244
250
|
end
|
245
251
|
end
|
246
252
|
|
247
|
-
|
253
|
+
# @private
|
254
|
+
class MatchTargetColumnExpressionBuilder < ColumnValueExpressionBuilder
|
248
255
|
def build(expression, variable)
|
249
256
|
if @column.is_a?(String)
|
250
257
|
expression.append_constant(@column)
|
@@ -259,7 +266,8 @@ module Groonga
|
|
259
266
|
end
|
260
267
|
end
|
261
268
|
|
262
|
-
|
269
|
+
# @private
|
270
|
+
class MatchTargetExpressionBuilder < ExpressionBuilder
|
263
271
|
def initialize(target)
|
264
272
|
super()
|
265
273
|
@target = target
|
@@ -279,7 +287,8 @@ module Groonga
|
|
279
287
|
end
|
280
288
|
end
|
281
289
|
|
282
|
-
|
290
|
+
# @private
|
291
|
+
class BinaryExpressionBuilder < ExpressionBuilder
|
283
292
|
def initialize(operation, column_value_builder, value)
|
284
293
|
super()
|
285
294
|
@operation = operation
|
@@ -294,73 +303,85 @@ module Groonga
|
|
294
303
|
end
|
295
304
|
end
|
296
305
|
|
297
|
-
|
306
|
+
# @private
|
307
|
+
class EqualExpressionBuilder < BinaryExpressionBuilder
|
298
308
|
def initialize(column_value_builder, value)
|
299
309
|
super(Groonga::Operation::EQUAL, column_value_builder, value)
|
300
310
|
end
|
301
311
|
end
|
302
312
|
|
303
|
-
|
313
|
+
# @private
|
314
|
+
class MatchExpressionBuilder < BinaryExpressionBuilder
|
304
315
|
def initialize(column_value_builder, value)
|
305
316
|
super(Groonga::Operation::MATCH, column_value_builder, value)
|
306
317
|
end
|
307
318
|
end
|
308
319
|
|
309
|
-
|
320
|
+
# @private
|
321
|
+
class LessExpressionBuilder < BinaryExpressionBuilder
|
310
322
|
def initialize(column_value_builder, value)
|
311
323
|
super(Groonga::Operation::LESS, column_value_builder, value)
|
312
324
|
end
|
313
325
|
end
|
314
326
|
|
315
|
-
|
327
|
+
# @private
|
328
|
+
class LessEqualExpressionBuilder < BinaryExpressionBuilder
|
316
329
|
def initialize(column_value_builder, value)
|
317
330
|
super(Groonga::Operation::LESS_EQUAL, column_value_builder, value)
|
318
331
|
end
|
319
332
|
end
|
320
333
|
|
321
|
-
|
334
|
+
# @private
|
335
|
+
class GreaterExpressionBuilder < BinaryExpressionBuilder
|
322
336
|
def initialize(column_value_builder, value)
|
323
337
|
super(Groonga::Operation::GREATER, column_value_builder, value)
|
324
338
|
end
|
325
339
|
end
|
326
340
|
|
327
|
-
|
341
|
+
# @private
|
342
|
+
class GreaterEqualExpressionBuilder < BinaryExpressionBuilder
|
328
343
|
def initialize(column_value_builder, value)
|
329
344
|
super(Groonga::Operation::GREATER_EQUAL, column_value_builder, value)
|
330
345
|
end
|
331
346
|
end
|
332
347
|
|
333
|
-
|
348
|
+
# @private
|
349
|
+
class PlusExpressionBuilder < BinaryExpressionBuilder
|
334
350
|
def initialize(column_value_builder, value)
|
335
351
|
super(Groonga::Operation::PLUS, column_value_builder, value)
|
336
352
|
end
|
337
353
|
end
|
338
354
|
|
339
|
-
|
355
|
+
# @private
|
356
|
+
class MinusExpressionBuilder < BinaryExpressionBuilder
|
340
357
|
def initialize(column_value_builder, value)
|
341
358
|
super(Groonga::Operation::MINUS, column_value_builder, value)
|
342
359
|
end
|
343
360
|
end
|
344
361
|
|
345
|
-
|
362
|
+
# @private
|
363
|
+
class StarExpressionBuilder < BinaryExpressionBuilder
|
346
364
|
def initialize(column_value_builder, value)
|
347
365
|
super(Groonga::Operation::STAR, column_value_builder, value)
|
348
366
|
end
|
349
367
|
end
|
350
368
|
|
351
|
-
|
369
|
+
# @private
|
370
|
+
class SlashExpressionBuilder < BinaryExpressionBuilder
|
352
371
|
def initialize(column_value_builder, value)
|
353
372
|
super(Groonga::Operation::SLASH, column_value_builder, value)
|
354
373
|
end
|
355
374
|
end
|
356
375
|
|
357
|
-
|
376
|
+
# @private
|
377
|
+
class ModExpressionBuilder < BinaryExpressionBuilder
|
358
378
|
def initialize(column_value_builder, value)
|
359
379
|
super(Groonga::Operation::MOD, column_value_builder, value)
|
360
380
|
end
|
361
381
|
end
|
362
382
|
|
363
|
-
|
383
|
+
# @private
|
384
|
+
class SubExpressionBuilder < ExpressionBuilder
|
364
385
|
def initialize(query, options)
|
365
386
|
super()
|
366
387
|
@query = query
|
@@ -372,20 +393,23 @@ module Groonga
|
|
372
393
|
end
|
373
394
|
end
|
374
395
|
|
375
|
-
|
396
|
+
# @private
|
397
|
+
class PrefixSearchExpressionBuilder < BinaryExpressionBuilder
|
376
398
|
def initialize(column_value_builder, value)
|
377
399
|
super(Groonga::Operation::PREFIX, column_value_builder, value)
|
378
400
|
end
|
379
401
|
end
|
380
402
|
|
381
|
-
|
403
|
+
# @private
|
404
|
+
class SuffixSearchExpressionBuilder < BinaryExpressionBuilder
|
382
405
|
def initialize(column_value_builder, value)
|
383
406
|
super(Groonga::Operation::SUFFIX, column_value_builder, value)
|
384
407
|
end
|
385
408
|
end
|
386
409
|
end
|
387
410
|
|
388
|
-
|
411
|
+
# @private
|
412
|
+
class RecordExpressionBuilder
|
389
413
|
include ExpressionBuildable
|
390
414
|
|
391
415
|
def initialize(table, name)
|
@@ -475,7 +499,8 @@ module Groonga
|
|
475
499
|
end
|
476
500
|
end
|
477
501
|
|
478
|
-
|
502
|
+
# @private
|
503
|
+
class MatchTargetRecordExpressionBuilder < RecordExpressionBuilder
|
479
504
|
private
|
480
505
|
def column_expression_builder(column, name)
|
481
506
|
MatchTargetColumnExpressionBuilder.new(column,
|
@@ -484,7 +509,8 @@ module Groonga
|
|
484
509
|
end
|
485
510
|
end
|
486
511
|
|
487
|
-
|
512
|
+
# @private
|
513
|
+
class ColumnExpressionBuilder
|
488
514
|
include ExpressionBuildable
|
489
515
|
|
490
516
|
def initialize(column, name, query, options={})
|
@@ -564,3 +590,7 @@ module Groonga
|
|
564
590
|
end
|
565
591
|
end
|
566
592
|
end
|
593
|
+
|
594
|
+
if RUBY_VERSION >= "1.9"
|
595
|
+
require "groonga/expression-builder-19"
|
596
|
+
end
|
@@ -0,0 +1,206 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
#
|
5
|
+
# This library is free software; you can redistribute it and/or
|
6
|
+
# modify it under the terms of the GNU Lesser General Public
|
7
|
+
# License version 2.1 as published by the Free Software Foundation.
|
8
|
+
#
|
9
|
+
# This library is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
# Lesser General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU Lesser General Public
|
15
|
+
# License along with this library; if not, write to the Free Software
|
16
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
17
|
+
|
18
|
+
require "English"
|
19
|
+
require "time"
|
20
|
+
|
21
|
+
require "json"
|
22
|
+
|
23
|
+
module Groonga
|
24
|
+
module GrntestLog
|
25
|
+
class EnvironmentEvent
|
26
|
+
def initialize(environment)
|
27
|
+
@environment = environment
|
28
|
+
end
|
29
|
+
|
30
|
+
def script
|
31
|
+
@environment["script"]
|
32
|
+
end
|
33
|
+
|
34
|
+
def user
|
35
|
+
@environment["user"]
|
36
|
+
end
|
37
|
+
|
38
|
+
def date
|
39
|
+
Time.parse(@environment["date"])
|
40
|
+
end
|
41
|
+
|
42
|
+
def cpu
|
43
|
+
@environment["cpu"]
|
44
|
+
end
|
45
|
+
|
46
|
+
def bit
|
47
|
+
@environment["bit"]
|
48
|
+
end
|
49
|
+
|
50
|
+
def core
|
51
|
+
@environment["core"]
|
52
|
+
end
|
53
|
+
|
54
|
+
def ram
|
55
|
+
@environment["RAM"]
|
56
|
+
end
|
57
|
+
|
58
|
+
def unevictable
|
59
|
+
@environment["Unevictable"]
|
60
|
+
end
|
61
|
+
|
62
|
+
def mlocked
|
63
|
+
@environment["Mlocked"]
|
64
|
+
end
|
65
|
+
|
66
|
+
def total_memory
|
67
|
+
parse_size_with_unit(ram)
|
68
|
+
end
|
69
|
+
|
70
|
+
def unevictable_memory
|
71
|
+
parse_size_with_unit(unevictable)
|
72
|
+
end
|
73
|
+
|
74
|
+
def locked_memory
|
75
|
+
parse_size_with_unit(mlocked)
|
76
|
+
end
|
77
|
+
|
78
|
+
def hdd
|
79
|
+
@environment["HDD"]
|
80
|
+
end
|
81
|
+
|
82
|
+
def disk_size
|
83
|
+
parse_size_with_unit(hdd)
|
84
|
+
end
|
85
|
+
|
86
|
+
def os
|
87
|
+
@environment["OS"]
|
88
|
+
end
|
89
|
+
|
90
|
+
def host
|
91
|
+
@environment["HOST"]
|
92
|
+
end
|
93
|
+
|
94
|
+
def port
|
95
|
+
@environment["PORT"]
|
96
|
+
end
|
97
|
+
|
98
|
+
def version
|
99
|
+
@environment["VERSION"]
|
100
|
+
end
|
101
|
+
|
102
|
+
private
|
103
|
+
def parse_size_with_unit(size_with_unit)
|
104
|
+
case size_with_unit
|
105
|
+
when /\A(\d+)\z/
|
106
|
+
$1.to_i
|
107
|
+
when /\A(\d+)([KM])Bytes\z/
|
108
|
+
size = $1.to_i
|
109
|
+
unit = $2
|
110
|
+
case unit
|
111
|
+
when "K"
|
112
|
+
size * 1024
|
113
|
+
when "M"
|
114
|
+
size * (1024 ** 2)
|
115
|
+
else
|
116
|
+
raise ArgumentError,
|
117
|
+
"unknown size unit: <#{unit}>: <#{size_with_unit}>"
|
118
|
+
end
|
119
|
+
else
|
120
|
+
raise ArgumentError, "unknown size: <#{size_with_unit}>"
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
class JobsStartEvent
|
126
|
+
attr_reader :jobs
|
127
|
+
def initialize(jobs)
|
128
|
+
@jobs = jobs
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
class TaskEvent < Struct.new(:id, :command,
|
133
|
+
:relative_start_time, :relative_end_time,
|
134
|
+
:result)
|
135
|
+
def elapsed_time
|
136
|
+
relative_end_time - relative_start_time
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class JobSummaryEvent
|
141
|
+
attr_reader :job, :latency, :elapsed, :qps, :min, :max, :n_queries
|
142
|
+
def initialize(summary)
|
143
|
+
@job = summary["job"]
|
144
|
+
@total_elapsed_time = summary["total_elapsed_time"] || summary["latency"]
|
145
|
+
@job_elapsed_time = summary["job_elapsed_time"] || summary["self"]
|
146
|
+
@qps = summary["qps"]
|
147
|
+
@min = summary["min"]
|
148
|
+
@max = summary["max"]
|
149
|
+
@n_queries = summary["n_queries"] || summary["queries"]
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
class JobsEndEvent
|
154
|
+
attr_reader :summaries
|
155
|
+
def initialize(summaries)
|
156
|
+
@summaries = summaries
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class Parser
|
161
|
+
def initialize
|
162
|
+
end
|
163
|
+
|
164
|
+
def parse(input, &block)
|
165
|
+
in_environment = false
|
166
|
+
buffer = ""
|
167
|
+
input.each_line do |line|
|
168
|
+
if in_environment
|
169
|
+
case line
|
170
|
+
when "},\n"
|
171
|
+
buffer << "}"
|
172
|
+
yield(EnvironmentEvent.new(parse_json(buffer)))
|
173
|
+
buffer.clear
|
174
|
+
in_environment = false
|
175
|
+
else
|
176
|
+
buffer << line
|
177
|
+
end
|
178
|
+
else
|
179
|
+
case line
|
180
|
+
when /\A\[\{"script":/
|
181
|
+
buffer << line[1..-1]
|
182
|
+
in_environment = true
|
183
|
+
when /\A\{"jobs":/
|
184
|
+
yield(JobsStartEvent.new(parse_json(line.sub(/,$/, "}"))))
|
185
|
+
when /\A"detail": \[$/
|
186
|
+
# ignore
|
187
|
+
when /\A\[\d+,/
|
188
|
+
yield(TaskEvent.new(*parse_json(line.sub(/\]+,$/, "]"))))
|
189
|
+
when /\A"summary": /
|
190
|
+
summaries = parse_json(line.gsub(/(?:\A"summary": |\},$)/, ''))
|
191
|
+
summaries = summaries.collect do |summary|
|
192
|
+
JobSummaryEvent.new(summary)
|
193
|
+
end
|
194
|
+
yield(JobsEndEvent.new(summaries))
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
private
|
201
|
+
def parse_json(string)
|
202
|
+
JSON.parse(string)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
data/lib/groonga/pagination.rb
CHANGED
@@ -69,8 +69,8 @@ module Groonga
|
|
69
69
|
# ページネーション用便利メソッド。ページネーションをした
|
70
70
|
# い場合は #sort よりも #paginate の方が便利。
|
71
71
|
#
|
72
|
-
# 説明文(descriptionカラム)を「Ruby
|
73
|
-
#
|
72
|
+
# 説明文(descriptionカラム)を「Ruby」で全文検索し、
|
73
|
+
# 検索結果をスコアの高い順にソートして、10項目ずつ表示する
|
74
74
|
# 場合は以下のようになる。
|
75
75
|
#
|
76
76
|
# query = "Ruby"
|
@@ -95,14 +95,16 @@ module Groonga
|
|
95
95
|
# _sort_keys_ には ソートに用いる情報を指定する。
|
96
96
|
# 指定の仕方は #sort と同様なので、詳細は #sort を参照。
|
97
97
|
#
|
98
|
-
# _options_に指定可能な値は以下の通り。
|
98
|
+
# _options_ に指定可能な値は以下の通り。
|
99
99
|
#
|
100
|
-
# [
|
101
|
-
#
|
100
|
+
# @param [::Hash] options The name and value
|
101
|
+
# pairs. Omitted names are initialized as the default value.
|
102
|
+
# @option options [Integer] :size (10) The size
|
102
103
|
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
104
|
+
# 1ページあたりに表示する最大項目数。
|
105
|
+
# @option options [Integer] :page (1) The page
|
106
|
+
#
|
107
|
+
# ページ番号。ページ番号は0ベースではなく1ベースであることに注意。
|
106
108
|
def paginate(sort_keys, options={})
|
107
109
|
_size = size
|
108
110
|
page_size = options[:size] || 10
|
@@ -142,7 +144,7 @@ module Groonga
|
|
142
144
|
# 全レコード数。
|
143
145
|
attr_reader :n_records
|
144
146
|
|
145
|
-
# 2
|
147
|
+
# 2ページ以上ある場合は +true+ を返す。
|
146
148
|
def have_pages?
|
147
149
|
@n_pages > 1
|
148
150
|
end
|
@@ -152,7 +154,7 @@ module Groonga
|
|
152
154
|
1
|
153
155
|
end
|
154
156
|
|
155
|
-
#
|
157
|
+
# 現在のページが最初のページなら +true+ を返す。
|
156
158
|
def first_page?
|
157
159
|
@current_page == first_page
|
158
160
|
end
|
@@ -162,29 +164,29 @@ module Groonga
|
|
162
164
|
@n_pages
|
163
165
|
end
|
164
166
|
|
165
|
-
#
|
167
|
+
# 現在のページが最後のページなら +true+ を返す。
|
166
168
|
def last_page?
|
167
169
|
@current_page == last_page
|
168
170
|
end
|
169
171
|
|
170
|
-
#
|
172
|
+
# 次のページがあるなら +true+ を返す。
|
171
173
|
def have_next_page?
|
172
174
|
@current_page < @n_pages
|
173
175
|
end
|
174
176
|
|
175
|
-
#
|
176
|
-
#
|
177
|
+
# 次のページ番号を返す。次のページがない場合は +nil+
|
178
|
+
# を返す。
|
177
179
|
def next_page
|
178
180
|
have_next_page? ? @current_page + 1 : nil
|
179
181
|
end
|
180
182
|
|
181
|
-
#
|
183
|
+
# 前のページがあるなら +true+ を返す。
|
182
184
|
def have_previous_page?
|
183
185
|
@current_page > 1
|
184
186
|
end
|
185
187
|
|
186
|
-
#
|
187
|
-
#
|
188
|
+
# 前のページ番号を返す。前のページがない場合は +nil+
|
189
|
+
# を返す。
|
188
190
|
def previous_page
|
189
191
|
have_previous_page? ? @current_page - 1 : nil
|
190
192
|
end
|
@@ -199,7 +201,7 @@ module Groonga
|
|
199
201
|
# あることに注意。つまり、最初のレコードは0番目のレコー
|
200
202
|
# ドではなく、1番目のレコードになる。
|
201
203
|
#
|
202
|
-
# レコードが1
|
204
|
+
# レコードが1つもない場合は +nil+ を返す。
|
203
205
|
def start_offset
|
204
206
|
return nil if @n_records.zero?
|
205
207
|
1 + (@current_page - 1) * @page_size
|
@@ -210,7 +212,7 @@ module Groonga
|
|
210
212
|
# あることに注意。つまり、最初のレコードは0番目のレコー
|
211
213
|
# ドではなく、1番目のレコードになる。
|
212
214
|
#
|
213
|
-
# レコードが1
|
215
|
+
# レコードが1つもない場合は +nil+ を返す。
|
214
216
|
def end_offset
|
215
217
|
return nil if @n_records.zero?
|
216
218
|
[start_offset + @page_size - 1, @n_records].min
|
@@ -17,22 +17,19 @@
|
|
17
17
|
|
18
18
|
module Groonga
|
19
19
|
class PatriciaTrie
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
# _text_を走査し、レコードのキーとマッチする部分文字列ごとに
|
24
|
-
# そのレコードが_record_として、その部分文字列が_word_として、
|
20
|
+
# _text_ を走査し、レコードのキーとマッチする部分文字列ごとに
|
21
|
+
# そのレコードが _record_ として、その部分文字列が _word_ として、
|
25
22
|
# ブロックが呼び出される。ブロックから返された文字列が元の部
|
26
23
|
# 分文字列と置換される。全てのヒットに対してのその置換処理が
|
27
24
|
# 行われた文字列が返される。
|
28
25
|
#
|
29
|
-
#
|
26
|
+
# @param options [::Hash] The name and value
|
27
|
+
# pairs. Omitted names are initialized as the default value.
|
28
|
+
# @option options [Proc] :other_text_handler The other_text_handler
|
30
29
|
#
|
31
|
-
#
|
32
|
-
# マッチした部分文字列の前後の文字列を変換するProcを指
|
33
|
-
# 定する。
|
30
|
+
# マッチした部分文字列の前後の文字列を変換するProcを指定する。
|
34
31
|
#
|
35
|
-
#
|
32
|
+
# @example
|
36
33
|
# include ERB::Util
|
37
34
|
# Groonga::Context.default_options = {:encoding => "utf-8"}
|
38
35
|
# words = Groonga::PatriciaTrie.create(:key_type => "ShortText",
|
data/lib/groonga/posting.rb
CHANGED
@@ -52,7 +52,7 @@ module Groonga
|
|
52
52
|
|
53
53
|
# Updates all values.
|
54
54
|
#
|
55
|
-
# @param [Hash] parameters The name and value
|
55
|
+
# @param [::Hash] parameters The name and value
|
56
56
|
# pairs. Omitted names are initialized as the default value.
|
57
57
|
# @option parameters [Integer] :record_id The record_id.
|
58
58
|
# @option parameters [Integer] :section_id The section_id.
|