rroonga 1.3.0-x86-mingw32 → 1.3.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +33 -2
- data/benchmark/common.rb +2 -2
- data/benchmark/read-write-many-small-items.rb +71 -62
- data/benchmark/write-many-small-items.rb +61 -53
- data/ext/groonga/rb-grn-context.c +23 -5
- data/ext/groonga/rb-grn-index-column.c +2 -6
- data/ext/groonga/rb-grn-operator.c +31 -1
- data/ext/groonga/rb-grn-variable-size-column.c +77 -1
- data/ext/groonga/rb-grn.h +2 -11
- data/ext/groonga/rb-groonga.c +1 -2
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/command.rb +169 -0
- data/lib/groonga/context.rb +4 -124
- data/lib/groonga/dumper.rb +10 -8
- data/lib/groonga/record.rb +7 -0
- data/lib/groonga/schema.rb +98 -7
- data/rroonga-build.rb +3 -3
- data/test/{test-context-select.rb → test-command-select.rb} +3 -3
- data/test/test-record.rb +18 -1
- data/test/test-schema-dumper.rb +48 -0
- data/test/test-schema-type.rb +35 -0
- data/test/test-schema.rb +81 -11
- data/test/test-table-select.rb +49 -38
- data/test/test-variable-size-column.rb +30 -0
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +3 -2
- data/vendor/local/include/groonga/groonga.h +106 -78
- 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/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/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +5 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +42 -32
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/delete.txt +5 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/table_create.txt +5 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +4 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +8 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_distance.txt +42 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_in_circle.txt +26 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +102 -27
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +10 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +130 -21
- data/vendor/local/share/doc/groonga/en/html/_sources/output.txt +164 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +0 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +6 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +95 -116
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +1 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +1 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +1 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +13 -1
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +5 -5
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +11 -7
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +60 -52
- 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 +38 -35
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +38 -36
- 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 +14 -12
- 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 +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution.html +15 -13
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/expr.html +25 -25
- 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 +71 -36
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +53 -33
- 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 +22 -22
- data/vendor/local/share/doc/groonga/en/html/genindex.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/index.html +92 -87
- data/vendor/local/share/doc/groonga/en/html/install.html +109 -40
- data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/log.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news.html +233 -112
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +302 -0
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/reference.html +59 -55
- data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/spec.html +11 -11
- 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 +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest.html +7 -12
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +124 -164
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +14 -14
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +11 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/type.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +42 -32
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/delete.txt +5 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/table_create.txt +5 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +4 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +8 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_distance.txt +42 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_in_circle.txt +26 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +102 -27
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +10 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +130 -21
- data/vendor/local/share/doc/groonga/ja/html/_sources/output.txt +164 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +0 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +6 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +95 -116
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +1 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +1 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +1 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +13 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +11 -7
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +55 -47
- 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 +38 -35
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +38 -36
- 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 +10 -8
- 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 +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/expr.html +25 -25
- 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 +71 -36
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +53 -33
- 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 +22 -22
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/index.html +84 -79
- data/vendor/local/share/doc/groonga/ja/html/install.html +92 -16
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/log.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news.html +202 -99
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +287 -0
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/reference.html +59 -55
- data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/spec.html +11 -11
- 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 +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +7 -11
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +93 -115
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/type.html +31 -31
- data/vendor/local/share/doc/groonga/source/characteristic.txt +42 -32
- data/vendor/local/share/doc/groonga/source/commands/delete.txt +5 -1
- data/vendor/local/share/doc/groonga/source/commands/table_create.txt +5 -2
- data/vendor/local/share/doc/groonga/source/community.txt +4 -3
- data/vendor/local/share/doc/groonga/source/contribution.txt +8 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +8 -8
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +4 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +4 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +3 -15
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +2 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -7
- data/vendor/local/share/doc/groonga/source/functions/geo_distance.txt +42 -3
- data/vendor/local/share/doc/groonga/source/functions/geo_in_circle.txt +26 -1
- data/vendor/local/share/doc/groonga/source/index.txt +2 -2
- data/vendor/local/share/doc/groonga/source/install.txt +102 -27
- data/vendor/local/share/doc/groonga/source/limitations.txt +10 -10
- data/vendor/local/share/doc/groonga/source/news.txt +130 -21
- data/vendor/local/share/doc/groonga/source/output.txt +164 -0
- data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/source/suggest.txt +0 -5
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +6 -4
- data/vendor/local/share/doc/groonga/source/tutorial/drilldown.txt +1 -3
- data/vendor/local/share/doc/groonga/source/tutorial/index.txt +2 -1
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +95 -116
- data/vendor/local/share/doc/groonga/source/tutorial/match_columns.txt +1 -4
- data/vendor/local/share/doc/groonga/source/tutorial/micro_blog.txt +1 -4
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +3 -0
- data/vendor/local/share/doc/groonga/source/tutorial/patricia_trie.txt +1 -2
- data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +5 -0
- data/vendor/local/share/doc/groonga/source/tutorial/search.txt +3 -0
- data/vendor/local/share/doc/groonga/source/tutorial.txt +2 -2
- data/vendor/local/share/doc/groonga/source/type.txt +3 -3
- data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +1 -0
- data/vendor/local/share/groonga/html/admin/index.html +40 -0
- data/vendor/local/share/groonga/html/admin/js/jquery.flot-0.7.min.js +6 -0
- data/vendor/local/share/groonga/html/admin/js/jquery.flot.license.txt +22 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +560 -138
- data/vendor/local/share/man/man1/groonga.1 +637 -223
- metadata +887 -898
- data/ext/groonga/Makefile +0 -184
- data/ext/groonga/rb-grn-query.c +0 -260
- data/test/test-query.rb +0 -22
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>7.1. 実行ファイル — groonga v1.2.
|
12
|
+
<title>7.1. 実行ファイル — groonga v1.2.9 documentation</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.9',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
28
28
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
29
29
|
<link rel="shortcut icon" href="_static/favicon.ico"/>
|
30
|
-
<link rel="top" title="groonga v1.2.
|
30
|
+
<link rel="top" title="groonga v1.2.9 documentation" href="index.html" />
|
31
31
|
<link rel="up" title="7. リファレンスマニュアル" href="reference.html" />
|
32
32
|
<link rel="next" title="7.1.1. grnslap" href="executables/grnslap.html" />
|
33
33
|
<link rel="prev" title="7. リファレンスマニュアル" href="reference.html" />
|
@@ -62,7 +62,7 @@
|
|
62
62
|
<li class="right" >
|
63
63
|
<a href="reference.html" title="7. リファレンスマニュアル"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="index.html">groonga v1.2.
|
65
|
+
<li><a href="index.html">groonga v1.2.9 documentation</a> »</li>
|
66
66
|
<li><a href="reference.html" accesskey="U">7. リファレンスマニュアル</a> »</li>
|
67
67
|
</ul>
|
68
68
|
</div>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
<div id="searchbox" style="display: none">
|
107
107
|
<h3>Quick search</h3>
|
108
108
|
<form class="search" action="search.html" method="get">
|
109
|
-
<input type="text" name="q"
|
109
|
+
<input type="text" name="q" />
|
110
110
|
<input type="submit" value="Go" />
|
111
111
|
<input type="hidden" name="check_keywords" value="yes" />
|
112
112
|
<input type="hidden" name="area" value="default" />
|
@@ -132,12 +132,12 @@
|
|
132
132
|
<li class="right" >
|
133
133
|
<a href="reference.html" title="7. リファレンスマニュアル"
|
134
134
|
>previous</a> |</li>
|
135
|
-
<li><a href="index.html">groonga v1.2.
|
135
|
+
<li><a href="index.html">groonga v1.2.9 documentation</a> »</li>
|
136
136
|
<li><a href="reference.html" >7. リファレンスマニュアル</a> »</li>
|
137
137
|
</ul>
|
138
138
|
</div>
|
139
139
|
<div class="footer">
|
140
|
-
© Copyright 2009-
|
140
|
+
© Copyright 2009-2012, Brazil, Inc.
|
141
141
|
</div>
|
142
142
|
</body>
|
143
143
|
</html>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>7.
|
12
|
+
<title>7.6. grn_expr — groonga v1.2.9 documentation</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.9',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,10 +27,10 @@
|
|
27
27
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
28
28
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
29
29
|
<link rel="shortcut icon" href="_static/favicon.ico"/>
|
30
|
-
<link rel="top" title="groonga v1.2.
|
30
|
+
<link rel="top" title="groonga v1.2.9 documentation" href="index.html" />
|
31
31
|
<link rel="up" title="7. リファレンスマニュアル" href="reference.html" />
|
32
|
-
<link rel="next" title="7.
|
33
|
-
<link rel="prev" title="7.
|
32
|
+
<link rel="next" title="7.7. 組み込み関数一覧" href="functions.html" />
|
33
|
+
<link rel="prev" title="7.5. 疑似カラム (pseudo_column)" href="pseudo_column.html" />
|
34
34
|
</head>
|
35
35
|
<body>
|
36
36
|
<div class="header">
|
@@ -57,12 +57,12 @@
|
|
57
57
|
<a href="genindex.html" title="General Index"
|
58
58
|
accesskey="I">index</a></li>
|
59
59
|
<li class="right" >
|
60
|
-
<a href="functions.html" title="7.
|
60
|
+
<a href="functions.html" title="7.7. 組み込み関数一覧"
|
61
61
|
accesskey="N">next</a> |</li>
|
62
62
|
<li class="right" >
|
63
|
-
<a href="pseudo_column.html" title="7.
|
63
|
+
<a href="pseudo_column.html" title="7.5. 疑似カラム (pseudo_column)"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="index.html">groonga v1.2.
|
65
|
+
<li><a href="index.html">groonga v1.2.9 documentation</a> »</li>
|
66
66
|
<li><a href="reference.html" accesskey="U">7. リファレンスマニュアル</a> »</li>
|
67
67
|
</ul>
|
68
68
|
</div>
|
@@ -73,19 +73,19 @@
|
|
73
73
|
<div class="body">
|
74
74
|
|
75
75
|
<div class="section" id="grn-expr">
|
76
|
-
<h1>7.
|
76
|
+
<h1>7.6. grn_expr<a class="headerlink" href="#grn-expr" title="Permalink to this headline">¶</a></h1>
|
77
77
|
<div class="section" id="id1">
|
78
|
-
<h2>7.
|
78
|
+
<h2>7.6.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
79
79
|
<p>grn_expr - 検索条件やデータベースへの操作を表現するデータ構造(読み方:"ぐるんしき")</p>
|
80
80
|
</div>
|
81
81
|
<div class="section" id="id2">
|
82
|
-
<h2>7.
|
82
|
+
<h2>7.6.2. 説明<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
|
83
83
|
<p>grn_exprは、検索条件やデータベースへの操作を表現するために使用されるデータ構造の形式です。</p>
|
84
84
|
<p>データベースの中から特定の条件を満たすレコードを取り出すために、様々な条件をand,or,notなどの演算子で結合して自由に表現することができます。grn_exprは、一連のAPI関数を呼ぶことによって組み立てることができます。特定の文字列形式には依存していません。組み込みコマンドselectのqueryパラメータでは、検索エンジンのユーザがフォームで入力する文字列を直接受け取ることを想定して、文字列からgrn_exprを生成しています。また、多くの組み込みコマンドで共通に使用するために、ECMAScript形式の文字列からgrn_exprを生成するAPI関数grn_expr_parse()を用意しています。grn_expr_parseでパースできる文字列を特にscript形式のgrn_exprと呼びます。</p>
|
85
85
|
<p>grn_exprを使うことによって非常に柔軟に検索条件を記述することができます。類似文書検索や近傍検索のような高度な検索もすべてgrn_exprによって記述できます。また、全文検索クエリにおいて、特定の文字列を含むレコードのスコアを細かく制御したり、検索結果数の多寡に応じてより検索漏れの少ないアルゴリズムで再検索するような機能も、grn_exprとgrn_table_select()API関数を組み合わせることによって自由に定義できます。</p>
|
86
86
|
</div>
|
87
87
|
<div class="section" id="scriptgrn-expr">
|
88
|
-
<h2>7.
|
88
|
+
<h2>7.6.3. script形式のgrn_expr<a class="headerlink" href="#scriptgrn-expr" title="Permalink to this headline">¶</a></h2>
|
89
89
|
<p>ECMAScript風の構文で検索条件やレコードへの操作を記述します。</p>
|
90
90
|
<p>式中のIDENTIFIER(識別子)は、以下のいずれかを指します。</p>
|
91
91
|
<table class="docutils field-list" frame="void" rules="none">
|
@@ -102,7 +102,7 @@
|
|
102
102
|
</table>
|
103
103
|
</div>
|
104
104
|
<div class="section" id="id3">
|
105
|
-
<h2>7.
|
105
|
+
<h2>7.6.4. 例<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
|
106
106
|
<p>script形式でcolumn1の値が'hoge'に等しいという条件</p>
|
107
107
|
<blockquote>
|
108
108
|
<div>column1 == "hoge"</div></blockquote>
|
@@ -118,21 +118,21 @@
|
|
118
118
|
<div class="sphinxsidebarwrapper">
|
119
119
|
<h3><a href="index.html">Table Of Contents</a></h3>
|
120
120
|
<ul>
|
121
|
-
<li><a class="reference internal" href="#">7.
|
122
|
-
<li><a class="reference internal" href="#id1">7.
|
123
|
-
<li><a class="reference internal" href="#id2">7.
|
124
|
-
<li><a class="reference internal" href="#scriptgrn-expr">7.
|
125
|
-
<li><a class="reference internal" href="#id3">7.
|
121
|
+
<li><a class="reference internal" href="#">7.6. grn_expr</a><ul>
|
122
|
+
<li><a class="reference internal" href="#id1">7.6.1. 名前</a></li>
|
123
|
+
<li><a class="reference internal" href="#id2">7.6.2. 説明</a></li>
|
124
|
+
<li><a class="reference internal" href="#scriptgrn-expr">7.6.3. script形式のgrn_expr</a></li>
|
125
|
+
<li><a class="reference internal" href="#id3">7.6.4. 例</a></li>
|
126
126
|
</ul>
|
127
127
|
</li>
|
128
128
|
</ul>
|
129
129
|
|
130
130
|
<h4>Previous topic</h4>
|
131
131
|
<p class="topless"><a href="pseudo_column.html"
|
132
|
-
title="previous chapter">7.
|
132
|
+
title="previous chapter">7.5. 疑似カラム (pseudo_column)</a></p>
|
133
133
|
<h4>Next topic</h4>
|
134
134
|
<p class="topless"><a href="functions.html"
|
135
|
-
title="next chapter">7.
|
135
|
+
title="next chapter">7.7. 組み込み関数一覧</a></p>
|
136
136
|
<h3>This Page</h3>
|
137
137
|
<ul class="this-page-menu">
|
138
138
|
<li><a href="_sources/expr.txt"
|
@@ -141,7 +141,7 @@
|
|
141
141
|
<div id="searchbox" style="display: none">
|
142
142
|
<h3>Quick search</h3>
|
143
143
|
<form class="search" action="search.html" method="get">
|
144
|
-
<input type="text" name="q"
|
144
|
+
<input type="text" name="q" />
|
145
145
|
<input type="submit" value="Go" />
|
146
146
|
<input type="hidden" name="check_keywords" value="yes" />
|
147
147
|
<input type="hidden" name="area" value="default" />
|
@@ -162,17 +162,17 @@
|
|
162
162
|
<a href="genindex.html" title="General Index"
|
163
163
|
>index</a></li>
|
164
164
|
<li class="right" >
|
165
|
-
<a href="functions.html" title="7.
|
165
|
+
<a href="functions.html" title="7.7. 組み込み関数一覧"
|
166
166
|
>next</a> |</li>
|
167
167
|
<li class="right" >
|
168
|
-
<a href="pseudo_column.html" title="7.
|
168
|
+
<a href="pseudo_column.html" title="7.5. 疑似カラム (pseudo_column)"
|
169
169
|
>previous</a> |</li>
|
170
|
-
<li><a href="index.html">groonga v1.2.
|
170
|
+
<li><a href="index.html">groonga v1.2.9 documentation</a> »</li>
|
171
171
|
<li><a href="reference.html" >7. リファレンスマニュアル</a> »</li>
|
172
172
|
</ul>
|
173
173
|
</div>
|
174
174
|
<div class="footer">
|
175
|
-
© Copyright 2009-
|
175
|
+
© Copyright 2009-2012, Brazil, Inc.
|
176
176
|
</div>
|
177
177
|
</body>
|
178
178
|
</html>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>7.
|
12
|
+
<title>7.7.1. edit_distance — groonga v1.2.9 documentation</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.9',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,10 +27,10 @@
|
|
27
27
|
<script type="text/javascript" src="../_static/underscore.js"></script>
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
30
|
-
<link rel="top" title="groonga v1.2.
|
31
|
-
<link rel="up" title="7.
|
32
|
-
<link rel="next" title="7.
|
33
|
-
<link rel="prev" title="7.
|
30
|
+
<link rel="top" title="groonga v1.2.9 documentation" href="../index.html" />
|
31
|
+
<link rel="up" title="7.7. 組み込み関数一覧" href="../functions.html" />
|
32
|
+
<link rel="next" title="7.7.2. geo_distance" href="geo_distance.html" />
|
33
|
+
<link rel="prev" title="7.7. 組み込み関数一覧" href="../functions.html" />
|
34
34
|
</head>
|
35
35
|
<body>
|
36
36
|
<div class="header">
|
@@ -57,14 +57,14 @@
|
|
57
57
|
<a href="../genindex.html" title="General Index"
|
58
58
|
accesskey="I">index</a></li>
|
59
59
|
<li class="right" >
|
60
|
-
<a href="geo_distance.html" title="7.
|
60
|
+
<a href="geo_distance.html" title="7.7.2. geo_distance"
|
61
61
|
accesskey="N">next</a> |</li>
|
62
62
|
<li class="right" >
|
63
|
-
<a href="../functions.html" title="7.
|
63
|
+
<a href="../functions.html" title="7.7. 組み込み関数一覧"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="../index.html">groonga v1.2.
|
65
|
+
<li><a href="../index.html">groonga v1.2.9 documentation</a> »</li>
|
66
66
|
<li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li>
|
67
|
-
<li><a href="../functions.html" accesskey="U">7.
|
67
|
+
<li><a href="../functions.html" accesskey="U">7.7. 組み込み関数一覧</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
70
70
|
|
@@ -74,24 +74,24 @@
|
|
74
74
|
<div class="body">
|
75
75
|
|
76
76
|
<div class="section" id="edit-distance">
|
77
|
-
<h1>7.
|
77
|
+
<h1>7.7.1. edit_distance<a class="headerlink" href="#edit-distance" title="Permalink to this headline">¶</a></h1>
|
78
78
|
<div class="section" id="id1">
|
79
|
-
<h2>7.
|
79
|
+
<h2>7.7.1.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
80
80
|
<p>edit_distance - 指定した2つの文字列の編集距離を計算する</p>
|
81
81
|
</div>
|
82
82
|
<div class="section" id="id2">
|
83
|
-
<h2>7.
|
83
|
+
<h2>7.7.1.2. 書式<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
|
84
84
|
<div class="highlight-none"><div class="highlight"><pre>edit_distance(string1, string2)
|
85
85
|
</pre></div>
|
86
86
|
</div>
|
87
87
|
</div>
|
88
88
|
<div class="section" id="id3">
|
89
|
-
<h2>7.
|
89
|
+
<h2>7.7.1.3. 説明<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
|
90
90
|
<p>groonga組込関数の一つであるedit_distanceについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。</p>
|
91
91
|
<p>edit_distance() 関数は、string1に指定した文字列とstring2に指定した文字列の間の編集距離を求めます。</p>
|
92
92
|
</div>
|
93
93
|
<div class="section" id="id4">
|
94
|
-
<h2>7.
|
94
|
+
<h2>7.7.1.4. 引数<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
|
95
95
|
<p><tt class="docutils literal"><span class="pre">string1</span></tt></p>
|
96
96
|
<blockquote>
|
97
97
|
<div>文字列を指定します</div></blockquote>
|
@@ -100,11 +100,11 @@
|
|
100
100
|
<div>もうひとつの文字列を指定します</div></blockquote>
|
101
101
|
</div>
|
102
102
|
<div class="section" id="id5">
|
103
|
-
<h2>7.
|
103
|
+
<h2>7.7.1.5. 返値<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
|
104
104
|
<p>指定した2つ文字列の編集距離をUint32型の値として返します。</p>
|
105
105
|
</div>
|
106
106
|
<div class="section" id="id6">
|
107
|
-
<h2>7.
|
107
|
+
<h2>7.7.1.6. 例<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
|
108
108
|
<div class="highlight-none"><div class="highlight"><pre>edit_distance(title, "hoge")
|
109
109
|
1
|
110
110
|
</pre></div>
|
@@ -120,23 +120,23 @@
|
|
120
120
|
<div class="sphinxsidebarwrapper">
|
121
121
|
<h3><a href="../index.html">Table Of Contents</a></h3>
|
122
122
|
<ul>
|
123
|
-
<li><a class="reference internal" href="#">7.
|
124
|
-
<li><a class="reference internal" href="#id1">7.
|
125
|
-
<li><a class="reference internal" href="#id2">7.
|
126
|
-
<li><a class="reference internal" href="#id3">7.
|
127
|
-
<li><a class="reference internal" href="#id4">7.
|
128
|
-
<li><a class="reference internal" href="#id5">7.
|
129
|
-
<li><a class="reference internal" href="#id6">7.
|
123
|
+
<li><a class="reference internal" href="#">7.7.1. edit_distance</a><ul>
|
124
|
+
<li><a class="reference internal" href="#id1">7.7.1.1. 名前</a></li>
|
125
|
+
<li><a class="reference internal" href="#id2">7.7.1.2. 書式</a></li>
|
126
|
+
<li><a class="reference internal" href="#id3">7.7.1.3. 説明</a></li>
|
127
|
+
<li><a class="reference internal" href="#id4">7.7.1.4. 引数</a></li>
|
128
|
+
<li><a class="reference internal" href="#id5">7.7.1.5. 返値</a></li>
|
129
|
+
<li><a class="reference internal" href="#id6">7.7.1.6. 例</a></li>
|
130
130
|
</ul>
|
131
131
|
</li>
|
132
132
|
</ul>
|
133
133
|
|
134
134
|
<h4>Previous topic</h4>
|
135
135
|
<p class="topless"><a href="../functions.html"
|
136
|
-
title="previous chapter">7.
|
136
|
+
title="previous chapter">7.7. 組み込み関数一覧</a></p>
|
137
137
|
<h4>Next topic</h4>
|
138
138
|
<p class="topless"><a href="geo_distance.html"
|
139
|
-
title="next chapter">7.
|
139
|
+
title="next chapter">7.7.2. geo_distance</a></p>
|
140
140
|
<h3>This Page</h3>
|
141
141
|
<ul class="this-page-menu">
|
142
142
|
<li><a href="../_sources/functions/edit_distance.txt"
|
@@ -145,7 +145,7 @@
|
|
145
145
|
<div id="searchbox" style="display: none">
|
146
146
|
<h3>Quick search</h3>
|
147
147
|
<form class="search" action="../search.html" method="get">
|
148
|
-
<input type="text" name="q"
|
148
|
+
<input type="text" name="q" />
|
149
149
|
<input type="submit" value="Go" />
|
150
150
|
<input type="hidden" name="check_keywords" value="yes" />
|
151
151
|
<input type="hidden" name="area" value="default" />
|
@@ -166,18 +166,18 @@
|
|
166
166
|
<a href="../genindex.html" title="General Index"
|
167
167
|
>index</a></li>
|
168
168
|
<li class="right" >
|
169
|
-
<a href="geo_distance.html" title="7.
|
169
|
+
<a href="geo_distance.html" title="7.7.2. geo_distance"
|
170
170
|
>next</a> |</li>
|
171
171
|
<li class="right" >
|
172
|
-
<a href="../functions.html" title="7.
|
172
|
+
<a href="../functions.html" title="7.7. 組み込み関数一覧"
|
173
173
|
>previous</a> |</li>
|
174
|
-
<li><a href="../index.html">groonga v1.2.
|
174
|
+
<li><a href="../index.html">groonga v1.2.9 documentation</a> »</li>
|
175
175
|
<li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li>
|
176
|
-
<li><a href="../functions.html" >7.
|
176
|
+
<li><a href="../functions.html" >7.7. 組み込み関数一覧</a> »</li>
|
177
177
|
</ul>
|
178
178
|
</div>
|
179
179
|
<div class="footer">
|
180
|
-
© Copyright 2009-
|
180
|
+
© Copyright 2009-2012, Brazil, Inc.
|
181
181
|
</div>
|
182
182
|
</body>
|
183
183
|
</html>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>7.
|
12
|
+
<title>7.7.2. geo_distance — groonga v1.2.9 documentation</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '1.2.
|
20
|
+
VERSION: '1.2.9',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -27,10 +27,10 @@
|
|
27
27
|
<script type="text/javascript" src="../_static/underscore.js"></script>
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
30
|
-
<link rel="top" title="groonga v1.2.
|
31
|
-
<link rel="up" title="7.
|
32
|
-
<link rel="next" title="7.
|
33
|
-
<link rel="prev" title="7.
|
30
|
+
<link rel="top" title="groonga v1.2.9 documentation" href="../index.html" />
|
31
|
+
<link rel="up" title="7.7. 組み込み関数一覧" href="../functions.html" />
|
32
|
+
<link rel="next" title="7.7.3. geo_in_circle" href="geo_in_circle.html" />
|
33
|
+
<link rel="prev" title="7.7.1. edit_distance" href="edit_distance.html" />
|
34
34
|
</head>
|
35
35
|
<body>
|
36
36
|
<div class="header">
|
@@ -57,14 +57,14 @@
|
|
57
57
|
<a href="../genindex.html" title="General Index"
|
58
58
|
accesskey="I">index</a></li>
|
59
59
|
<li class="right" >
|
60
|
-
<a href="geo_in_circle.html" title="7.
|
60
|
+
<a href="geo_in_circle.html" title="7.7.3. geo_in_circle"
|
61
61
|
accesskey="N">next</a> |</li>
|
62
62
|
<li class="right" >
|
63
|
-
<a href="edit_distance.html" title="7.
|
63
|
+
<a href="edit_distance.html" title="7.7.1. edit_distance"
|
64
64
|
accesskey="P">previous</a> |</li>
|
65
|
-
<li><a href="../index.html">groonga v1.2.
|
65
|
+
<li><a href="../index.html">groonga v1.2.9 documentation</a> »</li>
|
66
66
|
<li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li>
|
67
|
-
<li><a href="../functions.html" accesskey="U">7.
|
67
|
+
<li><a href="../functions.html" accesskey="U">7.7. 組み込み関数一覧</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
70
70
|
|
@@ -74,40 +74,75 @@
|
|
74
74
|
<div class="body">
|
75
75
|
|
76
76
|
<div class="section" id="geo-distance">
|
77
|
-
<h1>7.
|
77
|
+
<h1>7.7.2. geo_distance<a class="headerlink" href="#geo-distance" title="Permalink to this headline">¶</a></h1>
|
78
78
|
<div class="section" id="id1">
|
79
|
-
<h2>7.
|
79
|
+
<h2>7.7.2.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
80
80
|
<p>geo_distance - 指定した2点の距離を計算する</p>
|
81
81
|
</div>
|
82
82
|
<div class="section" id="id2">
|
83
|
-
<h2>7.
|
84
|
-
<div class="highlight-none"><div class="highlight"><pre>geo_distance(point1, point2)
|
83
|
+
<h2>7.7.2.2. 書式<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
|
84
|
+
<div class="highlight-none"><div class="highlight"><pre>geo_distance(point1, point2[, approximate_type])
|
85
85
|
</pre></div>
|
86
86
|
</div>
|
87
87
|
</div>
|
88
88
|
<div class="section" id="id3">
|
89
|
-
<h2>7.
|
89
|
+
<h2>7.7.2.3. 説明<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
|
90
90
|
<p>groonga組込関数の一つであるgeo_distanceについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。</p>
|
91
|
-
<p>geo_distance() 関数は、point1に指定した座標とpoint2に指定した座標の間の距離(近似値)
|
92
|
-
|
91
|
+
<p>geo_distance() 関数は、point1に指定した座標とpoint2に指定した座標の間の距離(近似値)を求めます。</p>
|
92
|
+
<p>... note:</p>
|
93
|
+
<div class="highlight-none"><div class="highlight"><pre>geo_distance()の他に、距離計算アルゴリズムの異なる、geo_distance2()、geo_distance3()がありましたが、1.2.9から非推奨になりました。 ``geo_distance2()`` の代わりに ``geo_distance(point1, point2, "sphere")`` を、 ``geo_distance3()`` の代わりに ``geo_distance(point1, point2, "ellipsoid")`` を使ってください。
|
94
|
+
</pre></div>
|
95
|
+
</div>
|
93
96
|
</div>
|
94
97
|
<div class="section" id="id4">
|
95
|
-
<h2>7.
|
98
|
+
<h2>7.7.2.4. 引数<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
|
96
99
|
<p><tt class="docutils literal"><span class="pre">point1</span></tt></p>
|
97
100
|
<blockquote>
|
98
101
|
<div>距離を求める2点のうち一つを指定します。GeoPoint型の値を指定できます。 <a class="footnote-reference" href="#id8" id="id5">[1]</a></div></blockquote>
|
99
102
|
<p><tt class="docutils literal"><span class="pre">point2</span></tt></p>
|
100
103
|
<blockquote>
|
101
104
|
<div>距離を求める2点のうちもう一つを指定します。GeoPoint型の値、あるいは座標を示す文字列を指定できます。</div></blockquote>
|
105
|
+
<p><tt class="docutils literal"><span class="pre">approximate_type</span></tt></p>
|
106
|
+
<blockquote>
|
107
|
+
<div><p>距離を求めるために地形をどのように近似するかを指定します。指定できる値は以下の通りです。</p>
|
108
|
+
<p><tt class="docutils literal"><span class="pre">"rectangle"</span></tt></p>
|
109
|
+
<blockquote>
|
110
|
+
<div><p>方形近似で近似します。単純な計算式で距離を求めることができるため高速ですが、極付近では誤差が大きくなります。</p>
|
111
|
+
<p><tt class="docutils literal"><span class="pre">"rect"</span></tt> と省略して指定することもできます。</p>
|
112
|
+
<p>この近似方法がデフォルト値です。 <tt class="docutils literal"><span class="pre">approximate_type</span></tt> を省略した場合は方形近似になります。</p>
|
113
|
+
</div></blockquote>
|
114
|
+
<p><tt class="docutils literal"><span class="pre">"sphere"</span></tt></p>
|
115
|
+
<blockquote>
|
116
|
+
<div><p>球面近似で近似します。 <tt class="docutils literal"><span class="pre">"rectangle"</span></tt> よりも遅くなりますが、誤差は小さいです。</p>
|
117
|
+
<p><tt class="docutils literal"><span class="pre">"sphr"</span></tt> と省略して指定することもできます。</p>
|
118
|
+
</div></blockquote>
|
119
|
+
<p><tt class="docutils literal"><span class="pre">"ellipsoid"</span></tt></p>
|
120
|
+
<blockquote>
|
121
|
+
<div><p>楕円体近似で近似します。距離の計算にはヒュベニの距離計算式を用います。 <tt class="docutils literal"><span class="pre">"sphere"</span></tt> よりも遅くなりますが、誤差は小さくなります。</p>
|
122
|
+
<p><tt class="docutils literal"><span class="pre">"ellip"</span></tt> と省略して指定することもできます。</p>
|
123
|
+
</div></blockquote>
|
124
|
+
</div></blockquote>
|
102
125
|
</div>
|
103
126
|
<div class="section" id="id6">
|
104
|
-
<h2>7.
|
127
|
+
<h2>7.7.2.5. 返値<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
|
105
128
|
<p>指定した2点の距離をFloat型の値(単位:メートル)として返します。</p>
|
106
129
|
</div>
|
107
130
|
<div class="section" id="id7">
|
108
|
-
<h2>7.
|
131
|
+
<h2>7.7.2.6. 例<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2>
|
109
132
|
<div class="highlight-none"><div class="highlight"><pre>geo_distance(pos, "150x150")
|
110
|
-
100
|
133
|
+
100.0
|
134
|
+
|
135
|
+
# 方形近似を利用
|
136
|
+
geo_distance(pos, "150x150", "rectangle")
|
137
|
+
100.0
|
138
|
+
|
139
|
+
# 球面近似を利用
|
140
|
+
geo_distance(pos, "150x150", "sphere")
|
141
|
+
100.0
|
142
|
+
|
143
|
+
# 楕円体近似を利用
|
144
|
+
geo_distance(pos, "150x150", "ellipsoid")
|
145
|
+
100.0
|
111
146
|
</pre></div>
|
112
147
|
</div>
|
113
148
|
<p class="rubric">脚注</p>
|
@@ -128,23 +163,23 @@ geo_distance()の他に、距離計算アルゴリズムの異なる、geo_dista
|
|
128
163
|
<div class="sphinxsidebarwrapper">
|
129
164
|
<h3><a href="../index.html">Table Of Contents</a></h3>
|
130
165
|
<ul>
|
131
|
-
<li><a class="reference internal" href="#">7.
|
132
|
-
<li><a class="reference internal" href="#id1">7.
|
133
|
-
<li><a class="reference internal" href="#id2">7.
|
134
|
-
<li><a class="reference internal" href="#id3">7.
|
135
|
-
<li><a class="reference internal" href="#id4">7.
|
136
|
-
<li><a class="reference internal" href="#id6">7.
|
137
|
-
<li><a class="reference internal" href="#id7">7.
|
166
|
+
<li><a class="reference internal" href="#">7.7.2. geo_distance</a><ul>
|
167
|
+
<li><a class="reference internal" href="#id1">7.7.2.1. 名前</a></li>
|
168
|
+
<li><a class="reference internal" href="#id2">7.7.2.2. 書式</a></li>
|
169
|
+
<li><a class="reference internal" href="#id3">7.7.2.3. 説明</a></li>
|
170
|
+
<li><a class="reference internal" href="#id4">7.7.2.4. 引数</a></li>
|
171
|
+
<li><a class="reference internal" href="#id6">7.7.2.5. 返値</a></li>
|
172
|
+
<li><a class="reference internal" href="#id7">7.7.2.6. 例</a></li>
|
138
173
|
</ul>
|
139
174
|
</li>
|
140
175
|
</ul>
|
141
176
|
|
142
177
|
<h4>Previous topic</h4>
|
143
178
|
<p class="topless"><a href="edit_distance.html"
|
144
|
-
title="previous chapter">7.
|
179
|
+
title="previous chapter">7.7.1. edit_distance</a></p>
|
145
180
|
<h4>Next topic</h4>
|
146
181
|
<p class="topless"><a href="geo_in_circle.html"
|
147
|
-
title="next chapter">7.
|
182
|
+
title="next chapter">7.7.3. geo_in_circle</a></p>
|
148
183
|
<h3>This Page</h3>
|
149
184
|
<ul class="this-page-menu">
|
150
185
|
<li><a href="../_sources/functions/geo_distance.txt"
|
@@ -153,7 +188,7 @@ geo_distance()の他に、距離計算アルゴリズムの異なる、geo_dista
|
|
153
188
|
<div id="searchbox" style="display: none">
|
154
189
|
<h3>Quick search</h3>
|
155
190
|
<form class="search" action="../search.html" method="get">
|
156
|
-
<input type="text" name="q"
|
191
|
+
<input type="text" name="q" />
|
157
192
|
<input type="submit" value="Go" />
|
158
193
|
<input type="hidden" name="check_keywords" value="yes" />
|
159
194
|
<input type="hidden" name="area" value="default" />
|
@@ -174,18 +209,18 @@ geo_distance()の他に、距離計算アルゴリズムの異なる、geo_dista
|
|
174
209
|
<a href="../genindex.html" title="General Index"
|
175
210
|
>index</a></li>
|
176
211
|
<li class="right" >
|
177
|
-
<a href="geo_in_circle.html" title="7.
|
212
|
+
<a href="geo_in_circle.html" title="7.7.3. geo_in_circle"
|
178
213
|
>next</a> |</li>
|
179
214
|
<li class="right" >
|
180
|
-
<a href="edit_distance.html" title="7.
|
215
|
+
<a href="edit_distance.html" title="7.7.1. edit_distance"
|
181
216
|
>previous</a> |</li>
|
182
|
-
<li><a href="../index.html">groonga v1.2.
|
217
|
+
<li><a href="../index.html">groonga v1.2.9 documentation</a> »</li>
|
183
218
|
<li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li>
|
184
|
-
<li><a href="../functions.html" >7.
|
219
|
+
<li><a href="../functions.html" >7.7. 組み込み関数一覧</a> »</li>
|
185
220
|
</ul>
|
186
221
|
</div>
|
187
222
|
<div class="footer">
|
188
|
-
© Copyright 2009-
|
223
|
+
© Copyright 2009-2012, Brazil, Inc.
|
189
224
|
</div>
|
190
225
|
</body>
|
191
226
|
</html>
|