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/test/test-table-select.rb
CHANGED
@@ -146,6 +146,15 @@ class TableSelectTest < Test::Unit::TestCase
|
|
146
146
|
result)
|
147
147
|
end
|
148
148
|
|
149
|
+
def test_not_equal_block
|
150
|
+
only_ruby19
|
151
|
+
result = @comments.select do |record|
|
152
|
+
record.user != "darashi"
|
153
|
+
end
|
154
|
+
assert_equal_select_result([@comment1, @comment2, @comment3],
|
155
|
+
result)
|
156
|
+
end
|
157
|
+
|
149
158
|
def test_equal_reference_column_by_nonexistent_key
|
150
159
|
result = @comments.select do |record|
|
151
160
|
record["user"] == "nonexistent"
|
data/test/test-table.rb
CHANGED
@@ -78,9 +78,9 @@ class TableTest < Test::Unit::TestCase
|
|
78
78
|
bookmarks = Groonga::Hash.create(:name => "Bookmarks")
|
79
79
|
message = "should not pass :path if :persistent is false: <#{column_path}>"
|
80
80
|
assert_raise(ArgumentError.new(message)) do
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
bookmarks.define_column("real_name", "ShortText",
|
82
|
+
:path => column_path.to_s,
|
83
|
+
:persistent => false)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -106,9 +106,9 @@ class TableTest < Test::Unit::TestCase
|
|
106
106
|
terms = Groonga::Hash.create(:name => "Terms")
|
107
107
|
message = "should not pass :path if :persistent is false: <#{column_path}>"
|
108
108
|
assert_raise(ArgumentError.new(message)) do
|
109
|
-
|
110
|
-
|
111
|
-
|
109
|
+
terms.define_index_column("real_name", bookmarks,
|
110
|
+
:path => column_path.to_s,
|
111
|
+
:persistent => false)
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
@@ -244,7 +244,7 @@ class TableTest < Test::Unit::TestCase
|
|
244
244
|
bookmarks_path = @tables_dir + "bookmarks"
|
245
245
|
bookmarks = Groonga::Array.create(:name => "Bookmarks",
|
246
246
|
:path => bookmarks_path.to_s)
|
247
|
-
|
247
|
+
bookmarks.define_column("created_at", "Time")
|
248
248
|
|
249
249
|
bookmark = bookmarks.add
|
250
250
|
now = Time.now
|
@@ -258,12 +258,13 @@ class TableTest < Test::Unit::TestCase
|
|
258
258
|
bookmarks = Groonga::Array.create(:name => "Bookmarks",
|
259
259
|
:path => bookmarks_path.to_s)
|
260
260
|
|
261
|
-
|
262
|
-
|
263
|
-
|
261
|
+
bookmark_records = []
|
262
|
+
bookmark_records << bookmarks.add
|
263
|
+
bookmark_records << bookmarks.add
|
264
|
+
bookmark_records << bookmarks.add
|
264
265
|
|
265
266
|
assert_equal(3, bookmarks.size)
|
266
|
-
bookmarks.delete(
|
267
|
+
bookmarks.delete(bookmark_records[1].id)
|
267
268
|
assert_equal(2, bookmarks.size)
|
268
269
|
end
|
269
270
|
|
@@ -285,7 +286,7 @@ class TableTest < Test::Unit::TestCase
|
|
285
286
|
|
286
287
|
def test_each
|
287
288
|
users = Groonga::Array.create(:name => "Users")
|
288
|
-
|
289
|
+
users.define_column("name", "ShortText")
|
289
290
|
|
290
291
|
names = ["daijiro", "gunyarakun", "yu"]
|
291
292
|
names.each do |name|
|
@@ -454,8 +455,8 @@ class TableTest < Test::Unit::TestCase
|
|
454
455
|
bookmarks = Groonga::Hash.create(:name => "Bookmarks")
|
455
456
|
bookmarks.define_column("title", "ShortText")
|
456
457
|
|
457
|
-
|
458
|
-
|
458
|
+
bookmarks.add("http://groonga.org/", :title => "groonga")
|
459
|
+
bookmarks.add("http://ruby-lang.org/", :title => "Ruby")
|
459
460
|
|
460
461
|
ruby_bookmarks = bookmarks.select {|record| record["title"] == "Ruby"}
|
461
462
|
groonga_bookmarks = bookmarks.select {|record| record["title"] == "groonga"}
|
@@ -513,8 +514,6 @@ class TableTest < Test::Unit::TestCase
|
|
513
514
|
|
514
515
|
def test_lock
|
515
516
|
bookmarks = Groonga::Array.create(:name => "Bookmarks")
|
516
|
-
bookmark = bookmarks.add
|
517
|
-
|
518
517
|
assert_not_predicate(bookmarks, :locked?)
|
519
518
|
bookmarks.lock
|
520
519
|
assert_predicate(bookmarks, :locked?)
|
@@ -524,8 +523,6 @@ class TableTest < Test::Unit::TestCase
|
|
524
523
|
|
525
524
|
def test_lock_failed
|
526
525
|
bookmarks = Groonga::Array.create(:name => "Bookmarks")
|
527
|
-
bookmark = bookmarks.add
|
528
|
-
|
529
526
|
bookmarks.lock
|
530
527
|
assert_raise(Groonga::ResourceDeadlockAvoided) do
|
531
528
|
bookmarks.lock
|
@@ -534,8 +531,6 @@ class TableTest < Test::Unit::TestCase
|
|
534
531
|
|
535
532
|
def test_lock_block
|
536
533
|
bookmarks = Groonga::Array.create(:name => "Bookmarks")
|
537
|
-
bookmark = bookmarks.add
|
538
|
-
|
539
534
|
assert_not_predicate(bookmarks, :locked?)
|
540
535
|
bookmarks.lock do
|
541
536
|
assert_predicate(bookmarks, :locked?)
|
@@ -545,8 +540,6 @@ class TableTest < Test::Unit::TestCase
|
|
545
540
|
|
546
541
|
def test_clear_lock
|
547
542
|
bookmarks = Groonga::Array.create(:name => "Bookmarks")
|
548
|
-
bookmark = bookmarks.add
|
549
|
-
|
550
543
|
assert_not_predicate(bookmarks, :locked?)
|
551
544
|
bookmarks.lock
|
552
545
|
assert_predicate(bookmarks, :locked?)
|
@@ -569,7 +562,7 @@ class TableTest < Test::Unit::TestCase
|
|
569
562
|
|
570
563
|
def test_get_common_prefix_column
|
571
564
|
users = Groonga::Array.create(:name => "Users")
|
572
|
-
|
565
|
+
users.define_column("name_kana", "ShortText")
|
573
566
|
name = users.define_column("name", "ShortText")
|
574
567
|
|
575
568
|
assert_equal(name, users.column("name"))
|
@@ -580,7 +573,7 @@ class TableTest < Test::Unit::TestCase
|
|
580
573
|
:key_type => "ShortText")
|
581
574
|
books = Groonga::Hash.create(:name => "Books",
|
582
575
|
:key_type => "ShortText")
|
583
|
-
|
576
|
+
users.define_column("book", books)
|
584
577
|
users.add("morita", :book => "")
|
585
578
|
assert_equal({"_id" => 1, "_key" => "morita", "book" => nil},
|
586
579
|
users["morita"].attributes)
|
Binary file
|
@@ -33,7 +33,7 @@ class Array
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
class
|
36
|
+
class GroongaQueryLogAnalyzer
|
37
37
|
class Error < StandardError
|
38
38
|
end
|
39
39
|
|
@@ -51,22 +51,29 @@ class GroongaQueryLogAnaylzer
|
|
51
51
|
dynamic_sort = @options[:dynamic_sort]
|
52
52
|
statistics = SizedStatistics.new
|
53
53
|
statistics.apply_options(@options)
|
54
|
+
parser = QueryLogParser.new
|
54
55
|
if stream
|
55
56
|
streamer = Streamer.new(create_reporter(statistics))
|
56
57
|
streamer.start
|
57
|
-
|
58
|
+
process_statistic = lambda do |statistic|
|
59
|
+
streamer << statistic
|
60
|
+
end
|
58
61
|
elsif dynamic_sort
|
59
|
-
|
62
|
+
process_statistic = lambda do |statistic|
|
63
|
+
statistics << statistic
|
64
|
+
end
|
60
65
|
else
|
61
66
|
full_statistics = []
|
62
|
-
|
67
|
+
process_statistic = lambda do |statistic|
|
68
|
+
full_statistics << statistic
|
69
|
+
end
|
63
70
|
end
|
64
71
|
if log_paths.empty?
|
65
|
-
parser.parse(ARGF)
|
72
|
+
parser.parse(ARGF, &process_statistic)
|
66
73
|
else
|
67
74
|
log_paths.each do |log_path|
|
68
75
|
File.open(log_path) do |log|
|
69
|
-
parser.parse(log)
|
76
|
+
parser.parse(log, &process_statistic)
|
70
77
|
end
|
71
78
|
end
|
72
79
|
end
|
@@ -631,13 +638,11 @@ class GroongaQueryLogAnaylzer
|
|
631
638
|
end
|
632
639
|
|
633
640
|
class QueryLogParser
|
634
|
-
|
635
|
-
def initialize(statistics)
|
641
|
+
def initialize
|
636
642
|
@mutex = Mutex.new
|
637
|
-
@statistics = statistics
|
638
643
|
end
|
639
644
|
|
640
|
-
def parse(input)
|
645
|
+
def parse(input, &block)
|
641
646
|
current_statistics = {}
|
642
647
|
input.each_line do |line|
|
643
648
|
case line
|
@@ -649,15 +654,15 @@ class GroongaQueryLogAnaylzer
|
|
649
654
|
rest = $POSTMATCH.strip
|
650
655
|
time_stamp = Time.local(year, month, day, hour, minutes, seconds,
|
651
656
|
micro_seconds)
|
652
|
-
parse_line(
|
653
|
-
time_stamp, context_id, type, rest)
|
657
|
+
parse_line(current_statistics,
|
658
|
+
time_stamp, context_id, type, rest, &block)
|
654
659
|
end
|
655
660
|
end
|
656
661
|
end
|
657
662
|
|
658
663
|
private
|
659
|
-
def parse_line(
|
660
|
-
time_stamp, context_id, type, rest)
|
664
|
+
def parse_line(current_statistics,
|
665
|
+
time_stamp, context_id, type, rest, &block)
|
661
666
|
case type
|
662
667
|
when ">"
|
663
668
|
statistic = Statistic.new(context_id)
|
@@ -680,7 +685,7 @@ class GroongaQueryLogAnaylzer
|
|
680
685
|
statistic = current_statistics.delete(context_id)
|
681
686
|
return if statistic.nil?
|
682
687
|
statistic.finish(elapsed.to_i, return_code.to_i)
|
683
|
-
|
688
|
+
block.call(statistic)
|
684
689
|
end
|
685
690
|
end
|
686
691
|
end
|
@@ -1404,10 +1409,10 @@ td.name
|
|
1404
1409
|
end
|
1405
1410
|
|
1406
1411
|
if __FILE__ == $0
|
1407
|
-
analyzer =
|
1412
|
+
analyzer = GroongaQueryLogAnalyzer.new
|
1408
1413
|
begin
|
1409
1414
|
analyzer.run
|
1410
|
-
rescue
|
1415
|
+
rescue GroongaQueryLogAnalyzer::Error
|
1411
1416
|
$stderr.puts($!.message)
|
1412
1417
|
exit(false)
|
1413
1418
|
end
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
|
3
|
-
prefix=/home/kou/work/c/groonga.clean/packages/windows/dist
|
3
|
+
prefix=/home/kou/work/c/groonga.clean/packages/windows/dist-x86
|
4
4
|
exec_prefix=${prefix}
|
5
5
|
exec_prefix_set=no
|
6
6
|
|
@@ -107,7 +107,7 @@ while test $# -gt 0; do
|
|
107
107
|
;;
|
108
108
|
|
109
109
|
--libexecdir)
|
110
|
-
echo /home/kou/work/c/groonga.clean/packages/windows/dist/libexec/mecab
|
110
|
+
echo /home/kou/work/c/groonga.clean/packages/windows/dist-x86/libexec/mecab
|
111
111
|
;;
|
112
112
|
|
113
113
|
--sysconfdir)
|
data/vendor/local/bin/mecab.exe
CHANGED
Binary file
|
@@ -419,6 +419,7 @@ typedef unsigned short int grn_obj_flags;
|
|
419
419
|
#define GRN_CURSOR_TABLE_NO_KEY (0x13)
|
420
420
|
#define GRN_CURSOR_TABLE_VIEW (0x14)
|
421
421
|
#define GRN_CURSOR_COLUMN_INDEX (0x18)
|
422
|
+
#define GRN_CURSOR_COLUMN_GEO_INDEX (0x1a)
|
422
423
|
#define GRN_TYPE (0x20)
|
423
424
|
#define GRN_PROC (0x21)
|
424
425
|
#define GRN_EXPR (0x22)
|
@@ -771,11 +772,39 @@ GRN_API grn_rc grn_table_delete(grn_ctx *ctx, grn_obj *table,
|
|
771
772
|
* @table: 対象table
|
772
773
|
* @id: レコードID
|
773
774
|
*
|
774
|
-
* tableの
|
775
|
+
* tableのidに対応するレコードを削除する。
|
775
776
|
* 対応するレコードが存在しない場合はGRN_INVALID_ARGUMENTを返す。
|
776
777
|
**/
|
777
778
|
GRN_API grn_rc grn_table_delete_by_id(grn_ctx *ctx, grn_obj *table, grn_id id);
|
778
779
|
|
780
|
+
/**
|
781
|
+
* grn_table_update_by_id:
|
782
|
+
* @table: 対象table
|
783
|
+
* @id: レコードID
|
784
|
+
*
|
785
|
+
* tableのidに対応するレコードのkeyを変更する。
|
786
|
+
* 新しいkeyとそのbyte長をdest_keyとdest_key_sizeに指定する。
|
787
|
+
* この操作は、GRN_TABLE_DAT_KEY型のテーブルのみ使用できる。
|
788
|
+
**/
|
789
|
+
GRN_API grn_rc grn_table_update_by_id(grn_ctx *ctx, grn_obj *table, grn_id id,
|
790
|
+
const void *dest_key, unsigned int dest_key_size);
|
791
|
+
|
792
|
+
/**
|
793
|
+
* grn_table_update:
|
794
|
+
* @table: 対象table
|
795
|
+
* @src_key: 対象レコードのkey
|
796
|
+
* @src_key_size: 対象レコードのkeyの長さ(byte)
|
797
|
+
* @dest_key: 変更後のkey
|
798
|
+
* @dest_key_size: 変更後のkeyの長さ(byte)
|
799
|
+
*
|
800
|
+
* tableのsrc_keyに対応するレコードのkeyを変更する。
|
801
|
+
* 新しいkeyとそのbyte長をdest_keyとdest_key_sizeに指定する。
|
802
|
+
* この操作は、GRN_TABLE_DAT_KEY型のテーブルのみ使用できる。
|
803
|
+
**/
|
804
|
+
GRN_API grn_rc grn_table_update(grn_ctx *ctx, grn_obj *table,
|
805
|
+
const void *src_key, unsigned int src_key_size,
|
806
|
+
const void *dest_key, unsigned int dest_key_size);
|
807
|
+
|
779
808
|
/**
|
780
809
|
* grn_table_truncate:
|
781
810
|
* @table: 対象table
|
@@ -995,6 +1024,9 @@ GRN_API grn_posting *grn_index_cursor_next(grn_ctx *ctx, grn_obj *ic, grn_id *ti
|
|
995
1024
|
case GRN_TABLE_PAT_KEY :\
|
996
1025
|
GRN_PAT_EACH((ctx), (grn_pat *)(table), (id), (key), (key_size), (value), block);\
|
997
1026
|
break;\
|
1027
|
+
case GRN_TABLE_DAT_KEY :\
|
1028
|
+
GRN_DAT_EACH((ctx), (grn_dat *)(table), (id), (key), (key_size), block);\
|
1029
|
+
break;\
|
998
1030
|
case GRN_TABLE_HASH_KEY :\
|
999
1031
|
GRN_HASH_EACH((ctx), (grn_hash *)(table), (id), (key), (key_size), (value), block);\
|
1000
1032
|
break;\
|
@@ -1426,6 +1458,42 @@ GRN_API grn_rc grn_obj_set_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj
|
|
1426
1458
|
**/
|
1427
1459
|
GRN_API grn_rc grn_obj_remove(grn_ctx *ctx, grn_obj *obj);
|
1428
1460
|
|
1461
|
+
/**
|
1462
|
+
* grn_obj_rename:
|
1463
|
+
* @obj: 対象object
|
1464
|
+
* @name: 新しい名前
|
1465
|
+
* @name_size: @nameのsize(byte)
|
1466
|
+
*
|
1467
|
+
* ctxが使用するdbにおいてobjに対応する名前をnameに更新する。
|
1468
|
+
* objは永続オブジェクトでなければならない。
|
1469
|
+
**/
|
1470
|
+
GRN_API grn_rc grn_obj_rename(grn_ctx *ctx, grn_obj *obj, const char *name, unsigned name_size);
|
1471
|
+
|
1472
|
+
/**
|
1473
|
+
* grn_table_rename:
|
1474
|
+
* @table: 対象table
|
1475
|
+
* @name: 新しい名前
|
1476
|
+
* @name_size: @nameのsize(byte)
|
1477
|
+
*
|
1478
|
+
* ctxが使用するdbにおいてtableに対応する名前をnameに更新する。
|
1479
|
+
* tableの全てのcolumnも同時に名前が変更される。
|
1480
|
+
* tableは永続オブジェクトでなければならない。
|
1481
|
+
**/
|
1482
|
+
GRN_API grn_rc grn_table_rename(grn_ctx *ctx, grn_obj *table,
|
1483
|
+
const char *name, unsigned name_size);
|
1484
|
+
|
1485
|
+
/**
|
1486
|
+
* grn_column_rename:
|
1487
|
+
* @column: 対象column
|
1488
|
+
* @name: 新しい名前
|
1489
|
+
* @name_size: @nameのsize(byte)
|
1490
|
+
*
|
1491
|
+
* ctxが使用するdbにおいてcolumnに対応する名前をnameに更新する。
|
1492
|
+
* columnは永続オブジェクトでなければならない。
|
1493
|
+
**/
|
1494
|
+
GRN_API grn_rc grn_column_rename(grn_ctx *ctx, grn_obj *column,
|
1495
|
+
const char *name, unsigned name_size);
|
1496
|
+
|
1429
1497
|
/**
|
1430
1498
|
* grn_obj_close:
|
1431
1499
|
* @obj: 対象object
|
@@ -1715,6 +1783,118 @@ GRN_API grn_obj *grn_obj_open(grn_ctx *ctx, unsigned char type, grn_obj_flags fl
|
|
1715
1783
|
GRN_API int grn_column_index(grn_ctx *ctx, grn_obj *column, grn_operator op,
|
1716
1784
|
grn_obj **indexbuf, int buf_size, int *section);
|
1717
1785
|
|
1786
|
+
/* geo */
|
1787
|
+
|
1788
|
+
typedef struct {
|
1789
|
+
int latitude;
|
1790
|
+
int longitude;
|
1791
|
+
} grn_geo_point;
|
1792
|
+
|
1793
|
+
|
1794
|
+
/**
|
1795
|
+
* grn_geo_select_in_circle:
|
1796
|
+
* @index: the index column for TokyoGeoPoint or WGS84GeoPpoint type.
|
1797
|
+
* @center_point: the center point of the target circle. (ShortText, Text,
|
1798
|
+
* LongText, TokyoGeoPoint or WGS84GeoPoint)
|
1799
|
+
* @distance: the radius of the target circle (Int32,
|
1800
|
+
* UInt32, Int64, UInt64 or Float) or the point
|
1801
|
+
* on the circumference of the target circle. (ShortText, Text, LongText,
|
1802
|
+
* TokyoGeoPoint or WGS84GeoPoint)
|
1803
|
+
* @res: the table to store found record IDs. It must be
|
1804
|
+
* GRN_TABLE_HASH_KEY type table.
|
1805
|
+
* @op: the operator for matched records.
|
1806
|
+
*
|
1807
|
+
* It selects records that are in the circle specified by
|
1808
|
+
* @center_point and @distance from @center_point. Records
|
1809
|
+
* are searched by @index. Found records are added to @res
|
1810
|
+
* table with @op operation.
|
1811
|
+
**/
|
1812
|
+
GRN_API grn_rc grn_geo_select_in_circle(grn_ctx *ctx,
|
1813
|
+
grn_obj *index,
|
1814
|
+
grn_obj *center_point,
|
1815
|
+
grn_obj *distance,
|
1816
|
+
grn_obj *res,
|
1817
|
+
grn_operator op);
|
1818
|
+
|
1819
|
+
/**
|
1820
|
+
* grn_geo_select_in_rectangle:
|
1821
|
+
* @index: the index column for TokyoGeoPoint or WGS84GeoPpoint type.
|
1822
|
+
* @top_left_point: the top left point of the target
|
1823
|
+
* rectangle. (ShortText, Text, LongText, TokyoGeoPoint or
|
1824
|
+
* WGS84GeoPoint)
|
1825
|
+
* @bottom_right_point: the bottom right point of the target
|
1826
|
+
* rectangle. (ShortText, Text, LongText, TokyoGeoPoint or
|
1827
|
+
* WGS84GeoPoint)
|
1828
|
+
* @res: the table to store found record IDs. It must be
|
1829
|
+
* GRN_TABLE_HASH_KEY type table.
|
1830
|
+
* @op: the operator for matched records.
|
1831
|
+
*
|
1832
|
+
* It selects records that are in the rectangle specified by
|
1833
|
+
* @top_left_point and @bottom_right_point. Records are
|
1834
|
+
* searched by @index. Found records are added to @res table
|
1835
|
+
* with @op operation.
|
1836
|
+
**/
|
1837
|
+
GRN_API grn_rc grn_geo_select_in_rectangle(grn_ctx *ctx,
|
1838
|
+
grn_obj *index,
|
1839
|
+
grn_obj *top_left_point,
|
1840
|
+
grn_obj *bottom_right_point,
|
1841
|
+
grn_obj *res,
|
1842
|
+
grn_operator op);
|
1843
|
+
|
1844
|
+
/**
|
1845
|
+
* grn_geo_estimate_in_rectangle:
|
1846
|
+
* @index: the index column for TokyoGeoPoint or WGS84GeoPpoint type.
|
1847
|
+
* @top_left_point: the top left point of the target
|
1848
|
+
* rectangle. (ShortText, Text, LongText, TokyoGeoPoint or
|
1849
|
+
* WGS84GeoPoint)
|
1850
|
+
* @bottom_right_point: the bottom right point of the target
|
1851
|
+
* rectangle. (ShortText, Text, LongText, TokyoGeoPoint or
|
1852
|
+
* WGS84GeoPoint)
|
1853
|
+
*
|
1854
|
+
* It estimates number of records in the rectangle specified
|
1855
|
+
* by @top_left_point and @bottom_right_point. Number of
|
1856
|
+
* records is estimated by @index. If an error is occurred,
|
1857
|
+
* -1 is returned.
|
1858
|
+
**/
|
1859
|
+
GRN_API int grn_geo_estimate_in_rectangle(grn_ctx *ctx,
|
1860
|
+
grn_obj *index,
|
1861
|
+
grn_obj *top_left_point,
|
1862
|
+
grn_obj *bottom_right_point);
|
1863
|
+
|
1864
|
+
/**
|
1865
|
+
* grn_geo_cursor_open_in_rectangle:
|
1866
|
+
* @index: the index column for TokyoGeoPoint or WGS84GeoPpoint type.
|
1867
|
+
* @top_left_point: the top left point of the target
|
1868
|
+
* rectangle. (ShortText, Text, LongText, TokyoGeoPoint or
|
1869
|
+
* WGS84GeoPoint)
|
1870
|
+
* @bottom_right_point: the bottom right point of the target
|
1871
|
+
* rectangle. (ShortText, Text, LongText, TokyoGeoPoint or
|
1872
|
+
* WGS84GeoPoint)
|
1873
|
+
* @offset: the cursor returns records from @offset
|
1874
|
+
* position. @offset is based on 0.
|
1875
|
+
* @limit: the cursor returns at most @limit records. -1
|
1876
|
+
* means no limit.
|
1877
|
+
*
|
1878
|
+
* It opens a cursor to get records in the rectangle
|
1879
|
+
* specfied by @top_left_point and @bottom_right_point.
|
1880
|
+
**/
|
1881
|
+
GRN_API grn_obj *grn_geo_cursor_open_in_rectangle(grn_ctx *ctx,
|
1882
|
+
grn_obj *index,
|
1883
|
+
grn_obj *top_left_point,
|
1884
|
+
grn_obj *bottom_right_point,
|
1885
|
+
int offset,
|
1886
|
+
int limit);
|
1887
|
+
|
1888
|
+
/**
|
1889
|
+
* grn_geo_cursor_next:
|
1890
|
+
* @cursor: the geo cursor.
|
1891
|
+
*
|
1892
|
+
* It returns the next posting that has record ID. It
|
1893
|
+
* returns NULL after all records are returned.
|
1894
|
+
**/
|
1895
|
+
GRN_API grn_posting *grn_geo_cursor_next(grn_ctx *ctx, grn_obj *cursor);
|
1896
|
+
|
1897
|
+
|
1718
1898
|
/* query & snippet */
|
1719
1899
|
|
1720
1900
|
#ifndef GRN_QUERY_AND
|
@@ -2064,10 +2244,10 @@ GRN_API grn_rc grn_text_otoj(grn_ctx *ctx, grn_obj *bulk, grn_obj *obj,
|
|
2064
2244
|
grn_bulk_write_from((ctx), (obj), (char *)&_val, 0, sizeof(grn_obj *));\
|
2065
2245
|
} while (0)
|
2066
2246
|
|
2067
|
-
|
2068
|
-
int
|
2069
|
-
|
2070
|
-
|
2247
|
+
#define GRN_GEO_DEGREE2MSEC(degree)\
|
2248
|
+
((int)((degree) * 3600 * 1000 + ((degree) > 0 ? 0.5 : -0.5)))
|
2249
|
+
#define GRN_GEO_MSEC2DEGREE(msec)\
|
2250
|
+
((((int)(msec)) / 3600.0) * 0.001)
|
2071
2251
|
|
2072
2252
|
#define GRN_GEO_POINT_SET(ctx,obj,_latitude,_longitude) do {\
|
2073
2253
|
grn_geo_point _val;\
|
@@ -2546,6 +2726,72 @@ GRN_API grn_rc grn_pat_cursor_delete(grn_ctx *ctx, grn_pat_cursor *c,
|
|
2546
2726
|
}\
|
2547
2727
|
} while (0)
|
2548
2728
|
|
2729
|
+
/* dat */
|
2730
|
+
|
2731
|
+
typedef struct _grn_dat grn_dat;
|
2732
|
+
typedef struct _grn_dat_cursor grn_dat_cursor;
|
2733
|
+
|
2734
|
+
GRN_API grn_dat *grn_dat_create(grn_ctx *ctx, const char *path, unsigned int key_size,
|
2735
|
+
unsigned int value_size, unsigned int flags);
|
2736
|
+
|
2737
|
+
GRN_API grn_dat *grn_dat_open(grn_ctx *ctx, const char *path);
|
2738
|
+
|
2739
|
+
GRN_API grn_rc grn_dat_close(grn_ctx *ctx, grn_dat *dat);
|
2740
|
+
|
2741
|
+
GRN_API grn_rc grn_dat_remove(grn_ctx *ctx, const char *path);
|
2742
|
+
|
2743
|
+
GRN_API grn_id grn_dat_get(grn_ctx *ctx, grn_dat *dat, const void *key,
|
2744
|
+
unsigned int key_size, void **value);
|
2745
|
+
GRN_API grn_id grn_dat_add(grn_ctx *ctx, grn_dat *dat, const void *key,
|
2746
|
+
unsigned int key_size, void **value, int *added);
|
2747
|
+
|
2748
|
+
GRN_API int grn_dat_get_key(grn_ctx *ctx, grn_dat *dat, grn_id id, void *keybuf, int bufsize);
|
2749
|
+
GRN_API int grn_dat_get_key2(grn_ctx *ctx, grn_dat *dat, grn_id id, grn_obj *bulk);
|
2750
|
+
|
2751
|
+
GRN_API grn_rc grn_dat_delete_by_id(grn_ctx *ctx, grn_dat *dat, grn_id id,
|
2752
|
+
grn_table_delete_optarg *optarg);
|
2753
|
+
GRN_API grn_rc grn_dat_delete(grn_ctx *ctx, grn_dat *dat, const void *key, unsigned int key_size,
|
2754
|
+
grn_table_delete_optarg *optarg);
|
2755
|
+
|
2756
|
+
GRN_API grn_rc grn_dat_update_by_id(grn_ctx *ctx, grn_dat *dat, grn_id src_key_id,
|
2757
|
+
const void *dest_key, unsigned int dest_key_size);
|
2758
|
+
GRN_API grn_rc grn_dat_update(grn_ctx *ctx, grn_dat *dat,
|
2759
|
+
const void *src_key, unsigned int src_key_size,
|
2760
|
+
const void *dest_key, unsigned int dest_key_size);
|
2761
|
+
|
2762
|
+
GRN_API unsigned int grn_dat_size(grn_ctx *ctx, grn_dat *dat);
|
2763
|
+
|
2764
|
+
GRN_API grn_dat_cursor *grn_dat_cursor_open(grn_ctx *ctx, grn_dat *dat,
|
2765
|
+
const void *min, unsigned int min_size,
|
2766
|
+
const void *max, unsigned int max_size,
|
2767
|
+
int offset, int limit, int flags);
|
2768
|
+
GRN_API grn_id grn_dat_cursor_next(grn_ctx *ctx, grn_dat_cursor *c);
|
2769
|
+
GRN_API void grn_dat_cursor_close(grn_ctx *ctx, grn_dat_cursor *c);
|
2770
|
+
|
2771
|
+
GRN_API int grn_dat_cursor_get_key(grn_ctx *ctx, grn_dat_cursor *c, const void **key);
|
2772
|
+
GRN_API grn_rc grn_dat_cursor_delete(grn_ctx *ctx, grn_dat_cursor *c,
|
2773
|
+
grn_table_delete_optarg *optarg);
|
2774
|
+
|
2775
|
+
#define GRN_DAT_EACH(ctx,dat,id,key,key_size,block) do {\
|
2776
|
+
grn_dat_cursor *_sc = grn_dat_cursor_open(ctx, dat, NULL, 0, NULL, 0, 0, -1, 0);\
|
2777
|
+
if (_sc) {\
|
2778
|
+
grn_id id;\
|
2779
|
+
int *_ks = (key_size);\
|
2780
|
+
if (_ks) {\
|
2781
|
+
while ((id = grn_dat_cursor_next(ctx, _sc))) {\
|
2782
|
+
*(_ks) = grn_dat_cursor_get_key(ctx, _sc, (const void **)(key));\
|
2783
|
+
block\
|
2784
|
+
}\
|
2785
|
+
} else {\
|
2786
|
+
while ((id = grn_dat_cursor_next(ctx, _sc))) {\
|
2787
|
+
grn_dat_cursor_get_key(ctx, _sc, (const void **)(key));\
|
2788
|
+
block\
|
2789
|
+
}\
|
2790
|
+
}\
|
2791
|
+
grn_dat_cursor_close(ctx, _sc);\
|
2792
|
+
}\
|
2793
|
+
} while (0)
|
2794
|
+
|
2549
2795
|
#ifdef __cplusplus
|
2550
2796
|
}
|
2551
2797
|
#endif
|
Binary file
|
Binary file
|
Binary file
|
@@ -17,7 +17,7 @@ old_library='suggest.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libgroonga.la -lws2_32'
|
20
|
+
dependency_libs=' /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib/groonga/plugins/suggest'
|
41
|
+
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/suggest'
|
Binary file
|
Binary file
|
Binary file
|
@@ -17,7 +17,7 @@ old_library='mecab.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist/lib /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libmecab.la /home/kou/work/c/groonga.clean/packages/windows/dist/lib/libgroonga.la -lws2_32'
|
20
|
+
dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmecab.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist/lib/groonga/plugins/tokenizers'
|
41
|
+
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/tokenizers'
|
Binary file
|
Binary file
|
data/vendor/local/lib/libmecab.a
CHANGED
Binary file
|
Binary file
|
@@ -1,13 +1,14 @@
|
|
1
|
-
prefix=/home/kou/work/c/groonga.clean/packages/windows/dist
|
1
|
+
prefix=/home/kou/work/c/groonga.clean/packages/windows/dist-x86
|
2
2
|
exec_prefix=${prefix}
|
3
3
|
bindir=${exec_prefix}/bin
|
4
4
|
libdir=${exec_prefix}/lib
|
5
5
|
includedir=${prefix}/include
|
6
6
|
groonga=${bindir}/groonga.exe
|
7
7
|
groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset.exe
|
8
|
+
groonga_version=1.2.8
|
8
9
|
|
9
10
|
Name: Groonga
|
10
11
|
Description: An Embeddable Fulltext Search Engine
|
11
|
-
Version: 1.2.
|
12
|
+
Version: 1.2.8
|
12
13
|
Libs: -L${libdir} -lgroonga
|
13
14
|
Cflags: -I${includedir}/groonga
|
Binary file
|
Binary file
|