rroonga 3.0.8-x86-mingw32 → 3.0.9-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/doc/text/news.textile +13 -1
 - data/ext/groonga/rb-grn-index-column.c +4 -0
 - data/ext/groonga/rb-grn-object.c +2 -3
 - data/ext/groonga/rb-grn.h +1 -1
 - data/lib/1.9/groonga.so +0 -0
 - data/lib/2.0/groonga.so +0 -0
 - data/lib/2.1/groonga.so +0 -0
 - data/lib/groonga/schema.rb +1 -1
 - data/rroonga-build.rb +1 -1
 - data/rroonga.gemspec +1 -1
 - data/test/test-database.rb +74 -0
 - data/test/test-index-column.rb +22 -0
 - data/vendor/local/bin/groonga-benchmark.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/libmsgpack-3.dll +0 -0
 - data/vendor/local/bin/libmsgpackc-2.dll +0 -0
 - data/vendor/local/bin/mecab-config +0 -0
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +0 -0
 - 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 +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.la +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/groonga/plugins/tokenizers/mecab.la +0 -0
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libgroonga.la +0 -0
 - data/vendor/local/lib/libmecab.a +0 -0
 - data/vendor/local/lib/libmecab.dll.a +0 -0
 - data/vendor/local/lib/libmecab.la +0 -0
 - data/vendor/local/lib/libmsgpack.a +0 -0
 - data/vendor/local/lib/libmsgpack.dll.a +0 -0
 - data/vendor/local/lib/libmsgpack.la +0 -0
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libmsgpackc.la +0 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
 - data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
 - data/vendor/local/sbin/groonga-httpd-restart +0 -0
 - data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/document.txt +3 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +0 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +15 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +43 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +54 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +38 -30
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +81 -10
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +13 -19
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +71 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +7 -6
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +87 -33
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-create-dataset.txt +15 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +68 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +40 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +0 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +176 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +69 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/mmap_cannot_allocate_memory.txt +45 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/basic.css +0 -4
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/development.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +127 -7
 - data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/index.html +54 -42
 - data/vendor/local/share/doc/groonga/en/html/install.html +7 -6
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +20 -8
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +46 -10
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news.html +226 -165
 - 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/1.2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +46 -36
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +35 -35
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +20 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +16 -15
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +48 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +95 -14
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +24 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +196 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +90 -90
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +27 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +29 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +31 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +47 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +27 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +29 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +45 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +25 -25
 - data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +61 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +24 -12
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +221 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +174 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +7 -9
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +11 -11
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +290 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +9 -9
 - 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/server.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest.html +6 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +194 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +10 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +167 -0
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/document.txt +3 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +0 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +15 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +43 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +54 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +38 -30
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +81 -10
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +13 -19
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +71 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +7 -6
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +87 -33
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-create-dataset.txt +15 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +68 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +40 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +0 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +176 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +69 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/mmap_cannot_allocate_memory.txt +45 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +0 -4
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/community.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/development.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +127 -7
 - data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/index.html +55 -42
 - data/vendor/local/share/doc/groonga/ja/html/install.html +8 -7
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +17 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +43 -11
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +15 -15
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news.html +245 -169
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +47 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +36 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +21 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +17 -16
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +52 -48
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +93 -11
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +24 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +196 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +91 -91
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +48 -48
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +44 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +8 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +56 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +26 -13
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +222 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +175 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +8 -10
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +12 -12
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +289 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +10 -10
 - 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/server.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/suggest.html +7 -6
 - data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +195 -6
 - data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +11 -6
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +170 -0
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +6 -6
 - data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +0 -0
 - data/vendor/local/share/man/ja/man1/groonga.1 +1152 -241
 - data/vendor/local/share/man/man1/groonga.1 +1215 -269
 - metadata +150 -130
 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>4.8. パトリシア木による前方一致検索 —  
     | 
| 
      
 10 
     | 
    
         
            +
                <title>4.8. パトリシア木による前方一致検索 — Groonga v3.0.9ドキュメント</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     '3.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '3.0.9',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -26,7 +26,7 @@ 
     | 
|
| 
       26 
26 
     | 
    
         
             
                <script type="text/javascript" src="../_static/doctools.js"></script>
         
     | 
| 
       27 
27 
     | 
    
         
             
                <script type="text/javascript" src="../_static/translations.js"></script>
         
     | 
| 
       28 
28 
     | 
    
         
             
                <link rel="shortcut icon" href="../_static/favicon.ico"/>
         
     | 
| 
       29 
     | 
    
         
            -
                <link rel="top" title=" 
     | 
| 
      
 29 
     | 
    
         
            +
                <link rel="top" title="Groonga v3.0.9ドキュメント" href="../index.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="up" title="4. チュートリアル" href="../tutorial.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="next" title="4.9. 全文検索の語彙表に対する追加情報" href="lexicon.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="prev" title="4.7. match_columnsパラメータ" href="match_columns.html" /> 
         
     | 
| 
         @@ -61,7 +61,7 @@ 
     | 
|
| 
       61 
61 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       62 
62 
     | 
    
         
             
                      <a href="match_columns.html" title="4.7. match_columnsパラメータ"
         
     | 
| 
       63 
63 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       64 
     | 
    
         
            -
                    <li><a href="../index.html"> 
     | 
| 
      
 64 
     | 
    
         
            +
                    <li><a href="../index.html">Groonga v3.0.9ドキュメント</a> »</li>
         
     | 
| 
       65 
65 
     | 
    
         
             
                      <li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li> 
         
     | 
| 
       66 
66 
     | 
    
         
             
                  </ul>
         
     | 
| 
       67 
67 
     | 
    
         
             
                </div>  
         
     | 
| 
         @@ -259,7 +259,7 @@ select --table PatSuffix --filter '_key @$ "ゆき" && ori 
     | 
|
| 
       259 
259 
     | 
    
         
             
              <h3>このページ</h3>
         
     | 
| 
       260 
260 
     | 
    
         
             
              <ul class="this-page-menu">
         
     | 
| 
       261 
261 
     | 
    
         
             
                <li><a href="../_sources/tutorial/patricia_trie.txt"
         
     | 
| 
       262 
     | 
    
         
            -
                       rel="nofollow" 
     | 
| 
      
 262 
     | 
    
         
            +
                       rel="nofollow">ソースコードを表示</a></li>
         
     | 
| 
       263 
263 
     | 
    
         
             
              </ul>
         
     | 
| 
       264 
264 
     | 
    
         
             
            <div id="searchbox" style="display: none">
         
     | 
| 
       265 
265 
     | 
    
         
             
              <h3>クイック検索</h3>
         
     | 
| 
         @@ -290,7 +290,7 @@ select --table PatSuffix --filter '_key @$ "ゆき" && ori 
     | 
|
| 
       290 
290 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       291 
291 
     | 
    
         
             
                      <a href="match_columns.html" title="4.7. match_columnsパラメータ"
         
     | 
| 
       292 
292 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       293 
     | 
    
         
            -
                    <li><a href="../index.html"> 
     | 
| 
      
 293 
     | 
    
         
            +
                    <li><a href="../index.html">Groonga v3.0.9ドキュメント</a> »</li>
         
     | 
| 
       294 
294 
     | 
    
         
             
                      <li><a href="../tutorial.html" >4. チュートリアル</a> »</li> 
         
     | 
| 
       295 
295 
     | 
    
         
             
                  </ul>
         
     | 
| 
       296 
296 
     | 
    
         
             
                </div>
         
     | 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>4.11. クエリ拡張 —  
     | 
| 
      
 10 
     | 
    
         
            +
                <title>4.11. クエリ拡張 — Groonga v3.0.9ドキュメント</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     '3.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '3.0.9',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -26,7 +26,7 @@ 
     | 
|
| 
       26 
26 
     | 
    
         
             
                <script type="text/javascript" src="../_static/doctools.js"></script>
         
     | 
| 
       27 
27 
     | 
    
         
             
                <script type="text/javascript" src="../_static/translations.js"></script>
         
     | 
| 
       28 
28 
     | 
    
         
             
                <link rel="shortcut icon" href="../_static/favicon.ico"/>
         
     | 
| 
       29 
     | 
    
         
            -
                <link rel="top" title=" 
     | 
| 
      
 29 
     | 
    
         
            +
                <link rel="top" title="Groonga v3.0.9ドキュメント" href="../index.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="up" title="4. チュートリアル" href="../tutorial.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="next" title="5. サジェスト" href="../suggest.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="prev" title="4.10. マイクロブログ検索システムの作成" href="micro_blog.html" /> 
         
     | 
| 
         @@ -61,7 +61,7 @@ 
     | 
|
| 
       61 
61 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       62 
62 
     | 
    
         
             
                      <a href="micro_blog.html" title="4.10. マイクロブログ検索システムの作成"
         
     | 
| 
       63 
63 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       64 
     | 
    
         
            -
                    <li><a href="../index.html"> 
     | 
| 
      
 64 
     | 
    
         
            +
                    <li><a href="../index.html">Groonga v3.0.9ドキュメント</a> »</li>
         
     | 
| 
       65 
65 
     | 
    
         
             
                      <li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li> 
         
     | 
| 
       66 
66 
     | 
    
         
             
                  </ul>
         
     | 
| 
       67 
67 
     | 
    
         
             
                </div>  
         
     | 
| 
         @@ -293,7 +293,7 @@ select Doc --match_columns body --query "シークヮーサー" --quer 
     | 
|
| 
       293 
293 
     | 
    
         
             
              <h3>このページ</h3>
         
     | 
| 
       294 
294 
     | 
    
         
             
              <ul class="this-page-menu">
         
     | 
| 
       295 
295 
     | 
    
         
             
                <li><a href="../_sources/tutorial/query_expansion.txt"
         
     | 
| 
       296 
     | 
    
         
            -
                       rel="nofollow" 
     | 
| 
      
 296 
     | 
    
         
            +
                       rel="nofollow">ソースコードを表示</a></li>
         
     | 
| 
       297 
297 
     | 
    
         
             
              </ul>
         
     | 
| 
       298 
298 
     | 
    
         
             
            <div id="searchbox" style="display: none">
         
     | 
| 
       299 
299 
     | 
    
         
             
              <h3>クイック検索</h3>
         
     | 
| 
         @@ -324,7 +324,7 @@ select Doc --match_columns body --query "シークヮーサー" --quer 
     | 
|
| 
       324 
324 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       325 
325 
     | 
    
         
             
                      <a href="micro_blog.html" title="4.10. マイクロブログ検索システムの作成"
         
     | 
| 
       326 
326 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       327 
     | 
    
         
            -
                    <li><a href="../index.html"> 
     | 
| 
      
 327 
     | 
    
         
            +
                    <li><a href="../index.html">Groonga v3.0.9ドキュメント</a> »</li>
         
     | 
| 
       328 
328 
     | 
    
         
             
                      <li><a href="../tutorial.html" >4. チュートリアル</a> »</li> 
         
     | 
| 
       329 
329 
     | 
    
         
             
                  </ul>
         
     | 
| 
       330 
330 
     | 
    
         
             
                </div>
         
     | 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>4.4. さまざまな検索条件の指定 —  
     | 
| 
      
 10 
     | 
    
         
            +
                <title>4.4. さまざまな検索条件の指定 — Groonga v3.0.9ドキュメント</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     '3.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '3.0.9',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -26,7 +26,7 @@ 
     | 
|
| 
       26 
26 
     | 
    
         
             
                <script type="text/javascript" src="../_static/doctools.js"></script>
         
     | 
| 
       27 
27 
     | 
    
         
             
                <script type="text/javascript" src="../_static/translations.js"></script>
         
     | 
| 
       28 
28 
     | 
    
         
             
                <link rel="shortcut icon" href="../_static/favicon.ico"/>
         
     | 
| 
       29 
     | 
    
         
            -
                <link rel="top" title=" 
     | 
| 
      
 29 
     | 
    
         
            +
                <link rel="top" title="Groonga v3.0.9ドキュメント" href="../index.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="up" title="4. チュートリアル" href="../tutorial.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="next" title="4.5. ドリルダウン" href="drilldown.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="prev" title="4.3. いろいろなデータの保存" href="data.html" /> 
         
     | 
| 
         @@ -61,7 +61,7 @@ 
     | 
|
| 
       61 
61 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       62 
62 
     | 
    
         
             
                      <a href="data.html" title="4.3. いろいろなデータの保存"
         
     | 
| 
       63 
63 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       64 
     | 
    
         
            -
                    <li><a href="../index.html"> 
     | 
| 
      
 64 
     | 
    
         
            +
                    <li><a href="../index.html">Groonga v3.0.9ドキュメント</a> »</li>
         
     | 
| 
       65 
65 
     | 
    
         
             
                      <li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li> 
         
     | 
| 
       66 
66 
     | 
    
         
             
                  </ul>
         
     | 
| 
       67 
67 
     | 
    
         
             
                </div>  
         
     | 
| 
         @@ -577,7 +577,7 @@ select --table Site --query "_id:1 OR _id:2" --output_columns _key,loc 
     | 
|
| 
       577 
577 
     | 
    
         
             
              <h3>このページ</h3>
         
     | 
| 
       578 
578 
     | 
    
         
             
              <ul class="this-page-menu">
         
     | 
| 
       579 
579 
     | 
    
         
             
                <li><a href="../_sources/tutorial/search.txt"
         
     | 
| 
       580 
     | 
    
         
            -
                       rel="nofollow" 
     | 
| 
      
 580 
     | 
    
         
            +
                       rel="nofollow">ソースコードを表示</a></li>
         
     | 
| 
       581 
581 
     | 
    
         
             
              </ul>
         
     | 
| 
       582 
582 
     | 
    
         
             
            <div id="searchbox" style="display: none">
         
     | 
| 
       583 
583 
     | 
    
         
             
              <h3>クイック検索</h3>
         
     | 
| 
         @@ -608,7 +608,7 @@ select --table Site --query "_id:1 OR _id:2" --output_columns _key,loc 
     | 
|
| 
       608 
608 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       609 
609 
     | 
    
         
             
                      <a href="data.html" title="4.3. いろいろなデータの保存"
         
     | 
| 
       610 
610 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       611 
     | 
    
         
            -
                    <li><a href="../index.html"> 
     | 
| 
      
 611 
     | 
    
         
            +
                    <li><a href="../index.html">Groonga v3.0.9ドキュメント</a> »</li>
         
     | 
| 
       612 
612 
     | 
    
         
             
                      <li><a href="../tutorial.html" >4. チュートリアル</a> »</li> 
         
     | 
| 
       613 
613 
     | 
    
         
             
                  </ul>
         
     | 
| 
       614 
614 
     | 
    
         
             
                </div>
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            .TH "GROONGA" "1" "2013 年  
     | 
| 
      
 1 
     | 
    
         
            +
            .TH "GROONGA" "1" "2013 年 10 月 28 日" "3.0.9" "groonga"
         
     | 
| 
       2 
2 
     | 
    
         
             
            .SH NAME
         
     | 
| 
       3 
3 
     | 
    
         
             
            groonga \- groongaのドキュメント
         
     | 
| 
       4 
4 
     | 
    
         
             
            .
         
     | 
| 
         @@ -34,13 +34,6 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] 
     | 
|
| 
       34 
