rroonga 2.1.3-x86-mingw32 → 3.0.0-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.
- data/bin/grndump +1 -1
- data/doc/text/news.textile +22 -4
- data/ext/groonga/rb-grn-accessor.c +1 -1
- data/ext/groonga/rb-grn-array-cursor.c +1 -1
- data/ext/groonga/rb-grn-array.c +218 -2
- data/ext/groonga/rb-grn-column.c +1 -1
- data/ext/groonga/rb-grn-context.c +1 -1
- data/ext/groonga/rb-grn-database.c +1 -1
- data/ext/groonga/rb-grn-double-array-trie-cursor.c +1 -1
- data/ext/groonga/rb-grn-double-array-trie.c +1 -1
- data/ext/groonga/rb-grn-encoding-support.c +1 -1
- data/ext/groonga/rb-grn-encoding.c +1 -1
- data/ext/groonga/rb-grn-exception.c +1 -1
- data/ext/groonga/rb-grn-expression-builder.c +1 -1
- data/ext/groonga/rb-grn-expression.c +1 -1
- data/ext/groonga/rb-grn-fix-size-column.c +1 -1
- data/ext/groonga/rb-grn-geo-point.c +1 -1
- data/ext/groonga/rb-grn-hash-cursor.c +1 -1
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +1 -1
- data/ext/groonga/rb-grn-index-cursor.c +1 -1
- data/ext/groonga/rb-grn-logger.c +1 -1
- data/ext/groonga/rb-grn-normalizer.c +1 -1
- data/ext/groonga/rb-grn-object.c +7 -7
- data/ext/groonga/rb-grn-operator.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie.c +1 -1
- data/ext/groonga/rb-grn-plugin.c +1 -1
- data/ext/groonga/rb-grn-posting.c +1 -1
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-record.c +1 -1
- data/ext/groonga/rb-grn-snippet.c +1 -1
- data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
- data/ext/groonga/rb-grn-table-cursor.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +1 -1
- data/ext/groonga/rb-grn-table.c +1 -1
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +1 -1
- data/ext/groonga/rb-grn-variable-size-column.c +1 -1
- data/ext/groonga/rb-grn-variable.c +1 -1
- data/ext/groonga/rb-grn.h +4 -4
- data/ext/groonga/rb-groonga.c +1 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/groonga/context.rb +93 -13
- data/rroonga-build.rb +2 -2
- data/test/groonga-test-utils.rb +2 -1
- data/test/test-array.rb +86 -2
- data/test/test-context.rb +22 -2
- 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.exe +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +1 -1
- data/vendor/local/include/groonga/groonga.h +16 -8
- data/vendor/local/include/groonga/groonga/nfkc.h +32 -0
- data/vendor/local/include/groonga/groonga/plugin.h +39 -21
- data/vendor/local/include/groonga/groonga/tokenizer.h +4 -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/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/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/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +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/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +9 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +12 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +20 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +28 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +12 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +8 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -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 +36 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +11 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +112 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/check.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_remove.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +79 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/define_selector.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +51 -51
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_put.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_reopen.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +85 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +98 -89
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +73 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +124 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +24 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -5
- 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 +58 -57
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -16
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +18 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +61 -61
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +104 -95
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +138 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +9 -9
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +36 -30
- data/vendor/local/share/doc/groonga/en/html/install.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +23 -9
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +30 -9
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +16 -9
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +13 -13
- data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -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 +37 -9
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +16 -16
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +251 -120
- 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 +28 -23
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +25 -22
- 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 -9
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +71 -87
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +8 -9
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +8 -9
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +13 -14
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +321 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +35 -36
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +32 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +70 -69
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +34 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +34 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +37 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +218 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +294 -288
- 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 +38 -41
- 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 +33 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +268 -0
- 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 +5 -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 +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +11 -9
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +6 -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/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 +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +292 -0
- 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 +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +32 -7
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
- 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/types.html +10 -10
- 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 +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- 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 +9 -9
- 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.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +9 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +12 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +20 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +28 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +12 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +8 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -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 +36 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +11 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +112 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/check.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_remove.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +79 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/define_selector.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +51 -51
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_put.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_reopen.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +85 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +98 -89
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +73 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +124 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +24 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +58 -57
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -16
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +18 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +61 -61
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +104 -95
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +139 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +36 -30
- data/vendor/local/share/doc/groonga/ja/html/install.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +19 -9
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +24 -9
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +14 -9
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +29 -9
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +16 -16
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +225 -124
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +28 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +25 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +8 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +71 -87
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +8 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +8 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +13 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +321 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +35 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +32 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +56 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +34 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +34 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +37 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +213 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +235 -229
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +38 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +33 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +268 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +11 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +6 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +291 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +30 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/man/ja/man1/groonga.1 +1231 -420
- data/vendor/local/share/man/man1/groonga.1 +1370 -521
- metadata +1025 -998
- data/lib/1.8/groonga.so +0 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
.. groonga-command
|
6
|
+
.. database: commands_normalize
|
7
|
+
|
8
|
+
``normalize``
|
9
|
+
=============
|
10
|
+
|
11
|
+
.. Caution::
|
12
|
+
|
13
|
+
``normalize`` command is the experimental feature.
|
14
|
+
This command may be changed in the future.
|
15
|
+
|
16
|
+
Summary
|
17
|
+
-------
|
18
|
+
|
19
|
+
``normalize`` command normalizes text by the specified normalizer.
|
20
|
+
|
21
|
+
There is no need to create table to use ``normalize`` command.
|
22
|
+
It is usefull for you to check the results of normalizer.
|
23
|
+
|
24
|
+
Syntax
|
25
|
+
--------
|
26
|
+
|
27
|
+
``normalize`` commands takes two parameters - ``normalizer`` and ``string``.
|
28
|
+
Both of them are required.
|
29
|
+
|
30
|
+
::
|
31
|
+
|
32
|
+
normalize normalizer string
|
33
|
+
|
34
|
+
|
35
|
+
Usage
|
36
|
+
-----
|
37
|
+
|
38
|
+
Here is a simple example of ``normalize`` command.
|
39
|
+
|
40
|
+
.. groonga-command
|
41
|
+
.. include:: ../../example/reference/commands/normalize/normalizer_auto_ascii.log
|
42
|
+
.. normalize NormalizerAuto "aBcDe 123"
|
43
|
+
|
44
|
+
Parameters
|
45
|
+
----------
|
46
|
+
|
47
|
+
This section describes parameters of ``normalizer``.
|
48
|
+
|
49
|
+
Required parameter
|
50
|
+
^^^^^^^^^^^^^^^^^^
|
51
|
+
|
52
|
+
There are required parameters, ``normalizer`` and ``string``.
|
53
|
+
|
54
|
+
``normalizer``
|
55
|
+
""""""""""""""
|
56
|
+
|
57
|
+
It specifies the name of normalizer.
|
58
|
+
Currently, ``normalize`` command accepts ``NormalizerAuto`` or ``NormalizerNFKC51`` as built-in normalizer.
|
59
|
+
If you want to try another normalizer, you need to register additional normalizer plugin by ``register`` command.
|
60
|
+
|
61
|
+
``string``
|
62
|
+
""""""""""
|
63
|
+
|
64
|
+
It specifies any string which you want to normalize.
|
65
|
+
|
66
|
+
Return value
|
67
|
+
------------
|
68
|
+
|
69
|
+
::
|
70
|
+
|
71
|
+
[HEADER, normalized]
|
72
|
+
|
73
|
+
``HEADER``
|
74
|
+
|
75
|
+
The format of HEADER is [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME].
|
76
|
+
See :doc:`/reference/command/output_format` about HEADER.
|
77
|
+
|
78
|
+
``normalized``
|
79
|
+
|
80
|
+
normalized is the normalized text by the specified normalizer.
|
81
|
+
|
82
|
+
See also
|
83
|
+
--------
|
84
|
+
|
85
|
+
* :doc:`/reference/normalizers`
|
@@ -41,6 +41,7 @@ Syntax
|
|
41
41
|
[match_escalation_threshold=0]
|
42
42
|
[query_expansion=null]
|
43
43
|
[query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
|
44
|
+
[query_expander=null]
|
44
45
|
|
45
46
|
Usage
|
46
47
|
-----
|
@@ -451,95 +452,7 @@ more searches aren't executed. And no records are matched.
|
|
451
452
|
``query_expansion``
|
452
453
|
"""""""""""""""""""
|
453
454
|
|
454
|
-
|
455
|
-
to another words in query. Nomally, it's used for synonym search.
|
456
|
-
|
457
|
-
It specifies a column that is used to substitute ``query`` parameter
|
458
|
-
value. The format of this parameter value is
|
459
|
-
"``${TABLE}.${COLUMN}``". For example, "``Terms.synonym``" specifies
|
460
|
-
``synonym`` column in ``Terms`` table.
|
461
|
-
|
462
|
-
Table for query expansion is called "substitution table". Substitution
|
463
|
-
table's key must be ``ShortText``. So array table (``TABLE_NO_KEY``)
|
464
|
-
can't be used for query expansion. Because array table doesn't have
|
465
|
-
key.
|
466
|
-
|
467
|
-
Column for query expansion is called "substitution
|
468
|
-
column". Substitution column's value type must be
|
469
|
-
``ShortText``. Column type must be vector (``COLUMN_VECTOR``).
|
470
|
-
|
471
|
-
Query expansion substitutes key of substitution table in query with
|
472
|
-
values in substitution column. If a word in ``query`` is a key of
|
473
|
-
substitution table, the word is substituted with substitution column
|
474
|
-
value that is associated with the key. Substition isn't performed
|
475
|
-
recursively. It means that substitution target words in substituted
|
476
|
-
query aren't substituted.
|
477
|
-
|
478
|
-
Here is a sample substitution table to show a simple
|
479
|
-
``query_expansion`` usage example.
|
480
|
-
|
481
|
-
.. groonga-command
|
482
|
-
.. include:: ../../example/reference/commands/select/query_expansion_substitution_table.log
|
483
|
-
.. table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
484
|
-
.. column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
485
|
-
.. load --table Thesaurus
|
486
|
-
.. [
|
487
|
-
.. {"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
488
|
-
.. {"_key": "groonga", "synonym": ["groonga", "senna"]}
|
489
|
-
.. ]
|
490
|
-
|
491
|
-
``Thesaurus`` substitution table has two synonyms, ``"mroonga"`` and
|
492
|
-
``"groonga"``. If an user searches with ``"mroonga"``, groonga
|
493
|
-
searches with ``"((mroonga) OR (tritonn) OR (groonga mysql))"``. If an
|
494
|
-
user searches with ``"groonga"``, groonga searchs with ``"((groonga)
|
495
|
-
OR (senna))"``. Nomrally, it's good idea that substitution table has
|
496
|
-
``KEY_NORMALIZE`` flag. If the flag is used, substitute target word is
|
497
|
-
matched in case insensitive manner.
|
498
|
-
|
499
|
-
Note that those synonym values include the key value such as
|
500
|
-
``"mroonga"`` and ``"groonga"``. It's recommended that you include the
|
501
|
-
key value. If you don't include key value, substituted value doesn't
|
502
|
-
include the original substitute target value. Normally, including the
|
503
|
-
original value is better search result. If you have a word that you
|
504
|
-
don't want to be searched, you should not include the original
|
505
|
-
word. For example, you can implement "stop words" by an empty vector
|
506
|
-
value.
|
507
|
-
|
508
|
-
Here is a simple ``query_expansion`` usage example.
|
509
|
-
|
510
|
-
.. groonga-command
|
511
|
-
.. include:: ../../example/reference/commands/select/query_expansion_substitute.log
|
512
|
-
.. select Entries --match_columns content --query "mroonga"
|
513
|
-
.. select Entries --match_columns content --query "mroonga" --query_expansion Thesaurus.synonym
|
514
|
-
.. select Entries --match_columns content --query "((mroonga) OR (tritonn) OR (groonga mysql))"
|
515
|
-
|
516
|
-
The first ``select`` command doesn't use query expansion. So a record
|
517
|
-
that has ``"tritonn"`` isn't found. The second ``select`` command uses
|
518
|
-
query expansion. So a record that has ``"tritonn"`` is found. The
|
519
|
-
third ``select`` command doesn't use query expansion but it is same as
|
520
|
-
the second ``select`` command. The third one uses expanded query.
|
521
|
-
|
522
|
-
Each substitute value can contain any :doc:`/reference/grn_expr/query_syntax` syntax
|
523
|
-
such as ``(...)`` and ``OR``. You can use complex substitution by
|
524
|
-
using those syntax.
|
525
|
-
|
526
|
-
Here is a complex substitution usage example that uses query syntax.
|
527
|
-
|
528
|
-
.. groonga-command
|
529
|
-
.. include:: ../../example/reference/commands/select/query_expansion_complex.log
|
530
|
-
.. load --table Thesaurus
|
531
|
-
.. [
|
532
|
-
.. {"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
533
|
-
.. ]
|
534
|
-
.. select Entries --match_columns content --query "popular" --query_expansion Thesaurus.synonym
|
535
|
-
|
536
|
-
The ``load`` command registers a new synonym ``"popular"``. It is
|
537
|
-
substituted with ``((popular) OR (n_likes:>=10))``. The substituted
|
538
|
-
query means that "popular" is containing the word "popular" or 10 or
|
539
|
-
more liked entries.
|
540
|
-
|
541
|
-
The ``select`` command outputs records that ``n_likes`` column value
|
542
|
-
is equal to or more than ``10`` from ``Entries`` table.
|
455
|
+
Deprecated. Use :ref:`query-expander` instead.
|
543
456
|
|
544
457
|
.. _query-flags:
|
545
458
|
|
@@ -633,6 +546,102 @@ specified.
|
|
633
546
|
|
634
547
|
See also :doc:`/reference/grn_expr/query_syntax`.
|
635
548
|
|
549
|
+
.. _query-expander:
|
550
|
+
|
551
|
+
``query_expander``
|
552
|
+
""""""""""""""""""
|
553
|
+
|
554
|
+
It's for query expansion. Query expansion substitutes specific words
|
555
|
+
to another words in query. Nomally, it's used for synonym search.
|
556
|
+
|
557
|
+
It specifies a column that is used to substitute ``query`` parameter
|
558
|
+
value. The format of this parameter value is
|
559
|
+
"``${TABLE}.${COLUMN}``". For example, "``Terms.synonym``" specifies
|
560
|
+
``synonym`` column in ``Terms`` table.
|
561
|
+
|
562
|
+
Table for query expansion is called "substitution table". Substitution
|
563
|
+
table's key must be ``ShortText``. So array table (``TABLE_NO_KEY``)
|
564
|
+
can't be used for query expansion. Because array table doesn't have
|
565
|
+
key.
|
566
|
+
|
567
|
+
Column for query expansion is called "substitution
|
568
|
+
column". Substitution column's value type must be
|
569
|
+
``ShortText``. Column type must be vector (``COLUMN_VECTOR``).
|
570
|
+
|
571
|
+
Query expansion substitutes key of substitution table in query with
|
572
|
+
values in substitution column. If a word in ``query`` is a key of
|
573
|
+
substitution table, the word is substituted with substitution column
|
574
|
+
value that is associated with the key. Substition isn't performed
|
575
|
+
recursively. It means that substitution target words in substituted
|
576
|
+
query aren't substituted.
|
577
|
+
|
578
|
+
Here is a sample substitution table to show a simple
|
579
|
+
``query_expander`` usage example.
|
580
|
+
|
581
|
+
.. groonga-command
|
582
|
+
.. include:: ../../example/reference/commands/select/query_expander_substitution_table.log
|
583
|
+
.. table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
584
|
+
.. column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
585
|
+
.. load --table Thesaurus
|
586
|
+
.. [
|
587
|
+
.. {"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
588
|
+
.. {"_key": "groonga", "synonym": ["groonga", "senna"]}
|
589
|
+
.. ]
|
590
|
+
|
591
|
+
``Thesaurus`` substitution table has two synonyms, ``"mroonga"`` and
|
592
|
+
``"groonga"``. If an user searches with ``"mroonga"``, groonga
|
593
|
+
searches with ``"((mroonga) OR (tritonn) OR (groonga mysql))"``. If an
|
594
|
+
user searches with ``"groonga"``, groonga searchs with ``"((groonga)
|
595
|
+
OR (senna))"``. Nomrally, it's good idea that substitution table has
|
596
|
+
``KEY_NORMALIZE`` flag. If the flag is used, substitute target word is
|
597
|
+
matched in case insensitive manner.
|
598
|
+
|
599
|
+
Note that those synonym values include the key value such as
|
600
|
+
``"mroonga"`` and ``"groonga"``. It's recommended that you include the
|
601
|
+
key value. If you don't include key value, substituted value doesn't
|
602
|
+
include the original substitute target value. Normally, including the
|
603
|
+
original value is better search result. If you have a word that you
|
604
|
+
don't want to be searched, you should not include the original
|
605
|
+
word. For example, you can implement "stop words" by an empty vector
|
606
|
+
value.
|
607
|
+
|
608
|
+
Here is a simple ``query_expander`` usage example.
|
609
|
+
|
610
|
+
.. groonga-command
|
611
|
+
.. include:: ../../example/reference/commands/select/query_expander_substitute.log
|
612
|
+
.. select Entries --match_columns content --query "mroonga"
|
613
|
+
.. select Entries --match_columns content --query "mroonga" --query_expander Thesaurus.synonym
|
614
|
+
.. select Entries --match_columns content --query "((mroonga) OR (tritonn) OR (groonga mysql))"
|
615
|
+
|
616
|
+
The first ``select`` command doesn't use query expansion. So a record
|
617
|
+
that has ``"tritonn"`` isn't found. The second ``select`` command uses
|
618
|
+
query expansion. So a record that has ``"tritonn"`` is found. The
|
619
|
+
third ``select`` command doesn't use query expansion but it is same as
|
620
|
+
the second ``select`` command. The third one uses expanded query.
|
621
|
+
|
622
|
+
Each substitute value can contain any :doc:`/reference/grn_expr/query_syntax` syntax
|
623
|
+
such as ``(...)`` and ``OR``. You can use complex substitution by
|
624
|
+
using those syntax.
|
625
|
+
|
626
|
+
Here is a complex substitution usage example that uses query syntax.
|
627
|
+
|
628
|
+
.. groonga-command
|
629
|
+
.. include:: ../../example/reference/commands/select/query_expander_complex.log
|
630
|
+
.. load --table Thesaurus
|
631
|
+
.. [
|
632
|
+
.. {"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
633
|
+
.. ]
|
634
|
+
.. select Entries --match_columns content --query "popular" --query_expander Thesaurus.synonym
|
635
|
+
|
636
|
+
The ``load`` command registers a new synonym ``"popular"``. It is
|
637
|
+
substituted with ``((popular) OR (n_likes:>=10))``. The substituted
|
638
|
+
query means that "popular" is containing the word "popular" or 10 or
|
639
|
+
more liked entries.
|
640
|
+
|
641
|
+
The ``select`` command outputs records that ``n_likes`` column value
|
642
|
+
is equal to or more than ``10`` from ``Entries`` table.
|
643
|
+
|
644
|
+
|
636
645
|
Output related parameters
|
637
646
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
638
647
|
|
@@ -40,15 +40,15 @@ json形式
|
|
40
40
|
|
41
41
|
下記の項目がハッシュ形式で出力されます。
|
42
42
|
|
43
|
-
|
43
|
+
``alloc_count``
|
44
44
|
|
45
|
-
|
45
|
+
groongaプロセスの内部でアロケートされ、まだ解放されてないメモリブロックの数を示します。groongaをbuildする際に、configureオプションで --enable-exact-alloc-countが指定されていたならば、正確な値を返します。それ以外の場合は不正確な値を返す場合があります。
|
46
46
|
|
47
|
-
|
47
|
+
``starttime``
|
48
48
|
|
49
|
-
|
49
|
+
groongaプロセスが起動した時刻のtvsec値を返します。
|
50
50
|
|
51
|
-
|
51
|
+
``uptime``
|
52
52
|
|
53
53
|
groongaプロセスが起動してから経過した秒数を返します。
|
54
54
|
|
@@ -0,0 +1,73 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
.. groonga-command
|
6
|
+
.. database: commands_truncate
|
7
|
+
|
8
|
+
``truncate``
|
9
|
+
============
|
10
|
+
|
11
|
+
Summary
|
12
|
+
-------
|
13
|
+
|
14
|
+
``truncate`` command deletes all records from specified table.
|
15
|
+
|
16
|
+
Syntax
|
17
|
+
------
|
18
|
+
|
19
|
+
``truncate`` command takes only one parameter.
|
20
|
+
|
21
|
+
The required parameter is only ``table``::
|
22
|
+
|
23
|
+
truncate table
|
24
|
+
|
25
|
+
Usage
|
26
|
+
-----
|
27
|
+
|
28
|
+
Here is a simple example of ``truncate`` command.
|
29
|
+
|
30
|
+
.. groonga-command
|
31
|
+
.. include:: ../../example/reference/commands/truncate/truncate.log
|
32
|
+
.. table_create Users TABLE_PAT_KEY ShortText
|
33
|
+
.. load --table Users
|
34
|
+
.. [
|
35
|
+
.. {"_key": "Alice", "score": 2},
|
36
|
+
.. {"_key": "Bob", "score": 0},
|
37
|
+
.. {"_key": "Carlos", "score": -1}
|
38
|
+
.. ]
|
39
|
+
.. select Users
|
40
|
+
.. truncate Users
|
41
|
+
.. select Users
|
42
|
+
|
43
|
+
Parameters
|
44
|
+
----------
|
45
|
+
|
46
|
+
This section describes parameters of ``truncate``.
|
47
|
+
|
48
|
+
Required parameter
|
49
|
+
^^^^^^^^^^^^^^^^^^
|
50
|
+
|
51
|
+
There is required parameter, ``table_name``.
|
52
|
+
|
53
|
+
``table_name``
|
54
|
+
""""""""""""""
|
55
|
+
|
56
|
+
It specifies the name of table.
|
57
|
+
|
58
|
+
Return value
|
59
|
+
------------
|
60
|
+
|
61
|
+
::
|
62
|
+
|
63
|
+
[HEADER, SUCCEEDED_OR_NOT]
|
64
|
+
|
65
|
+
``HEADER``
|
66
|
+
|
67
|
+
The format of HEADER is [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME].
|
68
|
+
See :doc:`/reference/command/output_format` about HEADER.
|
69
|
+
|
70
|
+
``SUCCEEDED_OR_NOT``
|
71
|
+
|
72
|
+
If command succeeded, it returns true, otherwise it returns false on error.
|
73
|
+
|
@@ -0,0 +1,124 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
.. groonga-command
|
6
|
+
.. database: functions_sub_filter
|
7
|
+
|
8
|
+
sub_filter
|
9
|
+
==========
|
10
|
+
|
11
|
+
Summary
|
12
|
+
-------
|
13
|
+
|
14
|
+
``sub_filter`` evaluates ``query_string`` in ``match_column`` context.
|
15
|
+
|
16
|
+
``sub_filter`` can be used in only ``--filter`` in :doc:`/reference/commands/select`.
|
17
|
+
|
18
|
+
Syntax
|
19
|
+
------
|
20
|
+
|
21
|
+
``sub_filter`` requires two arguments - ``match_column`` and ``query_string``.
|
22
|
+
|
23
|
+
::
|
24
|
+
|
25
|
+
sub_filter(match_column, query_string)
|
26
|
+
|
27
|
+
|
28
|
+
Usage
|
29
|
+
-----
|
30
|
+
|
31
|
+
Here are a schema definition and sample data to show usage.
|
32
|
+
|
33
|
+
Sample schema:
|
34
|
+
|
35
|
+
.. groonga-command
|
36
|
+
.. include:: ../../example/reference/functions/sub_filter/usage_setup_schema.log
|
37
|
+
.. table_create Comment TABLE_PAT_KEY UInt32
|
38
|
+
.. column_create Comment name COLUMN_SCALAR ShortText
|
39
|
+
.. column_create Comment content COLUMN_SCALAR ShortText
|
40
|
+
.. table_create Blog TABLE_PAT_KEY ShortText
|
41
|
+
.. column_create Blog title COLUMN_SCALAR ShortText
|
42
|
+
.. column_create Blog content COLUMN_SCALAR ShortText
|
43
|
+
.. column_create Blog comments COLUMN_VECTOR Comment
|
44
|
+
.. column_create Comment blog_comment_index COLUMN_INDEX Blog comments
|
45
|
+
.. table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
|
46
|
+
.. column_create Lexicon comment_content COLUMN_INDEX|WITH_POSITION Comment content
|
47
|
+
.. column_create Lexicon comment_name COLUMN_INDEX|WITH_POSITION Comment name
|
48
|
+
.. column_create Lexicon blog_content COLUMN_INDEX|WITH_POSITION Blog content
|
49
|
+
|
50
|
+
Sample data:
|
51
|
+
|
52
|
+
.. groonga-command
|
53
|
+
.. include:: ../../example/reference/functions/sub_filter/usage_setup_data.log
|
54
|
+
.. load --table Comment
|
55
|
+
.. [
|
56
|
+
.. {"_key": 1, "name": "A", "content": "groonga"},
|
57
|
+
.. {"_key": 2, "name": "B", "content": "groonga"},
|
58
|
+
.. {"_key": 3, "name": "C", "content": "rroonga"},
|
59
|
+
.. {"_key": 4, "name": "A", "content": "mroonga"},
|
60
|
+
.. ]
|
61
|
+
.. load --table Blog
|
62
|
+
.. [
|
63
|
+
.. {"_key": "groonga's blog", "content": "content of groonga's blog", comments: [1, 2, 3]},
|
64
|
+
.. {"_key": "mroonga's blog", "content": "content of mroonga's blog", comments: [2, 3, 4]},
|
65
|
+
.. {"_key": "rroonga's blog", "content": "content of rroonga's blog", comments: [3]},
|
66
|
+
.. ]
|
67
|
+
|
68
|
+
Here is the simple usage of ``sub_filter`` function which extracts the blog entry
|
69
|
+
user 'A' commented out.
|
70
|
+
|
71
|
+
.. groonga-command
|
72
|
+
.. include:: ../../example/reference/functions/sub_filter/usage_without_sub_filter.log
|
73
|
+
.. select Blog --output_columns _key \
|
74
|
+
.. --filter "comments.name @ \"A\" && comments.content @ \"groonga\""
|
75
|
+
|
76
|
+
When executing above query, not only "groonga's blog", but also "mroonga's blog".
|
77
|
+
This is not what you want because user "A" does not mention "groonga" to "mroonga's blog".
|
78
|
+
|
79
|
+
Without sub_filter, it means that following conditions are met.
|
80
|
+
|
81
|
+
* There is at least one record that user "A" commented out.
|
82
|
+
* There is at least one record that mentioned about "groonga".
|
83
|
+
|
84
|
+
.. groonga-command
|
85
|
+
.. include:: ../../example/reference/functions/sub_filter/usage_with_sub_filter.log
|
86
|
+
.. select Blog --output_columns _key \
|
87
|
+
.. --filter 'sub_filter(comments, "name @ \\"A\\" && content @ \\"groonga\\"")'
|
88
|
+
|
89
|
+
On the other hand, executing above query returns the intended result.
|
90
|
+
Because the arguments of sub_filter is evaluated in comments column's context.
|
91
|
+
|
92
|
+
It means that sub_filter requires following condition is met.
|
93
|
+
|
94
|
+
* There are the records that user "A" mentions about "groonga".
|
95
|
+
|
96
|
+
|
97
|
+
Parameters
|
98
|
+
----------
|
99
|
+
|
100
|
+
There are two required parameter, ``match_column`` and ``query_string``.
|
101
|
+
|
102
|
+
``match_column``
|
103
|
+
^^^^^^^^^^^^^^^^
|
104
|
+
|
105
|
+
It specifies ``match_column`` equivalent parameter.
|
106
|
+
|
107
|
+
See :ref:`select-match-columns` about match_column.
|
108
|
+
|
109
|
+
``query_string``
|
110
|
+
^^^^^^^^^^^^^^^^
|
111
|
+
|
112
|
+
It specifies ``query`` equivalent parameter.
|
113
|
+
|
114
|
+
See :ref:`select-query` about query string.
|
115
|
+
|
116
|
+
Return value
|
117
|
+
------------
|
118
|
+
|
119
|
+
``sub_filter`` returns a value of boolean (true or false).
|
120
|
+
|
121
|
+
See also
|
122
|
+
--------
|
123
|
+
|
124
|
+
* :doc:`/reference/commands/select`
|