34 
     | 
    
         
             
            .IP \(bu 2
         
     | 
| 
       35 
35 
     | 
    
         
             
            \fBnews\fP
         
     | 
| 
       36 
36 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       37 
     | 
    
         
            -
            .sp
         
     | 
| 
       38 
     | 
    
         
            -
            \fBノート:\fP
         
     | 
| 
       39 
     | 
    
         
            -
            .INDENT 0.0
         
     | 
| 
       40 
     | 
    
         
            -
            .INDENT 3.5
         
     | 
| 
       41 
     | 
    
         
            -
            このドキュメントはソースアーカイブの形式で配布され、随時更新しています。最新のドキュメントをソース形式で参照したいなら、GitHubのリポジトリブラウザ経由で閲覧できます。(\fI\%https://github.com/groonga/groonga/tree/master/doc/source\fP)
         
     | 
| 
       42 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
       43 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
       44 
37 
     | 
    
         
             
            .SH GROONGAの特徴
         
     | 
| 
       45 
38 
     | 
    
         
             
            .SS groonga の概要
         
     | 
| 
       46 
39 
     | 
    
         
             
            .sp
         
     | 
| 
         @@ -109,7 +102,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと 
     | 
|
| 
       109 
102 
     | 
    
         
             
            .sp
         
     | 
| 
       110 
103 
     | 
    
         
             
            .nf
         
     | 
| 
       111 
104 
     | 
    
         
             
            .ft C
         
     | 
| 
       112 
     | 
    
         
            -
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0. 
     | 
| 
      
 105 
     | 
    
         
            +
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.9\-x86.exe
         
     | 
| 
       113 
106 
     | 
    
         
             
            .ft P
         
     | 
| 
       114 
107 
     | 
    
         
             
            .fi
         
     | 
| 
       115 
108 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -125,7 +118,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと 
     | 
|
| 
       125 
118 
     | 
    
         
             
            .sp
         
     | 
| 
       126 
119 
     | 
    
         
             
            .nf
         
     | 
| 
       127 
120 
     | 
    
         
             
            .ft C
         
     | 
| 
       128 
     | 
    
         
            -
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0. 
     | 
| 
      
 121 
     | 
    
         
            +
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.9\-x64.exe
         
     | 
| 
       129 
122 
     | 
    
         
             
            .ft P
         
     | 
| 
       130 
123 
     | 
    
         
             
            .fi
         
     | 
| 
       131 
124 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -146,7 +139,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと 
     | 
|
| 
       146 
139 
     | 
    
         
             
            .sp
         
     | 
| 
       147 
140 
     | 
    
         
             
            .nf
         
     | 
| 
       148 
141 
     | 
    
         
             
            .ft C
         
     | 
| 
       149 
     | 
    
         
            -
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0. 
     | 
| 
      
 142 
     | 
    
         
            +
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.9\-x86.zip
         
     | 
| 
       150 
143 
     | 
    
         
             
            .ft P
         
     | 
| 
       151 
144 
     | 
    
         
             
            .fi
         
     | 
| 
       152 
145 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -162,7 +155,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと 
     | 
|
| 
       162 
155 
     | 
    
         
             
            .sp
         
     | 
| 
       163 
156 
     | 
    
         
             
            .nf
         
     | 
| 
       164 
157 
     | 
    
         
             
            .ft C
         
     | 
| 
       165 
     | 
    
         
            -
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0. 
     | 
| 
      
 158 
     | 
    
         
            +
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.9\-x64.zip
         
     | 
| 
       166 
159 
     | 
    
         
             
            .ft P
         
     | 
| 
       167 
160 
     | 
    
         
             
            .fi
         
     | 
| 
       168 
161 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -196,7 +189,7 @@ Microsoft Visual Studio 2010 Expressがインストールする \fBVisual Studio 
     | 
|
| 
       196 
189 
     | 
    
         
             
            .nf
         
     | 
| 
       197 
190 
     | 
    
         
             
            .ft C
         
     | 
| 
       198 
191 
     | 
    
         
             
            > cd c:\eUsers\e%USERNAME%\eDownloads
         
     | 
| 
       199 
     | 
    
         
            -
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
      
 192 
     | 
    
         
            +
            > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-3.0.9.zip
         
     | 
| 
       200 
193 
     | 
    
         
             
            .ft P
         
     | 
| 
       201 
194 
     | 
    
         
             
            .fi
         
     | 
| 
       202 
195 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -210,7 +203,7 @@ groongaのソースフォルダへと移動します: 
     | 
|
| 
       210 
203 
     | 
    
         
             
            .sp
         
     | 
| 
       211 
204 
     | 
    
         
             
            .nf
         
     | 
| 
       212 
205 
     | 
    
         
             
            .ft C
         
     | 
| 
       213 
     | 
    
         
            -
            > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-3.0. 
     | 
| 
      
 206 
     | 
    
         
            +
            > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-3.0.9
         
     | 
| 
       214 
207 
     | 
    
         
             
            .ft P
         
     | 
| 
       215 
208 
     | 
    
         
             
            .fi
         
     | 
| 
       216 
209 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -222,7 +215,7 @@ groongaのソースフォルダへと移動します: 
     | 
|
| 
       222 
215 
     | 
    
         
             
            .sp
         
     | 
| 
       223 
216 
     | 
    
         
             
            .nf
         
     | 
| 
       224 
217 
     | 
    
         
             
            .ft C
         
     | 
| 
       225 
     | 
    
         
            -
            groonga\-3.0. 
     | 
| 
      
 218 
     | 
    
         
            +
            groonga\-3.0.9> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
         
     | 
| 
       226 
219 
     | 
    
         
             
            .ft P
         
     | 
| 
       227 
220 
     | 
    
         
             
            .fi
         
     | 
| 
       228 
221 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -234,7 +227,7 @@ groonga\-3.0.8> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\ 
     | 
|
| 
       234 
227 
     | 
    
         
             
            .sp
         
     | 
| 
       235 
228 
     | 
    
         
             
            .nf
         
     | 
| 
       236 
229 
     | 
    
         
             
            .ft C
         
     | 
| 
       237 
     | 
    
         
            -
            groonga\-3.0. 
     | 
| 
      
 230 
     | 
    
         
            +
            groonga\-3.0.9> cmake \-\-build . \-\-config Release
         
     | 
| 
       238 
231 
     | 
    
         
             
            .ft P
         
     | 
| 
       239 
232 
     | 
    
         
             
            .fi
         
     | 
| 
       240 
233 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -246,7 +239,7 @@ groonga\-3.0.8> cmake \-\-build . \-\-config Release 
     | 
|
| 
       246 
239 
     | 
    
         
             
            .sp
         
     | 
| 
       247 
240 
     | 
    
         
             
            .nf
         
     | 
| 
       248 
241 
     | 
    
         
             
            .ft C
         
     | 
| 
       249 
     | 
    
         
            -
            groonga\-3.0. 
     | 
| 
      
 242 
     | 
    
         
            +
            groonga\-3.0.9> cmake \-\-build . \-\-config Release \-\-target Install
         
     | 
| 
       250 
243 
     | 
    
         
             
            .ft P
         
     | 
| 
       251 
244 
     | 
    
         
             
            .fi
         
     | 
| 
       252 
245 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -294,9 +287,9 @@ groonga\-3.0.8> cmake \-\-build . \-\-config Release \-\-target Install 
     | 
|
| 
       294 
287 
     | 
    
         
             
            .sp
         
     | 
| 
       295 
288 
     | 
    
         
             
            .nf
         
     | 
| 
       296 
289 
     | 
    
         
             
            .ft C
         
     | 
| 
       297 
     | 
    
         
            -
            % curl \-O http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
       298 
     | 
    
         
            -
            % tar xvzf groonga\-3.0. 
     | 
| 
       299 
     | 
    
         
            -
            % cd groonga\-3.0. 
     | 
| 
      
 290 
     | 
    
         
            +
            % curl \-O http://packages.groonga.org/source/groonga/groonga\-3.0.9.tar.gz
         
     | 
| 
      
 291 
     | 
    
         
            +
            % tar xvzf groonga\-3.0.9.tar.gz
         
     | 
| 
      
 292 
     | 
    
         
            +
            % cd groonga\-3.0.9
         
     | 
| 
       300 
293 
     | 
    
         
             
            .ft P
         
     | 
| 
       301 
294 
     | 
    
         
             
            .fi
         
     | 
| 
       302 
295 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -673,9 +666,9 @@ groongaをビルドするために必要なパッケージをインストール 
     | 
|
| 
       673 
666 
     | 
    
         
             
            .sp
         
     | 
| 
       674 
667 
     | 
    
         
             
            .nf
         
     | 
| 
       675 
668 
     | 
    
         
             
            .ft C
         
     | 
| 
       676 
     | 
    
         
            -
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
       677 
     | 
    
         
            -
            % tar xvzf groonga\-3.0. 
     | 
| 
       678 
     | 
    
         
            -
            % cd groonga\-3.0. 
     | 
| 
      
 669 
     | 
    
         
            +
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0.9.tar.gz
         
     | 
| 
      
 670 
     | 
    
         
            +
            % tar xvzf groonga\-3.0.9.tar.gz
         
     | 
| 
      
 671 
     | 
    
         
            +
            % cd groonga\-3.0.9
         
     | 
| 
       679 
672 
     | 
    
         
             
            .ft P
         
     | 
| 
       680 
673 
     | 
    
         
             
            .fi
         
     | 
| 
       681 
674 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -1104,6 +1097,79 @@ groonga\-normalizer\-mysqlパッケージのインストール: 
     | 
|
| 
       1104 
1097 
     | 
    
         
             
            .fi
         
     | 
| 
       1105 
1098 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       1106 
1099 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
      
 1100 
     | 
    
         
            +
            .SS 13.10 Saucy Salamander
         
     | 
| 
      
 1101 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1102 
     | 
    
         
            +
            Groongaのaptリポジトリを追加します。
         
     | 
| 
      
 1103 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1104 
     | 
    
         
            +
            /etc/apt/sources.list.d/groonga.list:
         
     | 
| 
      
 1105 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 1106 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 1107 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1108 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 1109 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 1110 
     | 
    
         
            +
            deb http://packages.groonga.org/ubuntu/ saucy universe
         
     | 
| 
      
 1111 
     | 
    
         
            +
            deb\-src http://packages.groonga.org/ubuntu/ saucy universe
         
     | 
| 
      
 1112 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 1113 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 1114 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1115 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1116 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1117 
     | 
    
         
            +
            インストール:
         
     | 
| 
      
 1118 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 1119 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 1120 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1121 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 1122 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 1123 
     | 
    
         
            +
            % sudo apt\-get update
         
     | 
| 
      
 1124 
     | 
    
         
            +
            % sudo apt\-get \-y \-\-allow\-unauthenticated install groonga\-keyring
         
     | 
| 
      
 1125 
     | 
    
         
            +
            % sudo apt\-get update
         
     | 
| 
      
 1126 
     | 
    
         
            +
            % sudo apt\-get \-y install groonga
         
     | 
| 
      
 1127 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 1128 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 1129 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1130 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1131 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1132 
     | 
    
         
            +
            \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
         
     | 
| 
      
 1133 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1134 
     | 
    
         
            +
            groonga\-tokenizer\-mecabパッケージのインストール:
         
     | 
| 
      
 1135 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 1136 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 1137 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1138 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 1139 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 1140 
     | 
    
         
            +
            % sudo apt\-get \-y install groonga\-tokenizer\-mecab
         
     | 
| 
      
 1141 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 1142 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 1143 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1144 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1145 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1146 
     | 
    
         
            +
            \fI\%Munin\fP プラグインを提供するパッケージもあります。MuninでGroongaの状態をモニターしたい場合は、groonga\-munin\-pluginsパッケージをインストールしてください。
         
     | 
| 
      
 1147 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1148 
     | 
    
         
            +
            groonga\-munin\-pluginsパッケージのインストール:
         
     | 
| 
      
 1149 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 1150 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 1151 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1152 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 1153 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 1154 
     | 
    
         
            +
            % sudo apt\-get \-y install groonga\-munin\-plugins
         
     | 
| 
      
 1155 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 1156 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 1157 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1158 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1159 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1160 
     | 
    
         
            +
            MySQL互換のノーマライザーをGroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
         
     | 
| 
      
 1161 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1162 
     | 
    
         
            +
            groonga\-normalizer\-mysqlパッケージのインストール:
         
     | 
| 
      
 1163 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 1164 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 1165 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 1166 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 1167 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 1168 
     | 
    
         
            +
            % sudo apt\-get \-y install groonga\-normalizer\-mysql
         
     | 
| 
      
 1169 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 1170 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 1171 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 1172 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       1107 
1173 
     | 
    
         
             
            .SS ソースからビルド
         
     | 
| 
       1108 
1174 
     | 
    
         
             
            .sp
         
     | 
| 
       1109 
1175 
     | 
    
         
             
            groongaをビルドするために必要なパッケージをインストールします:
         
     | 
| 
         @@ -1124,9 +1190,9 @@ groongaをビルドするために必要なパッケージをインストール 
     | 
|
| 
       1124 
1190 
     | 
    
         
             
            .sp
         
     | 
| 
       1125 
1191 
     | 
    
         
             
            .nf
         
     | 
| 
       1126 
1192 
     | 
    
         
             
            .ft C
         
     | 
| 
       1127 
     | 
    
         
            -
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
       1128 
     | 
    
         
            -
            % tar xvzf groonga\-3.0. 
     | 
| 
       1129 
     | 
    
         
            -
            % cd groonga\-3.0. 
     | 
| 
      
 1193 
     | 
    
         
            +
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1194 
     | 
    
         
            +
            % tar xvzf groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1195 
     | 
    
         
            +
            % cd groonga\-3.0.9
         
     | 
| 
       1130 
1196 
     | 
    
         
             
            .ft P
         
     | 
| 
       1131 
1197 
     | 
    
         
             
            .fi
         
     | 
| 
       1132 
1198 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -1442,9 +1508,9 @@ groongaをビルドするために必要なパッケージをインストール 
     | 
|
| 
       1442 
1508 
     | 
    
         
             
            .sp
         
     | 
| 
       1443 
1509 
     | 
    
         
             
            .nf
         
     | 
| 
       1444 
1510 
     | 
    
         
             
            .ft C
         
     | 
| 
       1445 
     | 
    
         
            -
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
       1446 
     | 
    
         
            -
            % tar xvzf groonga\-3.0. 
     | 
| 
       1447 
     | 
    
         
            -
            % cd groonga\-3.0. 
     | 
| 
      
 1511 
     | 
    
         
            +
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1512 
     | 
    
         
            +
            % tar xvzf groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1513 
     | 
    
         
            +
            % cd groonga\-3.0.9
         
     | 
| 
       1448 
1514 
     | 
    
         
             
            .ft P
         
     | 
| 
       1449 
1515 
     | 
    
         
             
            .fi
         
     | 
| 
       1450 
1516 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -1630,9 +1696,9 @@ groongaをビルドするために必要なパッケージをインストール 
     | 
|
| 
       1630 
1696 
     | 
    
         
             
            .sp
         
     | 
| 
       1631 
1697 
     | 
    
         
             
            .nf
         
     | 
| 
       1632 
1698 
     | 
    
         
             
            .ft C
         
     | 
| 
       1633 
     | 
    
         
            -
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
       1634 
     | 
    
         
            -
            % tar xvzf groonga\-3.0. 
     | 
| 
       1635 
     | 
    
         
            -
            % cd groonga\-3.0. 
     | 
| 
      
 1699 
     | 
    
         
            +
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1700 
     | 
    
         
            +
            % tar xvzf groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1701 
     | 
    
         
            +
            % cd groonga\-3.0.9
         
     | 
| 
       1636 
1702 
     | 
    
         
             
            .ft P
         
     | 
| 
       1637 
1703 
     | 
    
         
             
            .fi
         
     | 
| 
       1638 
1704 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -1696,9 +1762,9 @@ groongaをビルドするために必要なパッケージをインストール 
     | 
|
| 
       1696 
1762 
     | 
    
         
             
            .sp
         
     | 
| 
       1697 
1763 
     | 
    
         
             
            .nf
         
     | 
| 
       1698 
1764 
     | 
    
         
             
            .ft C
         
     | 
| 
       1699 
     | 
    
         
            -
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
       1700 
     | 
    
         
            -
            % gtar xvzf groonga\-3.0. 
     | 
| 
       1701 
     | 
    
         
            -
            % cd groonga\-3.0. 
     | 
| 
      
 1765 
     | 
    
         
            +
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1766 
     | 
    
         
            +
            % gtar xvzf groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1767 
     | 
    
         
            +
            % cd groonga\-3.0.9
         
     | 
| 
       1702 
1768 
     | 
    
         
             
            .ft P
         
     | 
| 
       1703 
1769 
     | 
    
         
             
            .fi
         
     | 
| 
       1704 
1770 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -1819,9 +1885,9 @@ groongaはGNUビルドシステムを使っています。以下は一番簡単 
     | 
|
| 
       1819 
1885 
     | 
    
         
             
            .sp
         
     | 
| 
       1820 
1886 
     | 
    
         
             
            .nf
         
     | 
| 
       1821 
1887 
     | 
    
         
             
            .ft C
         
     | 
| 
       1822 
     | 
    
         
            -
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0. 
     | 
| 
       1823 
     | 
    
         
            -
            % tar xvzf groonga\-3.0. 
     | 
| 
       1824 
     | 
    
         
            -
            % cd groonga\-3.0. 
     | 
| 
      
 1888 
     | 
    
         
            +
            % wget http://packages.groonga.org/source/groonga/groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1889 
     | 
    
         
            +
            % tar xvzf groonga\-3.0.9.tar.gz
         
     | 
| 
      
 1890 
     | 
    
         
            +
            % cd groonga\-3.0.9
         
     | 
| 
       1825 
1891 
     | 
    
         
             
            % ./configure
         
     | 
| 
       1826 
1892 
     | 
    
         
             
            % make
         
     | 
| 
       1827 
1893 
     | 
    
         
             
            % sudo make install
         
     | 
| 
         @@ -1940,6 +2006,13 @@ zlibを使ってカラム値を圧縮する機能を有効にします。 
     | 
|
| 
       1940 
2006 
     | 
    
         
             
            .fi
         
     | 
| 
       1941 
2007 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       1942 
2008 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
      
 2009 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 2010 
     | 
    
         
            +
            \fBノート:\fP
         
     | 
| 
      
 2011 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 2012 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 2013 
     | 
    
         
            +
            無効となっている理由は、カラムの値を参照するときにメモリリークするためです。これは既知の問題 \fI\%GitHub#6\fP です。この問題はカラムの更新とは関係ありません。
         
     | 
| 
      
 2014 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 2015 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       1943 
2016 
     | 
    
         
             
            .SS \fB\-\-with\-lzo\fP
         
     | 
| 
       1944 
2017 
     | 
    
         
             
            .sp
         
     | 
| 
       1945 
2018 
     | 
    
         
             
            LZOを使ってカラム値を圧縮する機能を有効にします。
         
     | 
| 
         @@ -1957,6 +2030,13 @@ LZOを使ってカラム値を圧縮する機能を有効にします。 
     | 
|
| 
       1957 
2030 
     | 
    
         
             
            .fi
         
     | 
| 
       1958 
2031 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       1959 
2032 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
      
 2033 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 2034 
     | 
    
         
            +
            \fBノート:\fP
         
     | 
| 
      
 2035 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 2036 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 2037 
     | 
    
         
            +
            無効となっている理由は、カラムの値を参照するときにメモリリークするためです。これは既知の問題 \fI\%GitHub#6\fP です。この問題はカラムの更新とは関係ありません。
         
     | 
| 
      
 2038 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 2039 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       1960 
2040 
     | 
    
         
             
            .SS \fB\-\-with\-message\-pack=MESSAGE_PACK_INSTALL_PREFIX\fP
         
     | 
| 
       1961 
2041 
     | 
    
         
             
            .sp
         
     | 
| 
       1962 
2042 
     | 
    
         
             
            MessagePackがどこにインストールされているかを指定します。MessagePackを \fB\-\-prefix=/usr\fP という \fBconfigure\fP オプションでインストールしていない場合は、MessagePackをビルドするときに指定したパスをこのオプションで指定してください。
         
     | 
| 
         @@ -7857,6 +7937,8 @@ TODO... 
     | 
|
| 
       7857 
7937 
     | 
    
         
             
            RKはローマ字(Romaji)とカタカナ(Katakana)を意味しています。前方一致RK検索は登録されている語をユーザの入力から前方一致検索します。このとき、ユーザの入力はローマ字でもカタカナでもひらがなでも構いません。この機能は日本語を検索するときに便利です。
         
     | 
| 
       7858 
7938 
     | 
    
         
             
            .sp
         
     | 
| 
       7859 
7939 
     | 
    
         
             
            例えば、"日本"という語が登録されているとします。そして、その読みとして"ニホン"(カタカナにしないといけません)が登録されているとします。このとき、ユーザの入力が"ni"でも"二"でも"に"でも"日本"を見つけることができます。
         
     | 
| 
      
 7940 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 7941 
     | 
    
         
            +
            If you create dataset which is named as example by \fB/reference/executables/groonga\-suggest\-create\-dataset\fP command, you can update pairs of registered word and its reading by loading data to \(aq_key\(aq and \(aqkana\(aq column of item_example table explicitly for prefix RK search.
         
     | 
| 
       7860 
7942 
     | 
    
         
             
            .SS 共起検索
         
     | 
| 
       7861 
7943 
     | 
    
         
             
            .sp
         
     | 
| 
       7862 
7944 
     | 
    
         
             
            共起検索は入力途中のユーザのクエリから登録されている語を見つけます。共起検索では検索データベースとしてユーザの入力シーケンスを使います。これはクエリログやアクセスログなどから学習します。
         
     | 
| 
         @@ -8143,93 +8225,93 @@ load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequen 
     | 
|
| 
       8143 
8225 
     | 
    
         
             
            .fi
         
     | 
| 
       8144 
8226 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       8145 
8227 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       8146 
     | 
    
         
            -
            .SS  
     | 
| 
      
 8228 
     | 
    
         
            +
            .SS How to update RK reading data
         
     | 
| 
       8147 
8229 
     | 
    
         
             
            .sp
         
     | 
| 
       8148 
     | 
    
         
            -
             
     | 
| 
       8149 
     | 
    
         
            -
            .INDENT 0.0
         
     | 
| 
       8150 
     | 
    
         
            -
            .IP \(bu 2
         
     | 
| 
       8151 
     | 
    
         
            -
            どのように動作するか
         
     | 
| 
       8152 
     | 
    
         
            -
            .IP \(bu 2
         
     | 
| 
       8153 
     | 
    
         
            -
            使い方
         
     | 
| 
       8154 
     | 
    
         
            -
            .IP \(bu 2
         
     | 
| 
       8155 
     | 
    
         
            -
            学習方法
         
     | 
| 
       8156 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
       8157 
     | 
    
         
            -
            .SS どのように動作するか
         
     | 
| 
      
 8230 
     | 
    
         
            +
            Groonga requires registered word and its reading for RK search, so load such data in the advance.
         
     | 
| 
       8158 
8231 
     | 
    
         
             
            .sp
         
     | 
| 
       8159 
     | 
    
         
            -
             
     | 
| 
      
 8232 
     | 
    
         
            +
            Here is the example to register "日本" which means Japanese in english.
         
     | 
| 
      
 8233 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8234 
     | 
    
         
            +
            実行例:
         
     | 
| 
       8160 
8235 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       8161 
8236 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       8162 
     | 
    
         
            -
            . 
     | 
| 
       8163 
     | 
    
         
            -
            . 
     | 
| 
       8164 
     | 
    
         
            -
             
     | 
| 
       8165 
     | 
    
         
            -
             
     | 
| 
       8166 
     | 
    
         
            -
             
     | 
| 
       8167 
     | 
    
         
            -
            . 
     | 
| 
      
 8237 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8238 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 8239 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 8240 
     | 
    
         
            +
            load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
         
     | 
| 
      
 8241 
     | 
    
         
            +
            [
         
     | 
| 
      
 8242 
     | 
    
         
            +
            {"sequence": "1", "time": 1312950805.86058, "item": "日本", "type": "submit"}
         
     | 
| 
      
 8243 
     | 
    
         
            +
            ]
         
     | 
| 
      
 8244 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], 1]
         
     | 
| 
      
 8245 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 8246 
     | 
    
         
            +
            .fi
         
     | 
| 
       8168 
8247 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       8169 
8248 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       8170 
     | 
    
         
            -
            .SS 共起検索
         
     | 
| 
       8171 
     | 
    
         
            -
            .sp
         
     | 
| 
       8172 
     | 
    
         
            -
            共起検索はユーザの間違って入力した文字列から登録済みの語を検索します。共起検索ではユーザがどのように検索を実行したかを使います。ユーザがどのように検索したかはクエリログやアクセスログから学習します。
         
     | 
| 
       8173 
8249 
     | 
    
         
             
            .sp
         
     | 
| 
       8174 
     | 
    
         
            -
             
     | 
| 
       8175 
     | 
    
         
            -
            .TS
         
     | 
| 
       8176 
     | 
    
         
            -
            center;
         
     | 
| 
       8177 
     | 
    
         
            -
            |l|l|.
         
     | 
| 
       8178 
     | 
    
         
            -
            _
         
     | 
| 
       8179 
     | 
    
         
            -
            T{
         
     | 
| 
       8180 
     | 
    
         
            -
            クエリ
         
     | 
| 
       8181 
     | 
    
         
            -
            T}	T{
         
     | 
| 
       8182 
     | 
    
         
            -
            時刻
         
     | 
| 
       8183 
     | 
    
         
            -
            T}
         
     | 
| 
       8184 
     | 
    
         
            -
            _
         
     | 
| 
       8185 
     | 
    
         
            -
            T{
         
     | 
| 
       8186 
     | 
    
         
            -
            serach (入力ミス!)
         
     | 
| 
       8187 
     | 
    
         
            -
            T}	T{
         
     | 
| 
       8188 
     | 
    
         
            -
            2011\-08\-10T22:20:50+09:00
         
     | 
| 
       8189 
     | 
    
         
            -
            T}
         
     | 
| 
       8190 
     | 
    
         
            -
            _
         
     | 
| 
       8191 
     | 
    
         
            -
            T{
         
     | 
| 
       8192 
     | 
    
         
            -
            search (修正!)
         
     | 
| 
       8193 
     | 
    
         
            -
            T}	T{
         
     | 
| 
       8194 
     | 
    
         
            -
            2011\-08\-10T22:20:52+09:00
         
     | 
| 
       8195 
     | 
    
         
            -
            T}
         
     | 
| 
       8196 
     | 
    
         
            -
            _
         
     | 
| 
       8197 
     | 
    
         
            -
            .TE
         
     | 
| 
      
 8250 
     | 
    
         
            +
            Here is the example to update RK data to complete "日本".
         
     | 
| 
       8198 
8251 
     | 
    
         
             
            .sp
         
     | 
| 
       8199 
     | 
    
         
            -
             
     | 
| 
       8200 
     | 
    
         
            -
            . 
     | 
| 
       8201 
     | 
    
         
            -
             
     | 
| 
       8202 
     | 
    
         
            -
            |l|l|.
         
     | 
| 
       8203 
     | 
    
         
            -
            _
         
     | 
| 
       8204 
     | 
    
         
            -
            T{
         
     | 
| 
       8205 
     | 
    
         
            -
            入力
         
     | 
| 
       8206 
     | 
    
         
            -
            T}	T{
         
     | 
| 
       8207 
     | 
    
         
            -
            補正された語
         
     | 
| 
       8208 
     | 
    
         
            -
            T}
         
     | 
| 
       8209 
     | 
    
         
            -
            _
         
     | 
| 
       8210 
     | 
    
         
            -
            T{
         
     | 
| 
       8211 
     | 
    
         
            -
            serach
         
     | 
| 
       8212 
     | 
    
         
            -
            T}	T{
         
     | 
| 
       8213 
     | 
    
         
            -
            search
         
     | 
| 
       8214 
     | 
    
         
            -
            T}
         
     | 
| 
       8215 
     | 
    
         
            -
            _
         
     | 
| 
       8216 
     | 
    
         
            -
            .TE
         
     | 
| 
      
 8252 
     | 
    
         
            +
            実行例:
         
     | 
| 
      
 8253 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8254 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
       8217 
8255 
     | 
    
         
             
            .sp
         
     | 
| 
       8218 
     | 
    
         
            -
             
     | 
| 
      
 8256 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 8257 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 8258 
     | 
    
         
            +
            load \-\-table item_query
         
     | 
| 
      
 8259 
     | 
    
         
            +
            [
         
     | 
| 
      
 8260 
     | 
    
         
            +
            {"_key":"日本", "kana":["ニホン", "ニッポン"]}
         
     | 
| 
      
 8261 
     | 
    
         
            +
            ]
         
     | 
| 
      
 8262 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], 1]
         
     | 
| 
      
 8263 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 8264 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 8265 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8266 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       8219 
8267 
     | 
    
         
             
            .sp
         
     | 
| 
       8220 
     | 
    
         
            -
             
     | 
| 
       8221 
     | 
    
         
            -
            .SS 類似検索
         
     | 
| 
      
 8268 
     | 
    
         
            +
            Then you can complete registered word "日本" by RK input \- "nihon".
         
     | 
| 
       8222 
8269 
     | 
    
         
             
            .sp
         
     | 
| 
       8223 
     | 
    
         
            -
             
     | 
| 
      
 8270 
     | 
    
         
            +
            実行例:
         
     | 
| 
      
 8271 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8272 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
       8224 
8273 
     | 
    
         
             
            .sp
         
     | 
| 
       8225 
     | 
    
         
            -
             
     | 
| 
      
 8274 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 8275 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 8276 
     | 
    
         
            +
            suggest \-\-table item_query \-\-column kana \-\-types complete \-\-frequency_threshold 1 \-\-query nihon
         
     | 
| 
      
 8277 
     | 
    
         
            +
            # [
         
     | 
| 
      
 8278 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 8279 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 8280 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 8281 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 8282 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 8283 
     | 
    
         
            +
            #   {
         
     | 
| 
      
 8284 
     | 
    
         
            +
            #     "complete": [
         
     | 
| 
      
 8285 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8286 
     | 
    
         
            +
            #         1
         
     | 
| 
      
 8287 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8288 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8289 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8290 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 8291 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 8292 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 8293 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8294 
     | 
    
         
            +
            #           "_score",
         
     | 
| 
      
 8295 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 8296 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 8297 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8298 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8299 
     | 
    
         
            +
            #         "日本",
         
     | 
| 
      
 8300 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 8301 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 8302 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 8303 
     | 
    
         
            +
            #   }
         
     | 
| 
      
 8304 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 8305 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 8306 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 8307 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8308 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       8226 
8309 
     | 
    
         
             
            .sp
         
     | 
| 
       8227 
     | 
    
         
            -
             
     | 
| 
       8228 
     | 
    
         
            -
            .SS 使い方
         
     | 
| 
      
 8310 
     | 
    
         
            +
            Without loading above RK data, you can\(aqt complete registered word "日本" by query \- "nihon".
         
     | 
| 
       8229 
8311 
     | 
    
         
             
            .sp
         
     | 
| 
       8230 
     | 
    
         
            -
             
     | 
| 
      
 8312 
     | 
    
         
            +
            As the column type of item_query table is VECTOR_COLUMN, you can register multiple readings for registered word.
         
     | 
| 
       8231 
8313 
     | 
    
         
             
            .sp
         
     | 
| 
       8232 
     | 
    
         
            -
             
     | 
| 
      
 8314 
     | 
    
         
            +
            This is the reason that you can also complete the registered word "日本" by query \- "nippon".
         
     | 
| 
       8233 
8315 
     | 
    
         
             
            .sp
         
     | 
| 
       8234 
8316 
     | 
    
         
             
            実行例:
         
     | 
| 
       8235 
8317 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
         @@ -8237,7 +8319,7 @@ groongaは補正機能を使うために \fB/reference/commands/suggest\fP コ 
     | 
|
| 
       8237 
8319 
     | 
    
         
             
            .sp
         
     | 
| 
       8238 
8320 
     | 
    
         
             
            .nf
         
     | 
| 
       8239 
8321 
     | 
    
         
             
            .ft C
         
     | 
| 
       8240 
     | 
    
         
            -
            suggest \-\-table item_query \-\-column kana \-\-types  
     | 
| 
      
 8322 
     | 
    
         
            +
            suggest \-\-table item_query \-\-column kana \-\-types complete \-\-frequency_threshold 1 \-\-query nippon
         
     | 
| 
       8241 
8323 
     | 
    
         
             
            # [
         
     | 
| 
       8242 
8324 
     | 
    
         
             
            #   [
         
     | 
| 
       8243 
8325 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -8245,7 +8327,7 @@ suggest \-\-table item_query \-\-column kana \-\-types correction \-\-frequency_ 
     | 
|
| 
       8245 
8327 
     | 
    
         
             
            #     0.000355720520019531
         
     | 
| 
       8246 
8328 
     | 
    
         
             
            #   ],
         
     | 
| 
       8247 
8329 
     | 
    
         
             
            #   {
         
     | 
| 
       8248 
     | 
    
         
            -
            #     " 
     | 
| 
      
 8330 
     | 
    
         
            +
            #     "complete": [
         
     | 
| 
       8249 
8331 
     | 
    
         
             
            #       [
         
     | 
| 
       8250 
8332 
     | 
    
         
             
            #         1
         
     | 
| 
       8251 
8333 
     | 
    
         
             
            #       ],
         
     | 
| 
         @@ -8260,8 +8342,8 @@ suggest \-\-table item_query \-\-column kana \-\-types correction \-\-frequency_ 
     | 
|
| 
       8260 
8342 
     | 
    
         
             
            #         ]
         
     | 
| 
       8261 
8343 
     | 
    
         
             
            #       ],
         
     | 
| 
       8262 
8344 
     | 
    
         
             
            #       [
         
     | 
| 
       8263 
     | 
    
         
            -
            #         " 
     | 
| 
       8264 
     | 
    
         
            -
            #          
     | 
| 
      
 8345 
     | 
    
         
            +
            #         "日本",
         
     | 
| 
      
 8346 
     | 
    
         
            +
            #         2
         
     | 
| 
       8265 
8347 
     | 
    
         
             
            #       ]
         
     | 
| 
       8266 
8348 
     | 
    
         
             
            #     ]
         
     | 
| 
       8267 
8349 
     | 
    
         
             
            #   }
         
     | 
| 
         @@ -8270,35 +8352,14 @@ suggest \-\-table item_query \-\-column kana \-\-types correction \-\-frequency_ 
     | 
|
| 
       8270 
8352 
     | 
    
         
             
            .fi
         
     | 
| 
       8271 
8353 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       8272 
8354 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       8273 
     | 
    
         
            -
            .SS 学習方法
         
     | 
| 
       8274 
8355 
     | 
    
         
             
            .sp
         
     | 
| 
       8275 
     | 
    
         
            -
             
     | 
| 
      
 8356 
     | 
    
         
            +
            This feature is very convenient because you can search registered word even though Japanese IM is disabled.
         
     | 
| 
       8276 
8357 
     | 
    
         
             
            .sp
         
     | 
| 
       8277 
     | 
    
         
            -
             
     | 
| 
       8278 
     | 
    
         
            -
            .INDENT 0.0
         
     | 
| 
       8279 
     | 
    
         
            -
            .INDENT 3.5
         
     | 
| 
       8280 
     | 
    
         
            -
            .INDENT 0.0
         
     | 
| 
       8281 
     | 
    
         
            -
            .IP 1. 3
         
     | 
| 
       8282 
     | 
    
         
            -
            2011\-08\-10T13:33:23+09:00: s
         
     | 
| 
       8283 
     | 
    
         
            -
            .IP 2. 3
         
     | 
| 
       8284 
     | 
    
         
            -
            2011\-08\-10T13:33:23+09:00: sa
         
     | 
| 
       8285 
     | 
    
         
            -
            .IP 3. 3
         
     | 
| 
       8286 
     | 
    
         
            -
            2011\-08\-10T13:33:24+09:00: sae
         
     | 
| 
       8287 
     | 
    
         
            -
            .IP 4. 3
         
     | 
| 
       8288 
     | 
    
         
            -
            2011\-08\-10T13:33:24+09:00: saer
         
     | 
| 
       8289 
     | 
    
         
            -
            .IP 5. 3
         
     | 
| 
       8290 
     | 
    
         
            -
            2011\-08\-10T13:33:24+09:00: saerc
         
     | 
| 
       8291 
     | 
    
         
            -
            .IP 6. 3
         
     | 
| 
       8292 
     | 
    
         
            -
            2011\-08\-10T13:33:25+09:00: saerch (検索実行!)
         
     | 
| 
       8293 
     | 
    
         
            -
            .IP 7. 3
         
     | 
| 
       8294 
     | 
    
         
            -
            2011\-08\-10T13:33:29+09:00: serch (修正中…)
         
     | 
| 
       8295 
     | 
    
         
            -
            .IP 8. 3
         
     | 
| 
       8296 
     | 
    
         
            -
            2011\-08\-10T13:33:30+09:00: search (検索実行!)
         
     | 
| 
       8297 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
       8298 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
       8299 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
      
 8358 
     | 
    
         
            +
            If there are multiple candidates as completed result, you can customize priority to set the value of "boost" column in item_query table.
         
     | 
| 
       8300 
8359 
     | 
    
         
             
            .sp
         
     | 
| 
       8301 
     | 
    
         
            -
             
     | 
| 
      
 8360 
     | 
    
         
            +
            Here is the example to customize priority for RK search.
         
     | 
| 
      
 8361 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8362 
     | 
    
         
            +
            実行例:
         
     | 
| 
       8302 
8363 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       8303 
8364 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       8304 
8365 
     | 
    
         
             
            .sp
         
     | 
| 
         @@ -8306,10 +8367,266 @@ suggest \-\-table item_query \-\-column kana \-\-types correction \-\-frequency_ 
     | 
|
| 
       8306 
8367 
     | 
    
         
             
            .ft C
         
     | 
| 
       8307 
8368 
     | 
    
         
             
            load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
         
     | 
| 
       8308 
8369 
     | 
    
         
             
            [
         
     | 
| 
       8309 
     | 
    
         
            -
            {"sequence": "1", "time":  
     | 
| 
       8310 
     | 
    
         
            -
            {"sequence": "1", "time":  
     | 
| 
       8311 
     | 
    
         
            -
             
     | 
| 
       8312 
     | 
    
         
            -
             
     | 
| 
      
 8370 
     | 
    
         
            +
            {"sequence": "1", "time": 1312950805.86059, "item": "日本語", "type": "submit"}
         
     | 
| 
      
 8371 
     | 
    
         
            +
            {"sequence": "1", "time": 1312950805.86060, "item": "日本人", "type": "submit"}
         
     | 
| 
      
 8372 
     | 
    
         
            +
            ]
         
     | 
| 
      
 8373 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], 2]
         
     | 
| 
      
 8374 
     | 
    
         
            +
            load \-\-table item_query
         
     | 
| 
      
 8375 
     | 
    
         
            +
            [
         
     | 
| 
      
 8376 
     | 
    
         
            +
            {"_key":"日本語", "kana":"ニホンゴ"}
         
     | 
| 
      
 8377 
     | 
    
         
            +
            {"_key":"日本人", "kana":"ニホンジン"}
         
     | 
| 
      
 8378 
     | 
    
         
            +
            ]
         
     | 
| 
      
 8379 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], 2]
         
     | 
| 
      
 8380 
     | 
    
         
            +
            suggest \-\-table item_query \-\-column kana \-\-types complete \-\-frequency_threshold 1 \-\-query nihon
         
     | 
| 
      
 8381 
     | 
    
         
            +
            # [
         
     | 
| 
      
 8382 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 8383 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 8384 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 8385 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 8386 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 8387 
     | 
    
         
            +
            #   {
         
     | 
| 
      
 8388 
     | 
    
         
            +
            #     "complete": [
         
     | 
| 
      
 8389 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8390 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 8391 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8392 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8393 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8394 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 8395 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 8396 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 8397 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8398 
     | 
    
         
            +
            #           "_score",
         
     | 
| 
      
 8399 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 8400 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 8401 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8402 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8403 
     | 
    
         
            +
            #         "日本",
         
     | 
| 
      
 8404 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 8405 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8406 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8407 
     | 
    
         
            +
            #         "日本人",
         
     | 
| 
      
 8408 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 8409 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8410 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8411 
     | 
    
         
            +
            #         "日本語",
         
     | 
| 
      
 8412 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 8413 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 8414 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 8415 
     | 
    
         
            +
            #   }
         
     | 
| 
      
 8416 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 8417 
     | 
    
         
            +
            load \-\-table item_query
         
     | 
| 
      
 8418 
     | 
    
         
            +
            [
         
     | 
| 
      
 8419 
     | 
    
         
            +
            {"_key":"日本人", "boost": 100},
         
     | 
| 
      
 8420 
     | 
    
         
            +
            ]
         
     | 
| 
      
 8421 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], 1]
         
     | 
| 
      
 8422 
     | 
    
         
            +
            suggest \-\-table item_query \-\-column kana \-\-types complete \-\-frequency_threshold 1 \-\-query nihon
         
     | 
| 
      
 8423 
     | 
    
         
            +
            # [
         
     | 
| 
      
 8424 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 8425 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 8426 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 8427 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 8428 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 8429 
     | 
    
         
            +
            #   {
         
     | 
| 
      
 8430 
     | 
    
         
            +
            #     "complete": [
         
     | 
| 
      
 8431 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8432 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 8433 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8434 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8435 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8436 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 8437 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 8438 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 8439 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8440 
     | 
    
         
            +
            #           "_score",
         
     | 
| 
      
 8441 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 8442 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 8443 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8444 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8445 
     | 
    
         
            +
            #         "日本人",
         
     | 
| 
      
 8446 
     | 
    
         
            +
            #         102
         
     | 
| 
      
 8447 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8448 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8449 
     | 
    
         
            +
            #         "日本",
         
     | 
| 
      
 8450 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 8451 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8452 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8453 
     | 
    
         
            +
            #         "日本語",
         
     | 
| 
      
 8454 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 8455 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 8456 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 8457 
     | 
    
         
            +
            #   }
         
     | 
| 
      
 8458 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 8459 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 8460 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 8461 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8462 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8463 
     | 
    
         
            +
            .SS 補正
         
     | 
| 
      
 8464 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8465 
     | 
    
         
            +
            このセクションでは以下の補正機能について説明します。:
         
     | 
| 
      
 8466 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8467 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 8468 
     | 
    
         
            +
            どのように動作するか
         
     | 
| 
      
 8469 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 8470 
     | 
    
         
            +
            使い方
         
     | 
| 
      
 8471 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 8472 
     | 
    
         
            +
            学習方法
         
     | 
| 
      
 8473 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8474 
     | 
    
         
            +
            .SS どのように動作するか
         
     | 
| 
      
 8475 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8476 
     | 
    
         
            +
            補正機能は補正した語を計算するために3種類の検索を使います。:
         
     | 
| 
      
 8477 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8478 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 8479 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8480 
     | 
    
         
            +
            .IP 1. 3
         
     | 
| 
      
 8481 
     | 
    
         
            +
            学習したデータを共起検索。
         
     | 
| 
      
 8482 
     | 
    
         
            +
            .IP 2. 3
         
     | 
| 
      
 8483 
     | 
    
         
            +
            登録されている語を類似検索。(実行しないこともある)
         
     | 
| 
      
 8484 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8485 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8486 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8487 
     | 
    
         
            +
            .SS 共起検索
         
     | 
| 
      
 8488 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8489 
     | 
    
         
            +
            共起検索はユーザの間違って入力した文字列から登録済みの語を検索します。共起検索ではユーザがどのように検索を実行したかを使います。ユーザがどのように検索したかはクエリログやアクセスログから学習します。
         
     | 
| 
      
 8490 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8491 
     | 
    
         
            +
            例えば、ユーザが以下のように検索を実行したとします。:
         
     | 
| 
      
 8492 
     | 
    
         
            +
            .TS
         
     | 
| 
      
 8493 
     | 
    
         
            +
            center;
         
     | 
| 
      
 8494 
     | 
    
         
            +
            |l|l|.
         
     | 
| 
      
 8495 
     | 
    
         
            +
            _
         
     | 
| 
      
 8496 
     | 
    
         
            +
            T{
         
     | 
| 
      
 8497 
     | 
    
         
            +
            クエリ
         
     | 
| 
      
 8498 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 8499 
     | 
    
         
            +
            時刻
         
     | 
| 
      
 8500 
     | 
    
         
            +
            T}
         
     | 
| 
      
 8501 
     | 
    
         
            +
            _
         
     | 
| 
      
 8502 
     | 
    
         
            +
            T{
         
     | 
| 
      
 8503 
     | 
    
         
            +
            serach (入力ミス!)
         
     | 
| 
      
 8504 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 8505 
     | 
    
         
            +
            2011\-08\-10T22:20:50+09:00
         
     | 
| 
      
 8506 
     | 
    
         
            +
            T}
         
     | 
| 
      
 8507 
     | 
    
         
            +
            _
         
     | 
| 
      
 8508 
     | 
    
         
            +
            T{
         
     | 
| 
      
 8509 
     | 
    
         
            +
            search (修正!)
         
     | 
| 
      
 8510 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 8511 
     | 
    
         
            +
            2011\-08\-10T22:20:52+09:00
         
     | 
| 
      
 8512 
     | 
    
         
            +
            T}
         
     | 
| 
      
 8513 
     | 
    
         
            +
            _
         
     | 
| 
      
 8514 
     | 
    
         
            +
            .TE
         
     | 
| 
      
 8515 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8516 
     | 
    
         
            +
            上記の検索実行ログから以下のような補正ペアを作ります。
         
     | 
| 
      
 8517 
     | 
    
         
            +
            .TS
         
     | 
| 
      
 8518 
     | 
    
         
            +
            center;
         
     | 
| 
      
 8519 
     | 
    
         
            +
            |l|l|.
         
     | 
| 
      
 8520 
     | 
    
         
            +
            _
         
     | 
| 
      
 8521 
     | 
    
         
            +
            T{
         
     | 
| 
      
 8522 
     | 
    
         
            +
            入力
         
     | 
| 
      
 8523 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 8524 
     | 
    
         
            +
            補正された語
         
     | 
| 
      
 8525 
     | 
    
         
            +
            T}
         
     | 
| 
      
 8526 
     | 
    
         
            +
            _
         
     | 
| 
      
 8527 
     | 
    
         
            +
            T{
         
     | 
| 
      
 8528 
     | 
    
         
            +
            serach
         
     | 
| 
      
 8529 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 8530 
     | 
    
         
            +
            search
         
     | 
| 
      
 8531 
     | 
    
         
            +
            T}
         
     | 
| 
      
 8532 
     | 
    
         
            +
            _
         
     | 
| 
      
 8533 
     | 
    
         
            +
            .TE
         
     | 
| 
      
 8534 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8535 
     | 
    
         
            +
            1分以内の連続して実行された検索をユーザが入力を補正したものとみなします。検索を実行した間の入力途中の入力シーケンスは、補正用の学習データとしては利用しません。
         
     | 
| 
      
 8536 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8537 
     | 
    
         
            +
            ユーザが"serach"と入力した場合、共起検索は"saerch"を返します。なぜなら、"serach"が「入力」カラムにあり、対応する「補正される語」カラムの値が"search"だからです。
         
     | 
| 
      
 8538 
     | 
    
         
            +
            .SS 類似検索
         
     | 
| 
      
 8539 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8540 
     | 
    
         
            +
            類似検索はユーザの入力をトークナイズし、同じトークンを含んだ登録済みの語を検索します。トークナイズにはTokenBigramトークナイザーを使います。これは \fB/reference/executables/groonga\-suggest\-create\-dataset\fP が作るサジェストデータセットスキーマではデフォルトトークナイザーとしてTokenBigramトークナイザーを使っているからです。
         
     | 
| 
      
 8541 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8542 
     | 
    
         
            +
            例えば、"search engine"という語が登録されているとします。ユーザが"web search service"や"sound engine"などで検索すると"search engine"が補正候補になります。なぜなら、"search engine"と"web search engine"は"search"という同じトークンを持つからです。また、"search engine"と"sound engine"は"engine"という同じトークンを持っています。
         
     | 
| 
      
 8543 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8544 
     | 
    
         
            +
            "search engine"は"search"トークンと"engine"トークンにトークナイズされます。(groongaのTokenBigramトークナイザーは連続するアルファベットと数字を2文字にトークナイズしません。これは検索ノイズを減らす為です。確実に2文字でトークナイズするためにはTokenBigramSplitSymbolAlphaDigitを使います。)"web search service"は"web"トークンと"search"トークンと"service"トークンにトークナイズされます。"sound engine"は"sound"トークンと"engine"トークンにトークナイズされます。
         
     | 
| 
      
 8545 
     | 
    
         
            +
            .SS 使い方
         
     | 
| 
      
 8546 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8547 
     | 
    
         
            +
            groongaは補正機能を使うために \fB/reference/commands/suggest\fP コマンドを用意しています。 \fI\-\-type correct\fP オプションを使うと補正機能を利用できます。
         
     | 
| 
      
 8548 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8549 
     | 
    
         
            +
            例えば、"saerch"と入力した時の補正結果取得するコマンドは以下のようになります。:
         
     | 
| 
      
 8550 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8551 
     | 
    
         
            +
            実行例:
         
     | 
| 
      
 8552 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8553 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 8554 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8555 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 8556 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 8557 
     | 
    
         
            +
            suggest \-\-table item_query \-\-column kana \-\-types correction \-\-frequency_threshold 1 \-\-query saerch
         
     | 
| 
      
 8558 
     | 
    
         
            +
            # [
         
     | 
| 
      
 8559 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 8560 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 8561 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 8562 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 8563 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 8564 
     | 
    
         
            +
            #   {
         
     | 
| 
      
 8565 
     | 
    
         
            +
            #     "correct": [
         
     | 
| 
      
 8566 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8567 
     | 
    
         
            +
            #         1
         
     | 
| 
      
 8568 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8569 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8570 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8571 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 8572 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 8573 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 8574 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 8575 
     | 
    
         
            +
            #           "_score",
         
     | 
| 
      
 8576 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 8577 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 8578 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 8579 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 8580 
     | 
    
         
            +
            #         "search",
         
     | 
| 
      
 8581 
     | 
    
         
            +
            #         1
         
     | 
| 
      
 8582 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 8583 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 8584 
     | 
    
         
            +
            #   }
         
     | 
| 
      
 8585 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 8586 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 8587 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 8588 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8589 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8590 
     | 
    
         
            +
            .SS 学習方法
         
     | 
| 
      
 8591 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8592 
     | 
    
         
            +
            共起検索は学習データを使います。学習データはクエリログやアクセスログから作ります。学習データを作るためにはユーザが検索を実行したときの検索クエリとタイムスタンプが必要です。
         
     | 
| 
      
 8593 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8594 
     | 
    
         
            +
            例えば、ユーザが"search"で検索したかったとします。しかし、ユーザは正しい"search"というクエリで検索を実行する前に間違って"saerch"で検索してしまいました。このユーザの入力シーケンスは以下のようになります。:
         
     | 
| 
      
 8595 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8596 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 8597 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8598 
     | 
    
         
            +
            .IP 1. 3
         
     | 
| 
      
 8599 
     | 
    
         
            +
            2011\-08\-10T13:33:23+09:00: s
         
     | 
| 
      
 8600 
     | 
    
         
            +
            .IP 2. 3
         
     | 
| 
      
 8601 
     | 
    
         
            +
            2011\-08\-10T13:33:23+09:00: sa
         
     | 
| 
      
 8602 
     | 
    
         
            +
            .IP 3. 3
         
     | 
| 
      
 8603 
     | 
    
         
            +
            2011\-08\-10T13:33:24+09:00: sae
         
     | 
| 
      
 8604 
     | 
    
         
            +
            .IP 4. 3
         
     | 
| 
      
 8605 
     | 
    
         
            +
            2011\-08\-10T13:33:24+09:00: saer
         
     | 
| 
      
 8606 
     | 
    
         
            +
            .IP 5. 3
         
     | 
| 
      
 8607 
     | 
    
         
            +
            2011\-08\-10T13:33:24+09:00: saerc
         
     | 
| 
      
 8608 
     | 
    
         
            +
            .IP 6. 3
         
     | 
| 
      
 8609 
     | 
    
         
            +
            2011\-08\-10T13:33:25+09:00: saerch (検索実行!)
         
     | 
| 
      
 8610 
     | 
    
         
            +
            .IP 7. 3
         
     | 
| 
      
 8611 
     | 
    
         
            +
            2011\-08\-10T13:33:29+09:00: serch (修正中…)
         
     | 
| 
      
 8612 
     | 
    
         
            +
            .IP 8. 3
         
     | 
| 
      
 8613 
     | 
    
         
            +
            2011\-08\-10T13:33:30+09:00: search (検索実行!)
         
     | 
| 
      
 8614 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8615 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8616 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 8617 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8618 
     | 
    
         
            +
            以下のコマンドでこの入力シーケンスから学習できます。:
         
     | 
| 
      
 8619 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 8620 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 8621 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 8622 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 8623 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 8624 
     | 
    
         
            +
            load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
         
     | 
| 
      
 8625 
     | 
    
         
            +
            [
         
     | 
| 
      
 8626 
     | 
    
         
            +
            {"sequence": "1", "time": 1312950803.86057, "item": "s"},
         
     | 
| 
      
 8627 
     | 
    
         
            +
            {"sequence": "1", "time": 1312950803.96857, "item": "sa"},
         
     | 
| 
      
 8628 
     | 
    
         
            +
            {"sequence": "1", "time": 1312950804.26057, "item": "sae"},
         
     | 
| 
      
 8629 
     | 
    
         
            +
            {"sequence": "1", "time": 1312950804.56057, "item": "saer"},
         
     | 
| 
       8313 
8630 
     | 
    
         
             
            {"sequence": "1", "time": 1312950804.76057, "item": "saerc"},
         
     | 
| 
       8314 
8631 
     | 
    
         
             
            {"sequence": "1", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
         
     | 
| 
       8315 
8632 
     | 
    
         
             
            {"sequence": "1", "time": 1312950809.76057, "item": "serch"},
         
     | 
| 
         @@ -10018,9 +10335,6 @@ DBに定義されているテーブルを削除します。 
     | 
|
| 
       10018 
10335 
     | 
    
         
             
            .B \fBcolumn_remove\fP
         
     | 
| 
       10019 
10336 
     | 
    
         
             
            テーブルに定義されているカラムを削除します。
         
     | 
| 
       10020 
10337 
     | 
    
         
             
            .TP
         
     | 
| 
       10021 
     | 
    
         
            -
            .B \fBview_add\fP
         
     | 
| 
       10022 
     | 
    
         
            -
            VIEW型のテーブルに要素となるテーブルを定義します。
         
     | 
| 
       10023 
     | 
    
         
            -
            .TP
         
     | 
| 
       10024 
10338 
     | 
    
         
             
            .B \fBload\fP
         
     | 
| 
       10025 
10339 
     | 
    
         
             
            テーブルにレコードを挿入します。
         
     | 
| 
       10026 
10340 
     | 
    
         
             
            .TP
         
     | 
| 
         @@ -10278,7 +10592,30 @@ location /d/ { 
     | 
|
| 
       10278 
10592 
     | 
    
         
             
            .sp
         
     | 
| 
       10279 
10593 
     | 
    
         
             
            .nf
         
     | 
| 
       10280 
10594 
     | 
    
         
             
            .ft C
         
     | 
| 
       10281 
     | 
    
         
            -
            groonga_database /path/to/groonga/database;
         
     | 
| 
      
 10595 
     | 
    
         
            +
            groonga_database /path/to/groonga/database;
         
     | 
| 
      
 10596 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 10597 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 10598 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 10599 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 10600 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 10601 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 10602 
     | 
    
         
            +
            .B Default
         
     | 
| 
      
 10603 
     | 
    
         
            +
            \fBgroonga_database /usr/local/var/lib/groonga/db/db;\fP
         
     | 
| 
      
 10604 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 10605 
     | 
    
         
            +
            .B Context
         
     | 
| 
      
 10606 
     | 
    
         
            +
            \fBhttp\fP, \fBserver\fP, \fBlocation\fP
         
     | 
| 
      
 10607 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 10608 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10609 
     | 
    
         
            +
            groongaデータベースのパスを指定します。このディレクティブは必須です。
         
     | 
| 
      
 10610 
     | 
    
         
            +
            .SS \fBgroonga_database_auto_create\fP
         
     | 
| 
      
 10611 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10612 
     | 
    
         
            +
            書式:
         
     | 
| 
      
 10613 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 10614 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 10615 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10616 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 10617 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 10618 
     | 
    
         
            +
            groonga_database_auto_create on | off;
         
     | 
| 
       10282 
10619 
     | 
    
         
             
            .ft P
         
     | 
| 
       10283 
10620 
     | 
    
         
             
            .fi
         
     | 
| 
       10284 
10621 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -10286,16 +10623,17 @@ groonga_database /path/to/groonga/database; 
     | 
|
| 
       10286 
10623 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       10287 
10624 
     | 
    
         
             
            .TP
         
     | 
| 
       10288 
10625 
     | 
    
         
             
            .B Default
         
     | 
| 
       10289 
     | 
    
         
            -
            \ 
     | 
| 
      
 10626 
     | 
    
         
            +
            \fBgroonga_database_auto_create on;\fP
         
     | 
| 
       10290 
10627 
     | 
    
         
             
            .TP
         
     | 
| 
       10291 
10628 
     | 
    
         
             
            .B Context
         
     | 
| 
       10292 
10629 
     | 
    
         
             
            \fBhttp\fP, \fBserver\fP, \fBlocation\fP
         
     | 
| 
       10293 
10630 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       10294 
10631 
     | 
    
         
             
            .sp
         
     | 
| 
       10295 
     | 
    
         
            -
            groonga 
     | 
| 
       10296 
     | 
    
         
            -
            .SS \fBgroonga_database_auto_create\fP
         
     | 
| 
      
 10632 
     | 
    
         
            +
            groongaのデータベースを自動で作成するかどうかを指定します。もし、この値が \fBon\fP で \fIgroonga\-database\fP に指定したgroongaのデータベースが存在しない場合は自動でgroongaのデータベースを作成します。groongaのデータベースが存在している場合は何もしません。
         
     | 
| 
       10297 
10633 
     | 
    
         
             
            .sp
         
     | 
| 
       10298 
     | 
    
         
            -
             
     | 
| 
      
 10634 
     | 
    
         
            +
            もし、親ディレクトリが存在しな場合は再帰的に親ディレクトリも作成します。
         
     | 
| 
      
 10635 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10636 
     | 
    
         
            +
            デフォルト値は \fBon\fP です。通常、この値を変更する必要はありません。
         
     | 
| 
       10299 
10637 
     | 
    
         
             
            .SS \fBgroonga_base_path\fP
         
     | 
| 
       10300 
10638 
     | 
    
         
             
            .sp
         
     | 
| 
       10301 
10639 
     | 
    
         
             
            書式:
         
     | 
| 
         @@ -10493,6 +10831,47 @@ location /d/ { 
     | 
|
| 
       10493 
10831 
     | 
    
         
             
            このディレクティブはgroonga\-httpdのディレクティブではなく、nginxのディレクティブです。詳細は、 \fI\%http://wiki.nginx.org/CoreModule#worker_processes\fP を参照してください。
         
     | 
| 
       10494 
10832 
     | 
    
         
             
            .sp
         
     | 
| 
       10495 
10833 
     | 
    
         
             
            デフォルトで、このディレクティブには1が設定されています。
         
     | 
| 
      
 10834 
     | 
    
         
            +
            .SS \fBgroonga_cache_limit\fP
         
     | 
| 
      
 10835 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10836 
     | 
    
         
            +
            This directive is introduced to customize cache limit for each worker process.
         
     | 
| 
      
 10837 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10838 
     | 
    
         
            +
            書式:
         
     | 
| 
      
 10839 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 10840 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 10841 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10842 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 10843 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 10844 
     | 
    
         
            +
            groonga_cache_limit CACHE_LIMIT;
         
     | 
| 
      
 10845 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 10846 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 10847 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 10848 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 10849 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 10850 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 10851 
     | 
    
         
            +
            .B Default
         
     | 
| 
      
 10852 
     | 
    
         
            +
            100
         
     | 
| 
      
 10853 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 10854 
     | 
    
         
            +
            .B Context
         
     | 
| 
      
 10855 
     | 
    
         
            +
            \fBhttp\fP, \fBserver\fP, \fBlocation\fP
         
     | 
| 
      
 10856 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 10857 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10858 
     | 
    
         
            +
            Groongaのクエリキャッシュの制限を \fBhttp\fP 、 \fBserver\fP もしくは \fBlocation\fP ブロックで指定します。デフォルトは \fB100\fP です。 \fB0\fP を指定することで \fBgroonga_cache_limit\fP を明示的に無効にできます。
         
     | 
| 
      
 10859 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10860 
     | 
    
         
            +
            例:
         
     | 
| 
      
 10861 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 10862 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 10863 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 10864 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 10865 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 10866 
     | 
    
         
            +
            location /d/ {
         
     | 
| 
      
 10867 
     | 
    
         
            +
              groonga on;
         
     | 
| 
      
 10868 
     | 
    
         
            +
              # You can customize query cache limit for groonga.
         
     | 
| 
      
 10869 
     | 
    
         
            +
              groonga_cache_limit 100;
         
     | 
| 
      
 10870 
     | 
    
         
            +
            }
         
     | 
| 
      
 10871 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 10872 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 10873 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 10874 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       10496 
10875 
     | 
    
         
             
            .SS \fBproxy_cache\fP
         
     | 
| 
       10497 
10876 
     | 
    
         
             
            .sp
         
     | 
| 
       10498 
10877 
     | 
    
         
             
            まとめると、groonga組み込みのクエリーキャッシュ機能の代わりにnginxのリバースプロ機とキャッシュの仕組みを使うこともできます。
         
     | 
| 
         @@ -10502,13 +10881,9 @@ groongaは \fB/reference/commands/select\fP コマンド用にクエリーキャ 
     | 
|
| 
       10502 
10881 
     | 
    
         
             
            .sp
         
     | 
| 
       10503 
10882 
     | 
    
         
             
            クエリーキャッシュ機能は \fB/reference/commands/cache_limit\fP コマンドを使っていないあるいはワーカー数が1だけの場合はgroonga\-httpd上でもきちんと動作します。通常、 \fB/reference/commands/cache_limit\fP コマンドは使わないので、多くの場合は問題がありません。
         
     | 
| 
       10504 
10883 
     | 
    
         
             
            .sp
         
     | 
| 
       10505 
     | 
    
         
            -
            2 
     | 
| 
      
 10884 
     | 
    
         
            +
            2ワーカー以上で \fB/reference/commands/cache_limit\fP コマンドを使ったときの問題点を説明します。
         
     | 
| 
       10506 
10885 
     | 
    
         
             
            .sp
         
     | 
| 
       10507 
     | 
    
         
            -
            groongaのクエリーキャッシュは同じプロセス内で有効です。これは、同じキャッシュを複数のワーカー間で共有できないということです。キャッシュサイズを変更しないならこれは大きな問題ではありません。もし、  
     | 
| 
       10508 
     | 
    
         
            -
            .nf
         
     | 
| 
       10509 
     | 
    
         
            -
            \(ga
         
     | 
| 
       10510 
     | 
    
         
            -
            .fi
         
     | 
| 
       10511 
     | 
    
         
            -
            /reference/commands/cache_limit\(gaコマンドでキャッシュサイズを変更したいなら問題になります。
         
     | 
| 
      
 10886 
     | 
    
         
            +
            groongaのクエリーキャッシュは同じプロセス内で有効です。これは、同じキャッシュを複数のワーカー間で共有できないということです。キャッシュサイズを変更しないならこれは大きな問題ではありません。もし、 \fB/reference/commands/cache_limit\fP コマンドでキャッシュサイズを変更したいなら問題になります。
         
     | 
| 
       10512 
10887 
     | 
    
         
             
            .sp
         
     | 
| 
       10513 
10888 
     | 
    
         
             
            すべてのワーカーのキャッシュサイズを変更する汎用的な方法がないのです。
         
     | 
| 
       10514 
10889 
     | 
    
         
             
            .sp
         
     | 
| 
         @@ -10728,6 +11103,28 @@ groonga\-suggest\-create\-dataset [options] DATABASE DATASET 
     | 
|
| 
       10728 
11103 
     | 
    
         
             
            .SS DESCTIPION
         
     | 
| 
       10729 
11104 
     | 
    
         
             
            .sp
         
     | 
| 
       10730 
11105 
     | 
    
         
             
            groonga\-suggest\-create\-dataset creates a dataset for \fB/suggest\fP. A database has many datasets. This command just defines schema for a suggestion dataset.
         
     | 
| 
      
 11106 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11107 
     | 
    
         
            +
            This command generates some tables and columns for \fB/suggest\fP.
         
     | 
| 
      
 11108 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11109 
     | 
    
         
            +
            Here is the list of such tables. If you specify \(aqquery\(aq as dataset name, following \(aq_DATASET\(aq suffix are replaced. Thus, \(aqitem_query\(aq, \(aqpair_query\(aq, \(aqsequence_query\(aq, \(aqevent_query\(aq tables are generated.
         
     | 
| 
      
 11110 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11111 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11112 
     | 
    
         
            +
            event_type
         
     | 
| 
      
 11113 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11114 
     | 
    
         
            +
            bigram
         
     | 
| 
      
 11115 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11116 
     | 
    
         
            +
            kana
         
     | 
| 
      
 11117 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11118 
     | 
    
         
            +
            item_DATASET
         
     | 
| 
      
 11119 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11120 
     | 
    
         
            +
            pair_DATASET
         
     | 
| 
      
 11121 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11122 
     | 
    
         
            +
            sequence_DATASET
         
     | 
| 
      
 11123 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11124 
     | 
    
         
            +
            event_DATASET
         
     | 
| 
      
 11125 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 11126 
     | 
    
         
            +
            設定ディレクティブ
         
     | 
| 
      
 11127 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       10731 
11128 
     | 
    
         
             
            .SS オプション
         
     | 
| 
       10732 
11129 
     | 
    
         
             
            .sp
         
     | 
| 
       10733 
11130 
     | 
    
         
             
            None.
         
     | 
| 
         @@ -10743,8 +11140,100 @@ TODO 
     | 
|
| 
       10743 
11140 
     | 
    
         
             
            .SS 参考
         
     | 
| 
       10744 
11141 
     | 
    
         
             
            .sp
         
     | 
| 
       10745 
11142 
     | 
    
         
             
            \fB/suggest\fP
         
     | 
| 
       10746 
     | 
    
         
            -
             
     | 
| 
       10747 
     | 
    
         
            -
             
     | 
| 
      
 11143 
     | 
    
         
            +
            \fBgroonga\-suggest\-httpd\fP
         
     | 
| 
      
 11144 
     | 
    
         
            +
            \fBgroonga\-suggest\-learner\fP
         
     | 
| 
      
 11145 
     | 
    
         
            +
            .SS groonga\-suggest\-httpd
         
     | 
| 
      
 11146 
     | 
    
         
            +
            .SS 概要
         
     | 
| 
      
 11147 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11148 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 11149 
     | 
    
         
            +
            .SS 書式
         
     | 
| 
      
 11150 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11151 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 11152 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11153 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 11154 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 11155 
     | 
    
         
            +
            groonga\-suggest\-httpd [options] database_path
         
     | 
| 
      
 11156 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 11157 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 11158 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11159 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11160 
     | 
    
         
            +
            .SS 使い方
         
     | 
| 
      
 11161 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11162 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 11163 
     | 
    
         
            +
            .SS Options
         
     | 
| 
      
 11164 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11165 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11166 
     | 
    
         
            +
            .B \-p, \-\-port
         
     | 
| 
      
 11167 
     | 
    
         
            +
            Specify http server port number. The default value is 8080.
         
     | 
| 
      
 11168 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11169 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11170 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11171 
     | 
    
         
            +
            .B \-t, \-\-n\-threads
         
     | 
| 
      
 11172 
     | 
    
         
            +
            Specify number of threads. The default value is 8.
         
     | 
| 
      
 11173 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11174 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11175 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11176 
     | 
    
         
            +
            .B \-s, \-\-send\-endpoint
         
     | 
| 
      
 11177 
     | 
    
         
            +
            Specify endpoint for sender.
         
     | 
| 
      
 11178 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11179 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11180 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11181 
     | 
    
         
            +
            .B \-r, \-\-receive\-endpoint
         
     | 
| 
      
 11182 
     | 
    
         
            +
            Specify endpoint for receiver.
         
     | 
| 
      
 11183 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11184 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11185 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11186 
     | 
    
         
            +
            .B \-l, \-\-log\-base\-path
         
     | 
| 
      
 11187 
     | 
    
         
            +
            Specify path prefix of log.
         
     | 
| 
      
 11188 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11189 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11190 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11191 
     | 
    
         
            +
            .B \-\-n\-lines\-per\-log\-file
         
     | 
| 
      
 11192 
     | 
    
         
            +
            Specify the number of lines in a log file. The default value is 1,000,000.
         
     | 
| 
      
 11193 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11194 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11195 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11196 
     | 
    
         
            +
            .B \-d, \-\-daemon
         
     | 
| 
      
 11197 
     | 
    
         
            +
            Specify this option to daemonize.
         
     | 
| 
      
 11198 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11199 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11200 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 11201 
     | 
    
         
            +
            .B \-\-disable\-max\-fd\-check
         
     | 
| 
      
 11202 
     | 
    
         
            +
            Specify this option to disable checking max fd on start.
         
     | 
| 
      
 11203 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11204 
     | 
    
         
            +
            .SS 引数
         
     | 
| 
      
 11205 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11206 
     | 
    
         
            +
            \fBdatabase_path\fP だけが必須の引数です。
         
     | 
| 
      
 11207 
     | 
    
         
            +
            .SS \fBdatabase_path\fP
         
     | 
| 
      
 11208 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11209 
     | 
    
         
            +
            groongaデータベースのパスを指定します。
         
     | 
| 
      
 11210 
     | 
    
         
            +
            .SS groonga\-suggest\-learner
         
     | 
| 
      
 11211 
     | 
    
         
            +
            .SS 概要
         
     | 
| 
      
 11212 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11213 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 11214 
     | 
    
         
            +
            .SS 書式
         
     | 
| 
      
 11215 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 11216 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 11217 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11218 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 11219 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 11220 
     | 
    
         
            +
            groonga\-suggest\-learner [options] database_path
         
     | 
| 
      
 11221 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 11222 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 11223 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11224 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 11225 
     | 
    
         
            +
            .SS 使い方
         
     | 
| 
      
 11226 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11227 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 11228 
     | 
    
         
            +
            .SS Options
         
     | 
| 
      
 11229 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11230 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 11231 
     | 
    
         
            +
            .SS 引数
         
     | 
| 
      
 11232 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11233 
     | 
    
         
            +
            \fBdatabase_path\fP だけが必須の引数です。
         
     | 
| 
      
 11234 
     | 
    
         
            +
            .SS \fBdatabase_path\fP
         
     | 
| 
      
 11235 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 11236 
     | 
    
         
            +
            groongaデータベースのパスを指定します。
         
     | 
| 
       10748 
11237 
     | 
    
         
             
            .SS 出力
         
     | 
| 
       10749 
11238 
     | 
    
         
             
            .sp
         
     | 
| 
       10750 
11239 
     | 
    
         
             
            groongaは以下の出力形式をサポートしています。
         
     | 
| 
         @@ -11556,7 +12045,7 @@ cache_limit 
     | 
|
| 
       11556 
12045 
     | 
    
         
             
            .sp
         
     | 
| 
       11557 
12046 
     | 
    
         
             
            .nf
         
     | 
| 
       11558 
12047 
     | 
    
         
             
            .ft C
         
     | 
| 
       11559 
     | 
    
         
            -
            [[HEADER,  
     | 
| 
      
 12048 
     | 
    
         
            +
            [[HEADER, N_ENTRIES]]
         
     | 
| 
       11560 
12049 
     | 
    
         
             
            .ft P
         
     | 
| 
       11561 
12050 
     | 
    
         
             
            .fi
         
     | 
| 
       11562 
12051 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -11569,10 +12058,10 @@ cache_limit 
     | 
|
| 
       11569 
12058 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11570 
12059 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11571 
12060 
     | 
    
         
             
            .sp
         
     | 
| 
       11572 
     | 
    
         
            -
            \ 
     | 
| 
      
 12061 
     | 
    
         
            +
            \fBN_ENTRIES\fP
         
     | 
| 
       11573 
12062 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       11574 
12063 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       11575 
     | 
    
         
            -
            \ 
     | 
| 
      
 12064 
     | 
    
         
            +
            \fBN_ENTRIES\fP は現在の最大クエリーキャッシュエントリー数です。これは数値です。
         
     | 
| 
       11576 
12065 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11577 
12066 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11578 
12067 
     | 
    
         
             
            .SS 参考
         
     | 
| 
         @@ -11896,11 +12385,15 @@ clearlock Entry.body 
     | 
|
| 
       11896 
12385 
     | 
    
         
             
            .SS 関連項目
         
     | 
| 
       11897 
12386 
     | 
    
         
             
            .sp
         
     | 
| 
       11898 
12387 
     | 
    
         
             
            \fBload\fP
         
     | 
| 
       11899 
     | 
    
         
            -
            .SS  
     | 
| 
       11900 
     | 
    
         
            -
            .SS  
     | 
| 
      
 12388 
     | 
    
         
            +
            .SS \fBcolumn_create\fP
         
     | 
| 
      
 12389 
     | 
    
         
            +
            .SS 概要
         
     | 
| 
       11901 
12390 
     | 
    
         
             
            .sp
         
     | 
| 
       11902 
12391 
     | 
    
         
             
            column_create \- カラムの追加
         
     | 
| 
       11903 
     | 
    
         
            -
            . 
     | 
| 
      
 12392 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 12393 
     | 
    
         
            +
            groonga組込コマンドの一つであるcolumn_createについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
         
     | 
| 
      
 12394 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 12395 
     | 
    
         
            +
            column_createは、使用しているデータベースのテーブルに対してカラムを追加します。
         
     | 
| 
      
 12396 
     | 
    
         
            +
            .SS 構文
         
     | 
| 
       11904 
12397 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       11905 
12398 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       11906 
12399 
     | 
    
         
             
            .sp
         
     | 
| 
         @@ -11911,11 +12404,33 @@ column_create table name flags type [source] 
     | 
|
| 
       11911 
12404 
     | 
    
         
             
            .fi
         
     | 
| 
       11912 
12405 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11913 
12406 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11914 
     | 
    
         
            -
            .SS  
     | 
| 
      
 12407 
     | 
    
         
            +
            .SS 使い方
         
     | 
| 
       11915 
12408 
     | 
    
         
             
            .sp
         
     | 
| 
       11916 
     | 
    
         
            -
             
     | 
| 
      
 12409 
     | 
    
         
            +
            テーブルEntryに、ShortText型の値を格納するカラム、bodyを作成します。:
         
     | 
| 
      
 12410 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 12411 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
       11917 
12412 
     | 
    
         
             
            .sp
         
     | 
| 
       11918 
     | 
    
         
            -
             
     | 
| 
      
 12413 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 12414 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 12415 
     | 
    
         
            +
            column_create Entry body \-\-type ShortText
         
     | 
| 
      
 12416 
     | 
    
         
            +
            [true]
         
     | 
| 
      
 12417 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 12418 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 12419 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 12420 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 12421 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 12422 
     | 
    
         
            +
            テーブルTermに、Entryテーブルのbodyカラムの値を対象とする完全転置インデックス型カラム、entry_bodyを作成します。:
         
     | 
| 
      
 12423 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 12424 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 12425 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 12426 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 12427 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 12428 
     | 
    
         
            +
            column_create Term entry_body COLUMN_INDEX|WITH_POSITION Entry body
         
     | 
| 
      
 12429 
     | 
    
         
            +
            [true]
         
     | 
| 
      
 12430 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 12431 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 12432 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 12433 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
       11919 
12434 
     | 
    
         
             
            .SS 引数
         
     | 
| 
       11920 
12435 
     | 
    
         
             
            .sp
         
     | 
| 
       11921 
12436 
     | 
    
         
             
            \fBtable\fP
         
     | 
| 
         @@ -11950,6 +12465,16 @@ column_createは、使用しているデータベースのテーブルに対し 
     | 
|
| 
       11950 
12465 
     | 
    
         
             
            インデックス型のカラムを作成します。
         
     | 
| 
       11951 
12466 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11952 
12467 
     | 
    
         
             
            .sp
         
     | 
| 
      
 12468 
     | 
    
         
            +
            カラムの値を圧縮するためのフラグが2つあります。ただしそれらのフラグを指定することは今のところできません。これはカラムの値を参照するときにメモリリークする問題 \fI\%GitHub#6\fP があるためです。 この問題はzlib、lzoいずれでも発生します。
         
     | 
| 
      
 12469 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 12470 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 12471 
     | 
    
         
            +
            .B 16, \fBCOMPRESS_ZLIB\fP
         
     | 
| 
      
 12472 
     | 
    
         
            +
            予約済み。zlibを使ってカラムの値を圧縮します。このフラグはgroongaを \fB\-\-with\-zlib\fP つきでビルドしても使えません。
         
     | 
| 
      
 12473 
     | 
    
         
            +
            .TP
         
     | 
| 
      
 12474 
     | 
    
         
            +
            .B 32, \fBCOMPRESS_LZO\fP
         
     | 
| 
      
 12475 
     | 
    
         
            +
            予約済み。lzoを使ってカラムの値を圧縮します。このフラグはgroongaを \fB\-\-with\-lzo\fP つきでビルドしても使えません。
         
     | 
| 
      
 12476 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 12477 
     | 
    
         
            +
            .sp
         
     | 
| 
       11953 
12478 
     | 
    
         
             
            インデックス型のカラムについては、flagsの値に以下の値を加えることによって、追加の属
         
     | 
| 
       11954 
12479 
     | 
    
         
             
            性を指定することができます。
         
     | 
| 
       11955 
12480 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
         @@ -11979,50 +12504,29 @@ column_createは、使用しているデータベースのテーブルに対し 
     | 
|
| 
       11979 
12504 
     | 
    
         
             
            インデックス型のカラムを作成した場合は、インデックス対象となるカラムをsource引数に指定します。
         
     | 
| 
       11980 
12505 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11981 
12506 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11982 
     | 
    
         
            -
            .SS  
     | 
| 
       11983 
     | 
    
         
            -
            .SS json形式
         
     | 
| 
      
 12507 
     | 
    
         
            +
            .SS 戻り値
         
     | 
| 
       11984 
12508 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       11985 
12509 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       11986 
12510 
     | 
    
         
             
            .sp
         
     | 
| 
       11987 
12511 
     | 
    
         
             
            .nf
         
     | 
| 
       11988 
12512 
     | 
    
         
             
            .ft C
         
     | 
| 
       11989 
     | 
    
         
            -
            [ 
     | 
| 
      
 12513 
     | 
    
         
            +
            [HEADER, SUCCEEDED]
         
     | 
| 
       11990 
12514 
     | 
    
         
             
            .ft P
         
     | 
| 
       11991 
12515 
     | 
    
         
             
            .fi
         
     | 
| 
       11992 
12516 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11993 
12517 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       11994 
12518 
     | 
    
         
             
            .sp
         
     | 
| 
       11995 
     | 
    
         
            -
            \ 
     | 
| 
       11996 
     | 
    
         
            -
            .INDENT 0.0
         
     | 
| 
       11997 
     | 
    
         
            -
            .INDENT 3.5
         
     | 
| 
       11998 
     | 
    
         
            -
            エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
         
     | 
| 
       11999 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
       12000 
     | 
    
         
            -
            .UNINDENT
         
     | 
| 
       12001 
     | 
    
         
            -
            .SS 例
         
     | 
| 
       12002 
     | 
    
         
            -
            .sp
         
     | 
| 
       12003 
     | 
    
         
            -
            テーブルEntryに、ShortText型の値を格納するカラム、bodyを作成します。:
         
     | 
| 
      
 12519 
     | 
    
         
            +
            \fBHEADER\fP
         
     | 
| 
       12004 
12520 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       12005 
12521 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       12006 
     | 
    
         
            -
             
     | 
| 
       12007 
     | 
    
         
            -
            .nf
         
     | 
| 
       12008 
     | 
    
         
            -
            .ft C
         
     | 
| 
       12009 
     | 
    
         
            -
            column_create Entry body \-\-type ShortText
         
     | 
| 
       12010 
     | 
    
         
            -
            [true]
         
     | 
| 
       12011 
     | 
    
         
            -
            .ft P
         
     | 
| 
       12012 
     | 
    
         
            -
            .fi
         
     | 
| 
      
 12522 
     | 
    
         
            +
            HEADERのフォーマットは  [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME] です。HEADERについては \fB/reference/command/output_format\fP を参照してください。
         
     | 
| 
       12013 
12523 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       12014 
12524 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       12015 
12525 
     | 
    
         
             
            .sp
         
     | 
| 
       12016 
     | 
    
         
            -
             
     | 
| 
      
 12526 
     | 
    
         
            +
            \fBSUCCEEDED\fP
         
     | 
| 
       12017 
12527 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       12018 
12528 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       12019 
     | 
    
         
            -
             
     | 
| 
       12020 
     | 
    
         
            -
            .nf
         
     | 
| 
       12021 
     | 
    
         
            -
            .ft C
         
     | 
| 
       12022 
     | 
    
         
            -
            column_create Term entry_body COLUMN_INDEX|WITH_POSITION Entry body
         
     | 
| 
       12023 
     | 
    
         
            -
            [true]
         
     | 
| 
       12024 
     | 
    
         
            -
            .ft P
         
     | 
| 
       12025 
     | 
    
         
            -
            .fi
         
     | 
| 
      
 12529 
     | 
    
         
            +
            コマンドの実行が成功するとtrueを返します。失敗するとエラーとしてfalseを返します。
         
     | 
| 
       12026 
12530 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       12027 
12531 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       12028 
12532 
     | 
    
         
             
            .SS column_list
         
     | 
| 
         @@ -13399,7 +13903,9 @@ log_reopenコマンドを実行する。 
     | 
|
| 
       13399 
13903 
     | 
    
         
             
            .sp
         
     | 
| 
       13400 
13904 
     | 
    
         
             
            .nf
         
     | 
| 
       13401 
13905 
     | 
    
         
             
            .ft C
         
     | 
| 
       13402 
     | 
    
         
            -
            normalize normalizer 
     | 
| 
      
 13906 
     | 
    
         
            +
            normalize normalizer
         
     | 
| 
      
 13907 
     | 
    
         
            +
                      string
         
     | 
| 
      
 13908 
     | 
    
         
            +
                      [flags=NONE]
         
     | 
| 
       13403 
13909 
     | 
    
         
             
            .ft P
         
     | 
| 
       13404 
13910 
     | 
    
         
             
            .fi
         
     | 
| 
       13405 
13911 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -13435,20 +13941,95 @@ normalize NormalizerAuto "aBcDe 123" 
     | 
|
| 
       13435 
13941 
     | 
    
         
             
            このセクションでは \fBnormalizer\fP の引数について説明します。
         
     | 
| 
       13436 
13942 
     | 
    
         
             
            .SS 必須引数
         
     | 
| 
       13437 
13943 
     | 
    
         
             
            .sp
         
     | 
| 
       13438 
     | 
    
         
            -
            必須引数は二つあります。 \fBnormalizer\fP と \fBstring\fP です。
         
     | 
| 
       13439 
     | 
    
         
            -
            .SS \fBnormalizer\fP
         
     | 
| 
      
 13944 
     | 
    
         
            +
            必須引数は二つあります。 \fBnormalizer\fP と \fBstring\fP です。
         
     | 
| 
      
 13945 
     | 
    
         
            +
            .SS \fBnormalizer\fP
         
     | 
| 
      
 13946 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13947 
     | 
    
         
            +
            ノーマライザー名を指定します。 \fBnormalize\fP コマンドは \fBnormalizer\fP で指定された名前のノーマライザーを使います。
         
     | 
| 
      
 13948 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13949 
     | 
    
         
            +
            組み込みのノーマライザーの一覧は \fB/reference/normalizers\fP にあります。
         
     | 
| 
      
 13950 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13951 
     | 
    
         
            +
            以下は \fBNormalizerAuto\fP ノーマライザーを使う例です。
         
     | 
| 
      
 13952 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13953 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 13954 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13955 
     | 
    
         
            +
            他のノーマライザーを使いたい場合は、 \fBregister\fP コマンドでノーマライザープラグインを登録する必要があります。例えば、 \fI\%groonga\-normalizer\-mysql\fP を登録することでMySQL互換の正規化方法を使うことができます。
         
     | 
| 
      
 13956 
     | 
    
         
            +
            .SS \fBstring\fP
         
     | 
| 
      
 13957 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13958 
     | 
    
         
            +
            正規化したい文字列を指定します。
         
     | 
| 
      
 13959 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13960 
     | 
    
         
            +
            \fBstring\fP の中に文字列を含める場合は、シングルクォート( \fB\(aq\fP )またはダブルクォート( \fB"\fP )で \fBstring\fP をクォートする必要があります。
         
     | 
| 
      
 13961 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13962 
     | 
    
         
            +
            \fBstring\fP の中で空白を使う例です。
         
     | 
| 
      
 13963 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13964 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 13965 
     | 
    
         
            +
            .SS 省略可能引数
         
     | 
| 
      
 13966 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13967 
     | 
    
         
            +
            いくつか省略可能な引数があります。
         
     | 
| 
      
 13968 
     | 
    
         
            +
            .SS \fBflags\fP
         
     | 
| 
      
 13969 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13970 
     | 
    
         
            +
            ノーマライズ処理をカスタマイズするオプションを指定します。「 \fB|\fP 」で区切って複数のオプションを指定することができます。例えば、 \fBREMOVE_BLANK|WITH_TYPES\fP というように指定できます。
         
     | 
| 
      
 13971 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 13972 
     | 
    
         
            +
            指定可能なフラグは以下の通りです。
         
     | 
| 
      
 13973 
     | 
    
         
            +
            .TS
         
     | 
| 
      
 13974 
     | 
    
         
            +
            center;
         
     | 
| 
      
 13975 
     | 
    
         
            +
            |l|l|.
         
     | 
| 
      
 13976 
     | 
    
         
            +
            _
         
     | 
| 
      
 13977 
     | 
    
         
            +
            T{
         
     | 
| 
      
 13978 
     | 
    
         
            +
            フラグ
         
     | 
| 
      
 13979 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 13980 
     | 
    
         
            +
            説明
         
     | 
| 
      
 13981 
     | 
    
         
            +
            T}
         
     | 
| 
      
 13982 
     | 
    
         
            +
            _
         
     | 
| 
      
 13983 
     | 
    
         
            +
            T{
         
     | 
| 
      
 13984 
     | 
    
         
            +
            \fBNONE\fP
         
     | 
| 
      
 13985 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 13986 
     | 
    
         
            +
            無視されます。
         
     | 
| 
      
 13987 
     | 
    
         
            +
            T}
         
     | 
| 
      
 13988 
     | 
    
         
            +
            _
         
     | 
| 
      
 13989 
     | 
    
         
            +
            T{
         
     | 
| 
      
 13990 
     | 
    
         
            +
            \fBREMOVE_BLANK\fP
         
     | 
| 
      
 13991 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 13992 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 13993 
     | 
    
         
            +
            T}
         
     | 
| 
      
 13994 
     | 
    
         
            +
            _
         
     | 
| 
      
 13995 
     | 
    
         
            +
            T{
         
     | 
| 
      
 13996 
     | 
    
         
            +
            \fBWITH_TYPES\fP
         
     | 
| 
      
 13997 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 13998 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 13999 
     | 
    
         
            +
            T}
         
     | 
| 
      
 14000 
     | 
    
         
            +
            _
         
     | 
| 
      
 14001 
     | 
    
         
            +
            T{
         
     | 
| 
      
 14002 
     | 
    
         
            +
            \fBWITH_CHECKS\fP
         
     | 
| 
      
 14003 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 14004 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 14005 
     | 
    
         
            +
            T}
         
     | 
| 
      
 14006 
     | 
    
         
            +
            _
         
     | 
| 
      
 14007 
     | 
    
         
            +
            T{
         
     | 
| 
      
 14008 
     | 
    
         
            +
            \fBREMOVE_TOKENIZED_DELIMITER\fP
         
     | 
| 
      
 14009 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 14010 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 14011 
     | 
    
         
            +
            T}
         
     | 
| 
      
 14012 
     | 
    
         
            +
            _
         
     | 
| 
      
 14013 
     | 
    
         
            +
            .TE
         
     | 
| 
      
 14014 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14015 
     | 
    
         
            +
            以下は \fBREMOVE_BLANK\fP を使った例です。
         
     | 
| 
      
 14016 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14017 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 14018 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14019 
     | 
    
         
            +
            以下は \fBWITH_TYPES\fP を使った例です。
         
     | 
| 
      
 14020 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14021 
     | 
    
         
            +
            TODO
         
     | 
| 
       13440 
14022 
     | 
    
         
             
            .sp
         
     | 
| 
       13441 
     | 
    
         
            -
             
     | 
| 
       13442 
     | 
    
         
            -
            .SS \fBstring\fP
         
     | 
| 
      
 14023 
     | 
    
         
            +
            以下は \fBREMOVE_TOKENIZED_DELIMITER\fP を使った例です。
         
     | 
| 
       13443 
14024 
     | 
    
         
             
            .sp
         
     | 
| 
       13444 
     | 
    
         
            -
             
     | 
| 
      
 14025 
     | 
    
         
            +
            TODO
         
     | 
| 
       13445 
14026 
     | 
    
         
             
            .SS 戻り値
         
     | 
| 
       13446 
14027 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       13447 
14028 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       13448 
14029 
     | 
    
         
             
            .sp
         
     | 
| 
       13449 
14030 
     | 
    
         
             
            .nf
         
     | 
| 
       13450 
14031 
     | 
    
         
             
            .ft C
         
     | 
| 
       13451 
     | 
    
         
            -
            [HEADER,  
     | 
| 
      
 14032 
     | 
    
         
            +
            [HEADER, normalized_text]
         
     | 
| 
       13452 
14033 
     | 
    
         
             
            .ft P
         
     | 
| 
       13453 
14034 
     | 
    
         
             
            .fi
         
     | 
| 
       13454 
14035 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -13461,10 +14042,34 @@ HEADERのフォーマットは  [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_T 
     | 
|
| 
       13461 
14042 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13462 
14043 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13463 
14044 
     | 
    
         
             
            .sp
         
     | 
| 
       13464 
     | 
    
         
            -
            \ 
     | 
| 
      
 14045 
     | 
    
         
            +
            \fBnormalized_text\fP
         
     | 
| 
       13465 
14046 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       13466 
14047 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       13467 
     | 
    
         
            -
             
     | 
| 
      
 14048 
     | 
    
         
            +
            \fBnormalized_text\fP はオブジェクトです。このオブジェクトは以下の属性を持っています。
         
     | 
| 
      
 14049 
     | 
    
         
            +
            .TS
         
     | 
| 
      
 14050 
     | 
    
         
            +
            center;
         
     | 
| 
      
 14051 
     | 
    
         
            +
            |l|l|.
         
     | 
| 
      
 14052 
     | 
    
         
            +
            _
         
     | 
| 
      
 14053 
     | 
    
         
            +
            T{
         
     | 
| 
      
 14054 
     | 
    
         
            +
            名前
         
     | 
| 
      
 14055 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 14056 
     | 
    
         
            +
            説明
         
     | 
| 
      
 14057 
     | 
    
         
            +
            T}
         
     | 
| 
      
 14058 
     | 
    
         
            +
            _
         
     | 
| 
      
 14059 
     | 
    
         
            +
            T{
         
     | 
| 
      
 14060 
     | 
    
         
            +
            \fBnormalized\fP
         
     | 
| 
      
 14061 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 14062 
     | 
    
         
            +
            正規化されたテキスト。
         
     | 
| 
      
 14063 
     | 
    
         
            +
            T}
         
     | 
| 
      
 14064 
     | 
    
         
            +
            _
         
     | 
| 
      
 14065 
     | 
    
         
            +
            T{
         
     | 
| 
      
 14066 
     | 
    
         
            +
            \fBtypes\fP
         
     | 
| 
      
 14067 
     | 
    
         
            +
            T}	T{
         
     | 
| 
      
 14068 
     | 
    
         
            +
            An array of types of the normalized text. The N\-th \fBtypes\fP shows
         
     | 
| 
      
 14069 
     | 
    
         
            +
            the type of the N\-th character in \fBnormalized\fP.
         
     | 
| 
      
 14070 
     | 
    
         
            +
            T}
         
     | 
| 
      
 14071 
     | 
    
         
            +
            _
         
     | 
| 
      
 14072 
     | 
    
         
            +
            .TE
         
     | 
| 
       13468 
14073 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13469 
14074 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13470 
14075 
     | 
    
         
             
            .SS 参考
         
     | 
| 
         @@ -13575,7 +14180,7 @@ register query_expanders/tsv 
     | 
|
| 
       13575 
14180 
     | 
    
         
             
            .SS \fBruby_eval\fP
         
     | 
| 
       13576 
14181 
     | 
    
         
             
            .SS 概要
         
     | 
| 
       13577 
14182 
     | 
    
         
             
            .sp
         
     | 
| 
       13578 
     | 
    
         
            -
            \fBruby_eval\fP  
     | 
| 
      
 14183 
     | 
    
         
            +
            \fBruby_eval\fP コマンドはRubyスクリプトを評価して評価結果を返します。
         
     | 
| 
       13579 
14184 
     | 
    
         
             
            .SS 構文
         
     | 
| 
       13580 
14185 
     | 
    
         
             
            .sp
         
     | 
| 
       13581 
14186 
     | 
    
         
             
            \fBruby_eval\fP には必須な引数が1つあります:
         
     | 
| 
         @@ -13584,16 +14189,16 @@ register query_expanders/tsv 
     | 
|
| 
       13584 
14189 
     | 
    
         
             
            .sp
         
     | 
| 
       13585 
14190 
     | 
    
         
             
            .nf
         
     | 
| 
       13586 
14191 
     | 
    
         
             
            .ft C
         
     | 
| 
       13587 
     | 
    
         
            -
            ruby_eval  
     | 
| 
      
 14192 
     | 
    
         
            +
            ruby_eval script
         
     | 
| 
       13588 
14193 
     | 
    
         
             
            .ft P
         
     | 
| 
       13589 
14194 
     | 
    
         
             
            .fi
         
     | 
| 
       13590 
14195 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13591 
14196 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13592 
14197 
     | 
    
         
             
            .SS 使い方
         
     | 
| 
       13593 
14198 
     | 
    
         
             
            .sp
         
     | 
| 
       13594 
     | 
    
         
            -
             
     | 
| 
      
 14199 
     | 
    
         
            +
            \fBruby_eval\fP を使うと、mrubyがサポートしているスクリプトを実行できます。
         
     | 
| 
       13595 
14200 
     | 
    
         
             
            .sp
         
     | 
| 
       13596 
     | 
    
         
            -
             
     | 
| 
      
 14201 
     | 
    
         
            +
            Ruby \fB1 + 2\fP という計算するだけの例です。
         
     | 
| 
       13597 
14202 
     | 
    
         
             
            .sp
         
     | 
| 
       13598 
14203 
     | 
    
         
             
            実行例:
         
     | 
| 
       13599 
14204 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
         @@ -13616,18 +14221,18 @@ ruby_eval "1 + 2" 
     | 
|
| 
       13616 
14221 
     | 
    
         
             
            .SS 引数
         
     | 
| 
       13617 
14222 
     | 
    
         
             
            .sp
         
     | 
| 
       13618 
14223 
     | 
    
         
             
            このセクションではすべての引数について説明します。
         
     | 
| 
       13619 
     | 
    
         
            -
            .SS \ 
     | 
| 
      
 14224 
     | 
    
         
            +
            .SS \fBscript\fP
         
     | 
| 
       13620 
14225 
     | 
    
         
             
            .sp
         
     | 
| 
       13621 
     | 
    
         
            -
            評価したいruby 
     | 
| 
      
 14226 
     | 
    
         
            +
            評価したいrubyスクリプトを指定します。
         
     | 
| 
       13622 
14227 
     | 
    
         
             
            .SS 戻り値
         
     | 
| 
       13623 
14228 
     | 
    
         
             
            .sp
         
     | 
| 
       13624 
     | 
    
         
            -
            \fBruby_eval\fP  
     | 
| 
      
 14229 
     | 
    
         
            +
            \fBruby_eval\fP は例外情報などのメタデータつきで評価結果を返します(メタデータはまだ実装されていないので今のところ含まれません):
         
     | 
| 
       13625 
14230 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       13626 
14231 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       13627 
14232 
     | 
    
         
             
            .sp
         
     | 
| 
       13628 
14233 
     | 
    
         
             
            .nf
         
     | 
| 
       13629 
14234 
     | 
    
         
             
            .ft C
         
     | 
| 
       13630 
     | 
    
         
            -
            [ 
     | 
| 
      
 14235 
     | 
    
         
            +
            [HEADER, {"value": EVALUATED_VALUE}]
         
     | 
| 
       13631 
14236 
     | 
    
         
             
            .ft P
         
     | 
| 
       13632 
14237 
     | 
    
         
             
            .fi
         
     | 
| 
       13633 
14238 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
         @@ -13640,36 +14245,79 @@ ruby_eval "1 + 2" 
     | 
|
| 
       13640 
14245 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13641 
14246 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13642 
14247 
     | 
    
         
             
            .sp
         
     | 
| 
       13643 
     | 
    
         
            -
            \ 
     | 
| 
      
 14248 
     | 
    
         
            +
            \fBEVALUATED_VALUE\fP
         
     | 
| 
       13644 
14249 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
       13645 
14250 
     | 
    
         
             
            .INDENT 3.5
         
     | 
| 
       13646 
     | 
    
         
            -
            \ 
     | 
| 
       13647 
     | 
    
         
            -
            . 
     | 
| 
       13648 
     | 
    
         
            -
             
     | 
| 
       13649 
     | 
    
         
            -
             
     | 
| 
       13650 
     | 
    
         
            -
             
     | 
| 
       13651 
     | 
    
         
            -
             
     | 
| 
       13652 
     | 
    
         
            -
             
     | 
| 
       13653 
     | 
    
         
            -
             
     | 
| 
       13654 
     | 
    
         
            -
             
     | 
| 
       13655 
     | 
    
         
            -
             
     | 
| 
       13656 
     | 
    
         
            -
             
     | 
| 
       13657 
     | 
    
         
            -
             
     | 
| 
       13658 
     | 
    
         
            -
            \ 
     | 
| 
       13659 
     | 
    
         
            -
             
     | 
| 
       13660 
     | 
    
         
            -
             
     | 
| 
       13661 
     | 
    
         
            -
             
     | 
| 
       13662 
     | 
    
         
            -
             
     | 
| 
       13663 
     | 
    
         
            -
             
     | 
| 
       13664 
     | 
    
         
            -
             
     | 
| 
       13665 
     | 
    
         
            -
             
     | 
| 
       13666 
     | 
    
         
            -
             
     | 
| 
       13667 
     | 
    
         
            -
             
     | 
| 
       13668 
     | 
    
         
            -
             
     | 
| 
       13669 
     | 
    
         
            -
            . 
     | 
| 
      
 14251 
     | 
    
         
            +
            \fBEVALUATED_VALUE\fP は \fBruby_script\fP を評価した値です。
         
     | 
| 
      
 14252 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14253 
     | 
    
         
            +
            今のところ、 \fBruby_eval\fP は評価された値として数値だけサポートしています。サポートしている型は今後増えていく予定です。
         
     | 
| 
      
 14254 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14255 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14256 
     | 
    
         
            +
            .SS 参考
         
     | 
| 
      
 14257 
     | 
    
         
            +
            .SS \fBruby_load\fP
         
     | 
| 
      
 14258 
     | 
    
         
            +
            .SS 概要
         
     | 
| 
      
 14259 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14260 
     | 
    
         
            +
            \fBruby_load\fP コマンドは指定したRubyスクリプトを読み込みます。
         
     | 
| 
      
 14261 
     | 
    
         
            +
            .SS 構文
         
     | 
| 
      
 14262 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14263 
     | 
    
         
            +
            \fBruby_load\fP には必須な引数が1つあります:
         
     | 
| 
      
 14264 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 14265 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 14266 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14267 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 14268 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 14269 
     | 
    
         
            +
            ruby_load path
         
     | 
| 
      
 14270 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 14271 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 14272 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14273 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14274 
     | 
    
         
            +
            .SS 使い方
         
     | 
| 
      
 14275 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14276 
     | 
    
         
            +
            \fBruby_load\fP を使ってmrubyがサポートしているスクリプトを読み込むことができます。
         
     | 
| 
      
 14277 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14278 
     | 
    
         
            +
            Rubyスクリプトとして \fBexpression.rb\fP を単に読むこむ例です。
         
     | 
| 
      
 14279 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14280 
     | 
    
         
            +
            \fBruby_load\fP コマンドを使うには事前に \fBruby/load\fP プラグインを登録します。
         
     | 
| 
      
 14281 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14282 
     | 
    
         
            +
            \fBruby_load\fP コマンドは実験的なプラグインです。このコマンドは将来的に変更されるかも知れません。
         
     | 
| 
      
 14283 
     | 
    
         
            +
            .SS 引数
         
     | 
| 
      
 14284 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14285 
     | 
    
         
            +
            このセクションではすべての引数について説明します。
         
     | 
| 
      
 14286 
     | 
    
         
            +
            .SS \fBpath\fP
         
     | 
| 
      
 14287 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14288 
     | 
    
         
            +
            読み込みたいrubyスクリプトを指定します。
         
     | 
| 
      
 14289 
     | 
    
         
            +
            .SS 戻り値
         
     | 
| 
      
 14290 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14291 
     | 
    
         
            +
            \fBruby_load\fP は例外情報などのメタデータつきで読み込んだ結果を返します(メタデータはまだ実装されていないので今のところ含まれません):
         
     | 
| 
      
 14292 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 14293 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 14294 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14295 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 14296 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 14297 
     | 
    
         
            +
            [HEADER, {"value": LOADED_VALUE}]
         
     | 
| 
      
 14298 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 14299 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 14300 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14301 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14302 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14303 
     | 
    
         
            +
            \fBHEADER\fP
         
     | 
| 
      
 14304 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 14305 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 14306 
     | 
    
         
            +
            \fBHEADER\fP については \fB/reference/command/output_format\fP を参照してください。
         
     | 
| 
      
 14307 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14308 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 14309 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14310 
     | 
    
         
            +
            \fBLOADED_VALUE\fP
         
     | 
| 
      
 14311 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 14312 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 14313 
     | 
    
         
            +
            \fBLOADED_VALUE\fP はrubyスクリプトを読み込んだ結果です。
         
     | 
| 
      
 14314 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14315 
     | 
    
         
            +
            \fBruby_load\fP は \fBLOADED_VALUE\fP としていまのところは単に \fBnull\fP を返します。将来的には \fBLOADED_VALUE\fP がサポートされる予定です。
         
     | 
| 
       13670 
14316 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13671 
14317 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       13672 
14318 
     | 
    
         
             
            .SS 参考
         
     | 
| 
      
 14319 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 14320 
     | 
    
         
            +
            \fB/reference/commands/ruby_eval\fP
         
     | 
| 
       13673 
14321 
     | 
    
         
             
            .SS \fBselect\fP
         
     | 
| 
       13674 
14322 
     | 
    
         
             
            .SS 概要
         
     | 
| 
       13675 
14323 
     | 
    
         
             
            .sp
         
     | 
| 
         @@ -17386,7 +18034,7 @@ tokenize TokenBigram "Fulltext Search" 
     | 
|
| 
       17386 
18034 
     | 
    
         
             
            .sp
         
     | 
| 
       17387 
18035 
     | 
    
         
             
            組み込みのトークナイザーについては \fB/reference/tokenizers\fP を参照してください。
         
     | 
| 
       17388 
18036 
     | 
    
         
             
            .sp
         
     | 
| 
       17389 
     | 
    
         
            -
             
     | 
| 
      
 18037 
     | 
    
         
            +
            以下は組み込みの \fBTokenTrigram\fP トークナイザーを使う例です。
         
     | 
| 
       17390 
18038 
     | 
    
         
             
            .sp
         
     | 
| 
       17391 
18039 
     | 
    
         
             
            実行例:
         
     | 
| 
       17392 
18040 
     | 
    
         
             
            .INDENT 0.0
         
     | 
| 
         @@ -17469,10 +18117,12 @@ tokenize TokenTrigram "Fulltext Search" 
     | 
|
| 
       17469 
18117 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       17470 
18118 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       17471 
18119 
     | 
    
         
             
            .sp
         
     | 
| 
       17472 
     | 
    
         
            -
            他のトークナイザーを使いたい場合は、 \fBregister\fP コマンドでトークナイザープラグインを登録する必要があります。例えば、 \fI\% 
     | 
| 
      
 18120 
     | 
    
         
            +
            他のトークナイザーを使いたい場合は、 \fBregister\fP コマンドでトークナイザープラグインを登録する必要があります。例えば、 \fI\%KyTea\fP ベースのトークナイザーを \fBtokenizers/kytea\fP を登録することで使えます。
         
     | 
| 
       17473 
18121 
     | 
    
         
             
            .SS \fBstring\fP
         
     | 
| 
       17474 
18122 
     | 
    
         
             
            .sp
         
     | 
| 
       17475 
     | 
    
         
            -
            トークナイズしたい文字列を指定します。 
     | 
| 
      
 18123 
     | 
    
         
            +
            トークナイズしたい文字列を指定します。
         
     | 
| 
      
 18124 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 18125 
     | 
    
         
            +
            \fBstring\fP の中に文字列を含める場合は、シングルクォート( \fB\(aq\fP )またはダブルクォート( \fB"\fP )で \fBstring\fP をクォートする必要があります。
         
     | 
| 
       17476 
18126 
     | 
    
         
             
            .sp
         
     | 
| 
       17477 
18127 
     | 
    
         
             
            \fBstring\fP の中で空白を使う例です。
         
     | 
| 
       17478 
18128 
     | 
    
         
             
            .sp
         
     | 
| 
         @@ -25146,6 +25796,219 @@ rc=0 
     | 
|
| 
       25146 
25796 
     | 
    
         
             
            .fi
         
     | 
| 
       25147 
25797 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       25148 
25798 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
      
 25799 
     | 
    
         
            +
            .SS Tuning
         
     | 
| 
      
 25800 
     | 
    
         
            +
            .SS 概要
         
     | 
| 
      
 25801 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25802 
     | 
    
         
            +
            There are some tuning parameters for improving groonga performance or
         
     | 
| 
      
 25803 
     | 
    
         
            +
            handling a large database.
         
     | 
| 
      
 25804 
     | 
    
         
            +
            .SS 引数
         
     | 
| 
      
 25805 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25806 
     | 
    
         
            +
            このセクションではすべての引数について説明します。
         
     | 
| 
      
 25807 
     | 
    
         
            +
            .SS The max number of open files per process
         
     | 
| 
      
 25808 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25809 
     | 
    
         
            +
            This parameter is for handling a large database.
         
     | 
| 
      
 25810 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25811 
     | 
    
         
            +
            Groonga creates one or more files per table and colum. If your
         
     | 
| 
      
 25812 
     | 
    
         
            +
            database has many tables and columns, groonga process needs to open
         
     | 
| 
      
 25813 
     | 
    
         
            +
            many files.
         
     | 
| 
      
 25814 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25815 
     | 
    
         
            +
            System limits the max number of open files per process. So you need to
         
     | 
| 
      
 25816 
     | 
    
         
            +
            relax the limitation.
         
     | 
| 
      
 25817 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25818 
     | 
    
         
            +
            Here is an expression that compute how many files are opened by
         
     | 
| 
      
 25819 
     | 
    
         
            +
            groonga:
         
     | 
| 
      
 25820 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25821 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25822 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25823 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25824 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25825 
     | 
    
         
            +
            3 (for DB) +
         
     | 
| 
      
 25826 
     | 
    
         
            +
              N tables +
         
     | 
| 
      
 25827 
     | 
    
         
            +
              N columns (except index clumns) +
         
     | 
| 
      
 25828 
     | 
    
         
            +
              (N index columns * 2) +
         
     | 
| 
      
 25829 
     | 
    
         
            +
              X (the number of plugins etc.)
         
     | 
| 
      
 25830 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25831 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25832 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25833 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25834 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25835 
     | 
    
         
            +
            以下はスキーマの例です。
         
     | 
| 
      
 25836 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25837 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25838 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25839 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25840 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25841 
     | 
    
         
            +
            table_create Entries TABLE_HASH_KEY ShortText
         
     | 
| 
      
 25842 
     | 
    
         
            +
            column_create Entries content COLUMN_SCALAR Text
         
     | 
| 
      
 25843 
     | 
    
         
            +
            column_create Entries n_likes COLUMN_SCALAR UInt32
         
     | 
| 
      
 25844 
     | 
    
         
            +
            table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText \-\-default_tokenizer TokenBigram
         
     | 
| 
      
 25845 
     | 
    
         
            +
            column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
         
     | 
| 
      
 25846 
     | 
    
         
            +
            column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
         
     | 
| 
      
 25847 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25848 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25849 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25850 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25851 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25852 
     | 
    
         
            +
            This example opens at least 11 files:
         
     | 
| 
      
 25853 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25854 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25855 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25856 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25857 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25858 
     | 
    
         
            +
            3 +
         
     | 
| 
      
 25859 
     | 
    
         
            +
              2 (Entries and Terms) +
         
     | 
| 
      
 25860 
     | 
    
         
            +
              2 (Entries.content and Entries.n_likes) +
         
     | 
| 
      
 25861 
     | 
    
         
            +
              4 (Terms.entries_key_index and Terms.entries_content_index) +
         
     | 
| 
      
 25862 
     | 
    
         
            +
              X = 11 + X
         
     | 
| 
      
 25863 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25864 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25865 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25866 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25867 
     | 
    
         
            +
            .SS メモリ使用量
         
     | 
| 
      
 25868 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25869 
     | 
    
         
            +
            This parameter is for handling a large database.
         
     | 
| 
      
 25870 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25871 
     | 
    
         
            +
            Groonga maps database files onto memory and accesses to them. Groonga
         
     | 
| 
      
 25872 
     | 
    
         
            +
            doesn\(aqt maps unnecessary files onto memory until they are nneded.
         
     | 
| 
      
 25873 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25874 
     | 
    
         
            +
            If you access to all data in database, all database files are mapped
         
     | 
| 
      
 25875 
     | 
    
         
            +
            onto memory.  If total size of your database files is 6GiB, your
         
     | 
| 
      
 25876 
     | 
    
         
            +
            groonga process uses 6GiB memory.
         
     | 
| 
      
 25877 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25878 
     | 
    
         
            +
            Normally, your all database files aren\(aqt mapped onto memry. But is may
         
     | 
| 
      
 25879 
     | 
    
         
            +
            be occurred. It is an example case that you dump your database.
         
     | 
| 
      
 25880 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25881 
     | 
    
         
            +
            You must have memory and swap that is larger than database.
         
     | 
| 
      
 25882 
     | 
    
         
            +
            .SS Linux
         
     | 
| 
      
 25883 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25884 
     | 
    
         
            +
            このセクションではLinux上で引数をカスタマイズする方法について説明します。
         
     | 
| 
      
 25885 
     | 
    
         
            +
            .SS nofile
         
     | 
| 
      
 25886 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25887 
     | 
    
         
            +
            You can relax the \fItuning\-max\-n\-open\-files\fP parameter by creating
         
     | 
| 
      
 25888 
     | 
    
         
            +
            a configuration file \fB/etc/security/limits.d/groonga.conf\fP that has
         
     | 
| 
      
 25889 
     | 
    
         
            +
            the following content:
         
     | 
| 
      
 25890 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25891 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25892 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25893 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25894 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25895 
     | 
    
         
            +
            ${USER} soft nofile ${MAX_VALUE}
         
     | 
| 
      
 25896 
     | 
    
         
            +
            ${USER} hard nofile ${MAX_VALUE}
         
     | 
| 
      
 25897 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25898 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25899 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25900 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25901 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25902 
     | 
    
         
            +
            If you run \fBgroonga\fP process by \fBgroonga\fP user and your groonga
         
     | 
| 
      
 25903 
     | 
    
         
            +
            process needs to open less than 10000 files, use the following
         
     | 
| 
      
 25904 
     | 
    
         
            +
            configuration:
         
     | 
| 
      
 25905 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25906 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25907 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25908 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25909 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25910 
     | 
    
         
            +
            groonga soft nofile 10000
         
     | 
| 
      
 25911 
     | 
    
         
            +
            groonga hard nofile 10000
         
     | 
| 
      
 25912 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25913 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25914 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25915 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25916 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25917 
     | 
    
         
            +
            The configuration is applied after your groonga service is restarted
         
     | 
| 
      
 25918 
     | 
    
         
            +
            or re\-login as your groonga user.
         
     | 
| 
      
 25919 
     | 
    
         
            +
            .SS vm.overcommit_memory
         
     | 
| 
      
 25920 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25921 
     | 
    
         
            +
            This is \fItuning\-memory\-usage\fP related parameter. You can handle a
         
     | 
| 
      
 25922 
     | 
    
         
            +
            database that is larger than your memory and swap by setting
         
     | 
| 
      
 25923 
     | 
    
         
            +
            \fBvm.overcommit_memory\fP kernel parameter to 1. 1 means that groonga
         
     | 
| 
      
 25924 
     | 
    
         
            +
            can always map database files onto memory. It is no problem until
         
     | 
| 
      
 25925 
     | 
    
         
            +
            groonga touch mapped database files that their size is larger than
         
     | 
| 
      
 25926 
     | 
    
         
            +
            memory and swap. Groonga recommends the configuration.
         
     | 
| 
      
 25927 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25928 
     | 
    
         
            +
            See \fI\%Linux kernel documentaion about overcommit\fP
         
     | 
| 
      
 25929 
     | 
    
         
            +
            about \fBvm.overcommit_memory\fP parameter details.
         
     | 
| 
      
 25930 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25931 
     | 
    
         
            +
            You can set the configuration by putting a configuration file
         
     | 
| 
      
 25932 
     | 
    
         
            +
            \fB/etc/sysctl.d/groonga.conf\fP that has the following content:
         
     | 
| 
      
 25933 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25934 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25935 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25936 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25937 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25938 
     | 
    
         
            +
            vm.overcommit_memory = 1
         
     | 
| 
      
 25939 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25940 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25941 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25942 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25943 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25944 
     | 
    
         
            +
            設定した内容はシステムを再起動するか、次のコマンドを実行することで反映されます。:
         
     | 
| 
      
 25945 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25946 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25947 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25948 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25949 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25950 
     | 
    
         
            +
            % sudo sysctl \-p
         
     | 
| 
      
 25951 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25952 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25953 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25954 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25955 
     | 
    
         
            +
            .SS vm.max_map_count
         
     | 
| 
      
 25956 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25957 
     | 
    
         
            +
            This is \fItuning\-memory\-usage\fP related parameter. You can handle a
         
     | 
| 
      
 25958 
     | 
    
         
            +
            16GiB or more larger size database by increasing \fBvm.max_map_count\fP
         
     | 
| 
      
 25959 
     | 
    
         
            +
            kernel parameter. The parameter limits the max number of memory maps.
         
     | 
| 
      
 25960 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25961 
     | 
    
         
            +
            The default value of the kernel parameter may be 65530 or 65536.
         
     | 
| 
      
 25962 
     | 
    
         
            +
            Groonga maps 256KiB memory chunk at one time. If a database is larger
         
     | 
| 
      
 25963 
     | 
    
         
            +
            than 16GiB, groonga reaches the limitation. (\fB256KiB * 65536 = 16GiB\fP)
         
     | 
| 
      
 25964 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25965 
     | 
    
         
            +
            You needs to increase the value of the kernel parameter to handle
         
     | 
| 
      
 25966 
     | 
    
         
            +
            16GiB or more larger size database. For example, you can handle almost
         
     | 
| 
      
 25967 
     | 
    
         
            +
            32GiB size database by \fB65536 * 2 = 131072\fP. You can set the
         
     | 
| 
      
 25968 
     | 
    
         
            +
            configuration by putting a configuration file
         
     | 
| 
      
 25969 
     | 
    
         
            +
            \fB/etc/sysctl.d/groonga.conf\fP that has the following content:
         
     | 
| 
      
 25970 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25971 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25972 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25973 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25974 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25975 
     | 
    
         
            +
            vm.max_map_count = 131072
         
     | 
| 
      
 25976 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25977 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25978 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25979 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25980 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25981 
     | 
    
         
            +
            Note that your real confiugration file will be the following because
         
     | 
| 
      
 25982 
     | 
    
         
            +
            you already have \fBvm.overcommit_memory\fP configuration:
         
     | 
| 
      
 25983 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25984 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25985 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25986 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 25987 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 25988 
     | 
    
         
            +
            vm.overcommit_memory = 1
         
     | 
| 
      
 25989 
     | 
    
         
            +
            vm.max_map_count = 131072
         
     | 
| 
      
 25990 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 25991 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 25992 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25993 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 25994 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25995 
     | 
    
         
            +
            設定した内容はシステムを再起動するか、次のコマンドを実行することで反映されます。:
         
     | 
| 
      
 25996 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 25997 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 25998 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 25999 
     | 
    
         
            +
            .nf
         
     | 
| 
      
 26000 
     | 
    
         
            +
            .ft C
         
     | 
| 
      
 26001 
     | 
    
         
            +
            % sudo sysctl \-p
         
     | 
| 
      
 26002 
     | 
    
         
            +
            .ft P
         
     | 
| 
      
 26003 
     | 
    
         
            +
            .fi
         
     | 
| 
      
 26004 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 26005 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 26006 
     | 
    
         
            +
            .SS FreeBSD
         
     | 
| 
      
 26007 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 26008 
     | 
    
         
            +
            このセクションではFreeBSD上で引数をカスタマイズする方法を説明します。
         
     | 
| 
      
 26009 
     | 
    
         
            +
            .SS kern.maxfileperproc
         
     | 
| 
      
 26010 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 26011 
     | 
    
         
            +
            TODO
         
     | 
| 
       25149 
26012 
     | 
    
         
             
            .SS API
         
     | 
| 
       25150 
26013 
     | 
    
         
             
            .sp
         
     | 
| 
       25151 
26014 
     | 
    
         
             
            groongaを全文検索ライブラリとして使うことができます。この節ではgroongaが提供しているAPIを示します。
         
     | 
| 
         @@ -28353,6 +29216,52 @@ TokenBigramIgnoreBlankSplitSymbolAlphaDigit: 記号・アルファベット・ 
     | 
|
| 
       28353 
29216 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       28354 
29217 
     | 
    
         
             
            .sp
         
     | 
| 
       28355 
29218 
     | 
    
         
             
            この場合も対策方法1同様、検索ノイズが上位に現れる可能性が高くなることに注意してください。検索ノイズが多くなった場合は指定する値を低くする必要があります。
         
     | 
| 
      
 29219 
     | 
    
         
            +
            .SS mmap Cannot allocate memoryエラーを回避するには
         
     | 
| 
      
 29220 
     | 
    
         
            +
            .SS 例
         
     | 
| 
      
 29221 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29222 
     | 
    
         
            +
            ログファイルに以下のようなmmapエラーが存在する場合があります。:
         
     | 
| 
      
 29223 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 29224 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 29225 
     | 
    
         
            +
            2013\-06\-04 08:19:34.835218|A|4e86e700|mmap(4194304,551,432017408)=Cannot allocate memory <13036498944>
         
     | 
| 
      
 29226 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 29227 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 29228 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29229 
     | 
    
         
            +
            <13036498944> はこの場合mmapの合計サイズ(約12GB)です。
         
     | 
| 
      
 29230 
     | 
    
         
            +
            .SS 対策方法
         
     | 
| 
      
 29231 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29232 
     | 
    
         
            +
            以下の観点を確認する必要があります。
         
     | 
| 
      
 29233 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 29234 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 29235 
     | 
    
         
            +
            十分なメモリの空きが存在するか?
         
     | 
| 
      
 29236 
     | 
    
         
            +
            .IP \(bu 2
         
     | 
| 
      
 29237 
     | 
    
         
            +
            マッピング最大数を超過していないか?
         
     | 
| 
      
 29238 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 29239 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29240 
     | 
    
         
            +
            十分な空きメモリがあるかを調べるために、vmstat コマンドを使うことができます。
         
     | 
| 
      
 29241 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29242 
     | 
    
         
            +
            最大マッピング数を超過しているかどうかを確認するために、 vm.max_map_count の値を調べることができます。
         
     | 
| 
      
 29243 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29244 
     | 
    
         
            +
            もしこの問題が vm.max_map_count の値を調整することで解決するなら、これが原因です。
         
     | 
| 
      
 29245 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29246 
     | 
    
         
            +
            groongaはメモリを256KBごとに確保するので、扱えるデータベースのサイズを以下の式で見積ることができます:
         
     | 
| 
      
 29247 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 29248 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 29249 
     | 
    
         
            +
            (database size) = vm.max_map_count * (memory chunks)
         
     | 
| 
      
 29250 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 29251 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 29252 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29253 
     | 
    
         
            +
            16GBを超えるデータベースを扱うには、少くとも65536を vm.max_map_count の値として設定しないといけません。
         
     | 
| 
      
 29254 
     | 
    
         
            +
            .INDENT 0.0
         
     | 
| 
      
 29255 
     | 
    
         
            +
            .INDENT 3.5
         
     | 
| 
      
 29256 
     | 
    
         
            +
            database size (16GB) = vm.max_map_count (65536) * memory chunks (256KB)
         
     | 
| 
      
 29257 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 29258 
     | 
    
         
            +
            .UNINDENT
         
     | 
| 
      
 29259 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29260 
     | 
    
         
            +
            sudo sysctl \-w vm.max_map_count=65536 で一時的に vm.max_map_count を調整することができます。
         
     | 
| 
      
 29261 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29262 
     | 
    
         
            +
            その後、設定値を /etc/sysctl.conf もしくは \fI/etc/sysctl.d/*.conf\fP へと保存します。
         
     | 
| 
      
 29263 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29264 
     | 
    
         
            +
            チューニング関連のパラメータについては、 \fB/reference/tuning\fP のドキュメントを参照してください。
         
     | 
| 
       28356 
29265 
     | 
    
         
             
            .SH 開発
         
     | 
| 
       28357 
29266 
     | 
    
         
             
            .sp
         
     | 
| 
       28358 
29267 
     | 
    
         
             
            このセクションではgroongaを使った開発について説明します。例えば、groongaをデータベースとして使ったアプリケーション、libgroongaを使ったライブラリ、libgroongaの言語バインディングなどを開発することがあるでしょう。
         
     | 
| 
         @@ -28595,6 +29504,8 @@ groongaのドキュメントは、Sphinxというツールを用いて作成さ 
     | 
|
| 
       28595 
29504 
     | 
    
         
             
            .fi
         
     | 
| 
       28596 
29505 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
       28597 
29506 
     | 
    
         
             
            .UNINDENT
         
     | 
| 
      
 29507 
     | 
    
         
            +
            .sp
         
     | 
| 
      
 29508 
     | 
    
         
            +
            このドキュメントはソースアーカイブの形式で配布され、随時更新しています。最新のドキュメントをソース形式で参照したいなら、GitHubのリポジトリブラウザ経由で閲覧できます。(\fI\%https://github.com/groonga/groonga/tree/master/doc/source\fP)
         
     | 
| 
       28598 
29509 
     | 
    
         
             
            .SS pdfの作成
         
     | 
| 
       28599 
29510 
     | 
    
         
             
            .sp
         
     | 
| 
       28600 
29511 
     | 
    
         
             
            groongaのドキュメントは、pdf出力することもできます。rst2pdfと、IPAフォント(IPA Gothic/IPAexGothic)が必要となります。
         
     |