rroonga 5.0.0-x86-mingw32 → 5.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.yardopts +1 -0
- data/Rakefile +1 -16
- data/example/bookmark.rb +1 -6
- data/example/index-html.rb +0 -1
- data/ext/groonga/extconf.rb +4 -7
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-column.c +33 -67
- data/ext/groonga/rb-grn-context.c +5 -5
- data/ext/groonga/rb-grn-database.c +2 -2
- data/ext/groonga/rb-grn-double-array-trie.c +4 -2
- data/ext/groonga/rb-grn-encoding-support.c +7 -1
- data/ext/groonga/rb-grn-equal-operator.c +85 -0
- data/ext/groonga/rb-grn-exception.c +17 -0
- data/ext/groonga/rb-grn-expression.c +85 -43
- data/ext/groonga/rb-grn-greater-equal-operator.c +88 -0
- data/ext/groonga/rb-grn-greater-operator.c +85 -0
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +150 -11
- data/ext/groonga/rb-grn-less-equal-operator.c +88 -0
- data/ext/groonga/rb-grn-less-operator.c +85 -0
- data/ext/groonga/rb-grn-logger.c +5 -5
- data/ext/groonga/rb-grn-match-operator.c +86 -0
- data/ext/groonga/rb-grn-normalizer.c +8 -1
- data/ext/groonga/rb-grn-not-equal-operator.c +85 -0
- data/ext/groonga/rb-grn-object.c +170 -36
- data/ext/groonga/rb-grn-operator.c +395 -172
- data/ext/groonga/rb-grn-patricia-trie.c +10 -8
- data/ext/groonga/rb-grn-plugin.c +51 -3
- data/ext/groonga/rb-grn-prefix-operator.c +86 -0
- data/ext/groonga/rb-grn-procedure-type.c +4 -0
- data/ext/groonga/rb-grn-query-logger.c +4 -4
- data/ext/groonga/rb-grn-regexp-operator.c +85 -0
- data/ext/groonga/rb-grn-snippet.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +9 -5
- data/ext/groonga/rb-grn-table.c +52 -66
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +22 -3
- data/ext/groonga/rb-grn.h +31 -4
- data/ext/groonga/rb-groonga.c +9 -9
- 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/2.2/groonga.so +0 -0
- data/lib/groonga/context.rb +31 -0
- data/lib/groonga/expression-builder.rb +14 -1
- data/lib/groonga/record.rb +10 -8
- data/lib/groonga/schema.rb +3 -1
- data/rroonga-build.rb +2 -2
- data/rroonga.gemspec +3 -3
- data/test/groonga-test-utils.rb +4 -0
- data/test/test-column.rb +28 -26
- data/test/test-exception.rb +1 -0
- data/test/test-expression-builder.rb +83 -1
- data/test/test-expression.rb +80 -48
- data/test/test-index-column.rb +102 -29
- data/test/test-normalizer.rb +35 -29
- data/test/test-operator.rb +214 -0
- data/test/test-plugin.rb +24 -6
- data/test/test-procedure.rb +29 -0
- data/test/test-schema-type.rb +14 -0
- data/test/test-table-select-mecab.rb +1 -4
- data/test/test-table.rb +7 -0
- data/test/test-token-regexp.rb +30 -0
- data/test/test-type.rb +24 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +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/libonig-5.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onig-config +1 -1
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/groonga.conf +1 -1
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/expr.h +2 -0
- data/vendor/local/include/groonga/groonga/groonga.h +32 -5
- data/vendor/local/include/groonga/groonga/ii.h +7 -0
- data/vendor/local/include/groonga/groonga/obj.h +37 -0
- data/vendor/local/include/groonga/groonga/scorer.h +95 -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 +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +6 -3
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +6 -5
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +421 -17
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/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 +2 -2
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/groonga/scripts/ruby/backtrace_entry.rb +12 -4
- data/vendor/local/lib/groonga/scripts/ruby/database.rb +11 -3
- data/vendor/local/lib/groonga/scripts/ruby/expression.rb +23 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +158 -0
- data/vendor/local/lib/groonga/scripts/ruby/index_column.rb +39 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +4 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +2 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger.rb +11 -7
- data/vendor/local/lib/groonga/scripts/ruby/object.rb +11 -0
- data/vendor/local/lib/groonga/scripts/ruby/operator.rb +22 -0
- data/vendor/local/lib/groonga/scripts/ruby/scan_info.rb +7 -2
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +7 -11
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +137 -34
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_search_index.rb +9 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +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 +2 -2
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +2 -2
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +2 -2
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
- data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
- data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- 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 +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_images/used-when-indexing.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_images/used-when-searching.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +32 -17
- 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 +4 -4
- 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 +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 +3 -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 +194 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +42 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/overview.txt +54 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
- 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_list.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +173 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +112 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +7 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_register.txt +64 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_unregister.txt +63 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +11 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +3 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +12 -12
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +47 -26
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/between.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_values.txt +54 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +44 -18
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +41 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +4 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/regular_expression.txt +403 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorer.txt +217 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_at_most.txt +22 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_idf.txt +110 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scoring_note.txt +13 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tables.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +530 -16
- data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/server/memcached.txt +15 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +66 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +0 -81
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +6 -68
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +1 -26
- data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +9404 -4
- data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/client.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/community.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +51 -38
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/development.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/genindex.html +26 -14
- data/vendor/local/share/doc/groonga/en/html/index.html +150 -130
- data/vendor/local/share/doc/groonga/en/html/install.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/install/others.html +87 -89
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +25 -27
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news.html +256 -27
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +27 -29
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +98 -100
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +102 -104
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +139 -118
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +51 -52
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +60 -62
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +80 -82
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +130 -80
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +48 -50
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +79 -81
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +41 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +41 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +89 -91
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +75 -77
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +64 -66
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +202 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +58 -60
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +58 -60
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +56 -54
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +53 -55
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +94 -96
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +23 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +71 -73
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +49 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +23 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +314 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +252 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +87 -89
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +195 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +193 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +61 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +72 -74
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +590 -592
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +92 -94
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +152 -154
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +103 -105
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +52 -54
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +21 -23
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +73 -75
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +34 -36
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +124 -90
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +66 -68
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +113 -115
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +55 -57
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +65 -67
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +135 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +67 -69
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +66 -70
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +349 -286
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +483 -417
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +30 -31
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +60 -62
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +931 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +442 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +153 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +287 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +114 -0
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +51 -53
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +52 -54
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +36 -38
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +1394 -34
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +57 -59
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +23 -24
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/server/http.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +29 -31
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +137 -0
- data/vendor/local/share/doc/groonga/en/html/server/package.html +36 -38
- data/vendor/local/share/doc/groonga/en/html/spec.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +208 -129
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +21 -25
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +31 -33
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +21 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +50 -52
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +27 -125
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +33 -35
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_images/used-when-indexing.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_images/used-when-searching.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +32 -17
- 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 +4 -4
- 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 +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 +3 -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 +194 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +42 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/overview.txt +54 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
- 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_list.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +173 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +112 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +7 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_register.txt +64 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_unregister.txt +63 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +11 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +3 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +12 -12
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +47 -26
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/between.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_values.txt +54 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +44 -18
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +41 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +4 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/regular_expression.txt +403 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorer.txt +217 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_at_most.txt +22 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_idf.txt +110 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scoring_note.txt +13 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tables.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +530 -16
- data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/memcached.txt +15 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +66 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +0 -81
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +6 -68
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +1 -26
- data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +9404 -4
- data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/client.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +51 -38
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/development.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +26 -14
- data/vendor/local/share/doc/groonga/ja/html/index.html +150 -130
- data/vendor/local/share/doc/groonga/ja/html/install.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +31 -33
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +25 -27
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +78 -80
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news.html +210 -27
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +27 -29
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +91 -93
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +59 -61
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +139 -118
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +51 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +80 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +126 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +74 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +41 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +41 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +75 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +64 -66
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +197 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +58 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +56 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +93 -95
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +62 -64
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +33 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +314 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +250 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +80 -81
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +188 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +190 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +57 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +71 -73
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +394 -396
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +78 -80
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +123 -125
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +61 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +51 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +61 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +34 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +126 -90
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +63 -65
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +94 -96
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +45 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +66 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +135 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +70 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +56 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +36 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +229 -171
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +381 -322
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +34 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +878 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +442 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +154 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +287 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +115 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +45 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +1300 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +57 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +23 -24
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +62 -64
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +138 -0
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/spec.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +207 -128
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -25
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +47 -49
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +27 -125
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +31 -33
- data/vendor/local/share/license/mruby/README.md +2 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +6205 -2251
- data/vendor/local/share/man/man1/groonga.1 +7210 -3029
- metadata +75 -11
- data/doc/text/news.textile +0 -1217
- data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +0 -10308
- data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +0 -999
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +0 -10308
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +0 -999
@@ -73,6 +73,8 @@ Here is a list of built-in normalizers:
|
|
73
73
|
* ``NormalizerAuto``
|
74
74
|
* ``NormalizerNFKC51``
|
75
75
|
|
76
|
+
.. _normalizer-auto:
|
77
|
+
|
76
78
|
``NormalizerAuto``
|
77
79
|
^^^^^^^^^^^^^^^^^^
|
78
80
|
|
@@ -100,6 +102,8 @@ Here is an example that uses ``NormalizerAuto`` normalizer:
|
|
100
102
|
.. include:: ../example/reference/normalizers/normalizer-auto.log
|
101
103
|
.. table_create NormalLexicon TABLE_HASH_KEY ShortText --normalizer NormalizerAuto
|
102
104
|
|
105
|
+
.. _normalizer-nfkc51:
|
106
|
+
|
103
107
|
``NormalizerNFKC51``
|
104
108
|
^^^^^^^^^^^^^^^^^^^^
|
105
109
|
|
@@ -0,0 +1,403 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
.. groonga-command
|
6
|
+
.. database: regular_expression
|
7
|
+
|
8
|
+
Regular expression
|
9
|
+
==================
|
10
|
+
|
11
|
+
Summary
|
12
|
+
-------
|
13
|
+
|
14
|
+
.. note::
|
15
|
+
|
16
|
+
Regular expression support is an experimental feature.
|
17
|
+
|
18
|
+
.. versionadded:: 5.0.1
|
19
|
+
|
20
|
+
Groonga supports pattern match by regular expression. Regular
|
21
|
+
expression is widely used format to describe a pattern. Regular
|
22
|
+
expression is useful to represent complex pattern.
|
23
|
+
|
24
|
+
In most cases, pattern match by regular expression is evaluated as
|
25
|
+
sequential search. It'll be slow for many records and many texts.
|
26
|
+
|
27
|
+
In some cases, pattern match by regular expression can be evaluated
|
28
|
+
by index. It's very fast rather than sequential search. Patterns
|
29
|
+
that can be evaluated by index are described later.
|
30
|
+
|
31
|
+
There are many regular expression syntaxes. Groonga uses the same
|
32
|
+
syntax in Ruby. Because Groonga uses the same regular expression
|
33
|
+
engine as Ruby. The regular expression engine is `Onigmo
|
34
|
+
<https://github.com/k-takata/Onigmo/>`_. Characteristic difference
|
35
|
+
with other regular expression syntax is ``^`` and ``$``. The regular
|
36
|
+
expression syntax in Ruby, ``^`` means the beginning of line and ``$``
|
37
|
+
means the end of line. ``^`` means the beginning of text and ``$``
|
38
|
+
means the end of text in other most regular expression syntaxes. The regular
|
39
|
+
expression syntax in Ruby uses ``\A`` for the beginning of text and
|
40
|
+
``\z`` for the end of text.
|
41
|
+
|
42
|
+
You can use regular expression in :ref:`select-query` and
|
43
|
+
:ref:`select-filter` options of :doc:`/reference/commands/select`
|
44
|
+
command.
|
45
|
+
|
46
|
+
Usage
|
47
|
+
-----
|
48
|
+
|
49
|
+
Here are a schema definition and sample data to show usage. There is
|
50
|
+
only one table, ``Logs``. ``Logs`` table has only ``message``
|
51
|
+
column. Log messages are stored into the ``message`` column.
|
52
|
+
|
53
|
+
.. groonga-command
|
54
|
+
.. include:: ../example/reference/regular_expression/usage_setup.log
|
55
|
+
.. table_create Logs TABLE_NO_KEY
|
56
|
+
.. column_create Logs message COLUMN_SCALAR Text
|
57
|
+
..
|
58
|
+
.. load --table Logs
|
59
|
+
.. [
|
60
|
+
.. {"message": "host1:[error]: No memory"},
|
61
|
+
.. {"message": "host1:[warning]: Remained disk space is less than 30%"},
|
62
|
+
.. {"message": "host1:[error]: Disk full"},
|
63
|
+
.. {"message": "host2:[error]: No memory"},
|
64
|
+
.. {"message": "host2:[info]: Shutdown"}
|
65
|
+
.. ]
|
66
|
+
|
67
|
+
Here is an example that uses regular expression in
|
68
|
+
:ref:`select-query`. You need to use
|
69
|
+
``${COLUMN}:~${REGULAR_EXPRESSION}`` syntax.
|
70
|
+
|
71
|
+
.. groonga-command
|
72
|
+
.. include:: ../example/reference/regular_expression/usage_query.log
|
73
|
+
.. select Logs --query 'message:~"[Dd]isk"'
|
74
|
+
|
75
|
+
Here is an example that uses regular expression in
|
76
|
+
:ref:`select-filter`. You need to use
|
77
|
+
``${COLUMN} @~ ${REGULAR_EXPRESSION}`` syntax.
|
78
|
+
|
79
|
+
.. groonga-command
|
80
|
+
.. include:: ../example/reference/regular_expression/usage_filter.log
|
81
|
+
.. select Logs --filter 'message @~ "[Dd]isk"'
|
82
|
+
|
83
|
+
Index
|
84
|
+
-----
|
85
|
+
|
86
|
+
Groonga can search records by regular expression with index. It's very
|
87
|
+
fast rather than sequential search.
|
88
|
+
|
89
|
+
But it doesn't support all regular expression patterns. It supports
|
90
|
+
only the following regular expression patterns. The patterns will be
|
91
|
+
increased in the future.
|
92
|
+
|
93
|
+
* Literal only pattern such as ``disk``
|
94
|
+
* The begging of text and literal only pattern such as ``\Adisk``
|
95
|
+
* The end of text and literal only pattern such as ``disk\z``
|
96
|
+
|
97
|
+
You need to create an index for fast regular expression search. Here
|
98
|
+
are requirements of index:
|
99
|
+
|
100
|
+
* Lexicon must be :ref:`table-pat-key` table.
|
101
|
+
* Lexicon must use :ref:`token-regexp` tokenizer.
|
102
|
+
* Index column must has ``WITH_POSITION`` flag.
|
103
|
+
|
104
|
+
Other configurations such as lexicon's normalizer are optional. You
|
105
|
+
can choose what you like. If you want to use case-insensitive search,
|
106
|
+
use :ref:`normalizer-auto` normalizer.
|
107
|
+
|
108
|
+
Here are recommended index definitions. In general, it's reasonable
|
109
|
+
index definitions.
|
110
|
+
|
111
|
+
.. groonga-command
|
112
|
+
.. include:: ../example/reference/regular_expression/index_definitions.log
|
113
|
+
.. table_create RegexpLexicon TABLE_PAT_KEY ShortText \
|
114
|
+
.. --default_tokenizer TokenRegexp \
|
115
|
+
.. --normalizer NormalizerAuto
|
116
|
+
.. column_create RegexpLexicon logs_message_index \
|
117
|
+
.. COLUMN_INDEX|WITH_POSITION Logs message
|
118
|
+
|
119
|
+
Now, you can use index for regular expression search. The following
|
120
|
+
regular expression can be evaluated by index because it uses only "the
|
121
|
+
beginning of text" and "literal".
|
122
|
+
|
123
|
+
.. groonga-command
|
124
|
+
.. include:: ../example/reference/regular_expression/search_by_index_query.log
|
125
|
+
.. select Logs --query message:~\\\\Ahost1
|
126
|
+
|
127
|
+
Here is an example that uses :ref:`select-filter` instead of
|
128
|
+
:ref:`select-query`. It uses the same regular expression as the
|
129
|
+
previous example.
|
130
|
+
|
131
|
+
.. groonga-command
|
132
|
+
.. include:: ../example/reference/regular_expression/search_by_index_filter.log
|
133
|
+
.. select Logs --filter 'message @~ "\\\\Ahost1:"'
|
134
|
+
|
135
|
+
``\`` escape will confuse you because there are some steps that
|
136
|
+
require escape between you and Groonga. Here are steps that require
|
137
|
+
``\`` escape:
|
138
|
+
|
139
|
+
* Shell only when you pass Groonga command from command line the
|
140
|
+
following::
|
141
|
+
|
142
|
+
% groonga /tmp/db select Logs --filter '"message @~ \"\\\\Ahost1:"\"'
|
143
|
+
|
144
|
+
``--filter '"message @~ \"\\\\Ahost1:\""'`` is evaluated as the
|
145
|
+
following two arguments by shell:
|
146
|
+
|
147
|
+
* ``--filter``
|
148
|
+
* ``"message @~ \"\\\\Ahost1:\""``
|
149
|
+
|
150
|
+
* Groonga command parser only when you pass Groonga command by
|
151
|
+
command line style (``COMMAND ARG1_VALUE ARG2_VALUE ...``) not
|
152
|
+
HTTP path style
|
153
|
+
(``/d/COMMAND?ARG1_NAME=ARG1_VALUE&ARG2_NAME=ARG3_VALUE``).
|
154
|
+
|
155
|
+
``"message @~ \"\\\\Ahost1:\""`` is evaluated as the following
|
156
|
+
value by Groonga command parser:
|
157
|
+
|
158
|
+
* ``message @~ "\\Ahost1:"``
|
159
|
+
|
160
|
+
* :doc:`/reference/grn_expr` parser. ``\`` escape is required in both
|
161
|
+
:doc:`/reference/grn_expr/query_syntax` and
|
162
|
+
:doc:`/reference/grn_expr/script_syntax`.
|
163
|
+
|
164
|
+
``"\\Ahost1:"`` string literal in script syntax is evaluated as
|
165
|
+
the following value:
|
166
|
+
|
167
|
+
* ``\Ahost1``
|
168
|
+
|
169
|
+
The value is evaluated as regular expression.
|
170
|
+
|
171
|
+
Syntax
|
172
|
+
------
|
173
|
+
|
174
|
+
This section describes about only commonly used syntaxes. See `Onigmo
|
175
|
+
syntax documentation
|
176
|
+
<https://github.com/k-takata/Onigmo/blob/master/doc/RE>`_ for other
|
177
|
+
syntaxes and details.
|
178
|
+
|
179
|
+
.. _regular-expression-escape:
|
180
|
+
|
181
|
+
Escape
|
182
|
+
^^^^^^
|
183
|
+
|
184
|
+
In regular expression, there are the following special characters:
|
185
|
+
|
186
|
+
* ``\``
|
187
|
+
* ``|``
|
188
|
+
* ``(``
|
189
|
+
* ``)``
|
190
|
+
* ``[``
|
191
|
+
* ``]``
|
192
|
+
* ``.``
|
193
|
+
* ``*``
|
194
|
+
* ``+``
|
195
|
+
* ``?``
|
196
|
+
* ``{``
|
197
|
+
* ``}``
|
198
|
+
* ``^``
|
199
|
+
* ``$``
|
200
|
+
|
201
|
+
If you want to write pattern that matches these special character as
|
202
|
+
is, you need to escape them.
|
203
|
+
|
204
|
+
You can escape them by putting ``\`` before special character. Here
|
205
|
+
are regular expressions that match special character itself:
|
206
|
+
|
207
|
+
* ``\\``
|
208
|
+
* ``\|``
|
209
|
+
* ``\(``
|
210
|
+
* ``\)``
|
211
|
+
* ``\[``
|
212
|
+
* ``\]``
|
213
|
+
* ``\.``
|
214
|
+
* ``\*``
|
215
|
+
* ``\+``
|
216
|
+
* ``\?``
|
217
|
+
* ``\{``
|
218
|
+
* ``\}``
|
219
|
+
* ``\^``
|
220
|
+
* ``\$``
|
221
|
+
|
222
|
+
.. groonga-command
|
223
|
+
.. include:: ../example/reference/regular_expression/choice.log
|
224
|
+
.. select Logs --filter 'message @~ "\\\\[error\\\\]"'
|
225
|
+
|
226
|
+
If your regular expression doesn't work as you expected, confirm that
|
227
|
+
some special characters are used without escaping.
|
228
|
+
|
229
|
+
.. _regular-expression-choice:
|
230
|
+
|
231
|
+
Choice
|
232
|
+
^^^^^^
|
233
|
+
|
234
|
+
Choice syntax is ``A|B``. The regular expression matches when either
|
235
|
+
``A`` pattern or ``B`` pattern is matched.
|
236
|
+
|
237
|
+
.. groonga-command
|
238
|
+
.. include:: ../example/reference/regular_expression/choice.log
|
239
|
+
.. select Logs --filter 'message @~ "warning|info"'
|
240
|
+
|
241
|
+
.. caution::
|
242
|
+
|
243
|
+
Regular expression that uses this syntax can't be evaluated by
|
244
|
+
index.
|
245
|
+
|
246
|
+
.. _regular-expression-group:
|
247
|
+
|
248
|
+
Group
|
249
|
+
^^^^^
|
250
|
+
|
251
|
+
Group syntax is ``(...)``. Group provides the following features:
|
252
|
+
|
253
|
+
* Back reference
|
254
|
+
* Scope reducing
|
255
|
+
|
256
|
+
You can refer matched groups by ``\n`` (``n`` is the group number)
|
257
|
+
syntax. For example, ``e(r)\1o\1`` matches ``error``. Because ``\1``
|
258
|
+
is replaced with match result (``r``) of the first group ``(r)``.
|
259
|
+
|
260
|
+
.. groonga-command
|
261
|
+
.. include:: ../example/reference/regular_expression/group_back_reference.log
|
262
|
+
.. select Logs --filter 'message @~ "e(r)\\\\1o\\\\1"'
|
263
|
+
|
264
|
+
You can also use more powerful back reference features. See `"8. Back
|
265
|
+
reference" section in Onigmo documentation
|
266
|
+
<https://github.com/k-takata/Onigmo/blob/master/doc/RE#L302>`_ for
|
267
|
+
details.
|
268
|
+
|
269
|
+
Group syntax reduces scope. For example, ``\[(warning|info)\]``
|
270
|
+
reduces choice syntax scope. The regular expression matches
|
271
|
+
``[warning]`` and ``[info]``.
|
272
|
+
|
273
|
+
.. groonga-command
|
274
|
+
.. include:: ../example/reference/regular_expression/group_scope_reducing.log
|
275
|
+
.. select Logs --filter 'message @~ "\\\\[(warning|info)\\\\]"'
|
276
|
+
|
277
|
+
You can also use more powerful group related features. See
|
278
|
+
`"7. Extended groups" section in Onigmo documentation
|
279
|
+
<https://github.com/k-takata/Onigmo/blob/master/doc/RE#L225>`_ for
|
280
|
+
details.
|
281
|
+
|
282
|
+
.. caution::
|
283
|
+
|
284
|
+
Regular expression that uses this syntax can't be evaluated by
|
285
|
+
index.
|
286
|
+
|
287
|
+
.. _regular-expression-character-class:
|
288
|
+
|
289
|
+
Character class
|
290
|
+
^^^^^^^^^^^^^^^
|
291
|
+
|
292
|
+
Character class syntax is ``[...]``. Character class is useful to
|
293
|
+
specify multiple characters to be matched.
|
294
|
+
|
295
|
+
For example, ``[Dd]`` matches ``D`` or ``d``.
|
296
|
+
|
297
|
+
.. groonga-command
|
298
|
+
.. include:: ../example/reference/regular_expression/character_class_characters.log
|
299
|
+
.. select Logs --filter 'message @~ "[Dd]isk"'
|
300
|
+
|
301
|
+
You can specify characters by range. For example, ``[0-9]`` matches
|
302
|
+
one digit.
|
303
|
+
|
304
|
+
.. groonga-command
|
305
|
+
.. include:: ../example/reference/regular_expression/character_class_range.log
|
306
|
+
.. select Logs --filter 'message @~ "[0-9][0-9]%"'
|
307
|
+
|
308
|
+
You can also use more powerful character class related features. See
|
309
|
+
`"6. Character class" section in Onigmo documentation
|
310
|
+
<https://github.com/k-takata/Onigmo/blob/master/doc/RE#L164>`_ for
|
311
|
+
details.
|
312
|
+
|
313
|
+
.. caution::
|
314
|
+
|
315
|
+
Regular expression that uses this syntax can't be evaluated by
|
316
|
+
index.
|
317
|
+
|
318
|
+
.. _regular-expression-anchor:
|
319
|
+
|
320
|
+
Anchor
|
321
|
+
^^^^^^
|
322
|
+
|
323
|
+
There are the following commonly used anchor syntaxes. Some anchors
|
324
|
+
can be evaluated by index.
|
325
|
+
|
326
|
+
.. list-table::
|
327
|
+
:header-rows: 1
|
328
|
+
|
329
|
+
* - Anchor
|
330
|
+
- Description
|
331
|
+
- Index ready
|
332
|
+
* - ``^``
|
333
|
+
- The beginning of line
|
334
|
+
- o
|
335
|
+
* - ``$``
|
336
|
+
- The end of line
|
337
|
+
- x
|
338
|
+
* - ``\A``
|
339
|
+
- The beginning of text
|
340
|
+
- o
|
341
|
+
* - ``\z``
|
342
|
+
- The end of text
|
343
|
+
- x
|
344
|
+
|
345
|
+
Here is an example that uses ``\z``.
|
346
|
+
|
347
|
+
.. groonga-command
|
348
|
+
.. include:: ../example/reference/regular_expression/anchor_z.log
|
349
|
+
.. select Logs --filter 'message @~ "%\\\\z"'
|
350
|
+
|
351
|
+
You can also use more anchors. See `"5. Anchors" section in Onigmo
|
352
|
+
documentation
|
353
|
+
<https://github.com/k-takata/Onigmo/blob/master/doc/RE#L152>`_ for
|
354
|
+
details.
|
355
|
+
|
356
|
+
.. caution::
|
357
|
+
|
358
|
+
Regular expression that uses this syntax except ``\A`` and ``\z``
|
359
|
+
can't be evaluated by index.
|
360
|
+
|
361
|
+
.. _regular-expression-quantifier:
|
362
|
+
|
363
|
+
Quantifier
|
364
|
+
^^^^^^^^^^
|
365
|
+
|
366
|
+
There are the following commonly used quantifier syntaxes.
|
367
|
+
|
368
|
+
.. list-table::
|
369
|
+
:header-rows: 1
|
370
|
+
|
371
|
+
* - Quantifier
|
372
|
+
- Description
|
373
|
+
* - ``?``
|
374
|
+
- 0 or 1 time
|
375
|
+
* - ``*``
|
376
|
+
- 0 or more times
|
377
|
+
* - ``+``
|
378
|
+
- 1 or more times
|
379
|
+
|
380
|
+
For example, ``er+or`` matches ``error``, ``errror`` and so on.
|
381
|
+
|
382
|
+
.. groonga-command
|
383
|
+
.. include:: ../example/reference/regular_expression/quantifier_plus.log
|
384
|
+
.. select Logs --filter 'message @~ "er+or"'
|
385
|
+
|
386
|
+
You can also use more quantifiers. See `"4. Quantifier" section in Onigmo
|
387
|
+
documentation
|
388
|
+
<https://github.com/k-takata/Onigmo/blob/master/doc/RE#L119>`_ for
|
389
|
+
details.
|
390
|
+
|
391
|
+
.. caution::
|
392
|
+
|
393
|
+
Regular expression that uses this syntax can't be evaluated by
|
394
|
+
index.
|
395
|
+
|
396
|
+
Others
|
397
|
+
^^^^^^
|
398
|
+
|
399
|
+
There are more syntaxes. If you're interested in them, see `Onigmo
|
400
|
+
documentation
|
401
|
+
<https://github.com/k-takata/Onigmo/blob/master/doc/RE>`_ for
|
402
|
+
details. You may be interested in "character type" and "character"
|
403
|
+
syntaxes.
|
@@ -0,0 +1,217 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
.. groonga-command
|
6
|
+
.. database: scorer
|
7
|
+
|
8
|
+
Scorer
|
9
|
+
======
|
10
|
+
|
11
|
+
Summary
|
12
|
+
-------
|
13
|
+
|
14
|
+
Groonga has scorer module that customizes score function. Score
|
15
|
+
function computes score of matched record. The default scorer function
|
16
|
+
uses the number of appeared terms. It is also known as TF (term
|
17
|
+
frequency).
|
18
|
+
|
19
|
+
TF is a fast score function but it's not suitable for the following
|
20
|
+
cases:
|
21
|
+
|
22
|
+
* Search query contains one or more frequently-appearing words such
|
23
|
+
as "the" and "a".
|
24
|
+
* Document contains many same keywords such as "They are keyword,
|
25
|
+
keyword, keyword ... and keyword". Search engine spammer may use
|
26
|
+
the technique.
|
27
|
+
|
28
|
+
Score function can solve these cases. For example, `TF-IDF
|
29
|
+
<http://en.wikipedia.org/wiki/Tf%E2%80%93idf>`_ (term
|
30
|
+
frequency-inverse document frequency) can solve the first case.
|
31
|
+
`Okapi BM25 <http://en.wikipedia.org/wiki/Okapi_BM25>`_ can solve the
|
32
|
+
second case. But their are slower than TF.
|
33
|
+
|
34
|
+
Groonga provides TF-IDF based scorer as
|
35
|
+
:doc:`/reference/scorers/scorer_tf_idf` but doesn't provide Okapi BM25
|
36
|
+
based scorer yet.
|
37
|
+
|
38
|
+
.. include:: scoring_note.rst
|
39
|
+
|
40
|
+
Usage
|
41
|
+
-----
|
42
|
+
|
43
|
+
This section describes how to use scorer.
|
44
|
+
|
45
|
+
Here are a schema definition and sample data to show usage.
|
46
|
+
|
47
|
+
Sample schema:
|
48
|
+
|
49
|
+
.. groonga-command
|
50
|
+
.. include:: ../example/reference/scorer/usage_setup_schema.log
|
51
|
+
.. table_create Memos TABLE_HASH_KEY ShortText
|
52
|
+
.. column_create Memos title COLUMN_SCALAR ShortText
|
53
|
+
.. column_create Memos content COLUMN_SCALAR Text
|
54
|
+
..
|
55
|
+
.. table_create Terms TABLE_PAT_KEY ShortText \
|
56
|
+
.. --default_tokenizer TokenBigram \
|
57
|
+
.. --normalizer NormalizerAuto
|
58
|
+
.. column_create Terms title_index COLUMN_INDEX|WITH_POSITION Memos title
|
59
|
+
.. column_create Terms content_index COLUMN_INDEX|WITH_POSITION Memos content
|
60
|
+
|
61
|
+
Sample data:
|
62
|
+
|
63
|
+
.. groonga-command
|
64
|
+
.. include:: ../example/reference/scorer/usage_setup_data.log
|
65
|
+
.. load --table Memos
|
66
|
+
.. [
|
67
|
+
.. {
|
68
|
+
.. "_key": "memo1",
|
69
|
+
.. "title": "Groonga is easy",
|
70
|
+
.. "content": "Groonga is very easy full text search engine!"
|
71
|
+
.. },
|
72
|
+
.. {
|
73
|
+
.. "_key": "memo2",
|
74
|
+
.. "title": "Mroonga is easy",
|
75
|
+
.. "content": "Mroonga is more easier full text search engine!"
|
76
|
+
.. },
|
77
|
+
.. {
|
78
|
+
.. "_key": "memo3",
|
79
|
+
.. "title": "Rroonga is easy",
|
80
|
+
.. "content": "Ruby is very helpful."
|
81
|
+
.. },
|
82
|
+
.. {
|
83
|
+
.. "_key": "memo4",
|
84
|
+
.. "title": "Groonga is fast",
|
85
|
+
.. "content": "Groonga! Groonga! Groonga! Groonga is very fast!"
|
86
|
+
.. },
|
87
|
+
.. {
|
88
|
+
.. "_key": "memo5",
|
89
|
+
.. "title": "PGroonga is fast",
|
90
|
+
.. "content": "PGroonga is very fast!"
|
91
|
+
.. },
|
92
|
+
.. {
|
93
|
+
.. "_key": "memo6",
|
94
|
+
.. "title": "PGroonga is useful",
|
95
|
+
.. "content": "SQL is easy because many client libraries exist."
|
96
|
+
.. },
|
97
|
+
.. {
|
98
|
+
.. "_key": "memo7",
|
99
|
+
.. "title": "Mroonga is also useful",
|
100
|
+
.. "content": "MySQL has replication feature. Mroonga can use it."
|
101
|
+
.. }
|
102
|
+
.. ]
|
103
|
+
|
104
|
+
You can specify custom score function in :ref:`select-match-columns`.
|
105
|
+
There are some syntaxes.
|
106
|
+
|
107
|
+
For score function that doesn't require any parameter such as
|
108
|
+
:doc:`/reference/scorers/scorer_tf_idf`::
|
109
|
+
|
110
|
+
SCORE_FUNCTION(COLUMN)
|
111
|
+
|
112
|
+
You can specify weight::
|
113
|
+
|
114
|
+
SCORE_FUNCTION(COLUMN) * WEIGHT
|
115
|
+
|
116
|
+
For score function that requires one or more parameters such as
|
117
|
+
:doc:`/reference/scorers/scorer_tf_at_most`::
|
118
|
+
|
119
|
+
SCORE_FUNCTION(COLUMN, ARGUMENT1, ARGUMENT2, ...)
|
120
|
+
|
121
|
+
You can specify weight::
|
122
|
+
|
123
|
+
SCORE_FUNCTION(COLUMN, ARGUMENT1, ARGUMENT2, ...) * WEIGHT
|
124
|
+
|
125
|
+
You can use different score function for each match column::
|
126
|
+
|
127
|
+
SCORE_FUNCTION1(COLUMN1) ||
|
128
|
+
SCORE_FUNCTION2(COLUMN2) * WEIGHT ||
|
129
|
+
SCORE_FUNCTION3(COLUMN3, ARGUMENT1) ||
|
130
|
+
...
|
131
|
+
|
132
|
+
Here is a simplest example:
|
133
|
+
|
134
|
+
.. groonga-command
|
135
|
+
.. include:: ../example/reference/scorer/usage_one_no_argument_no_weight.log
|
136
|
+
.. select Memos \
|
137
|
+
.. --match_columns "scorer_tf_idf(content)" \
|
138
|
+
.. --query "Groonga" \
|
139
|
+
.. --output_columns "content, _score" \
|
140
|
+
.. --sortby "-_score"
|
141
|
+
|
142
|
+
``Groonga! Groonga! Groonga! Groonga is very fast!`` contains 4
|
143
|
+
``Groonga``. If you use TF based scorer that is the default scorer,
|
144
|
+
``_score`` is ``4``. But the actual ``_score`` is ``2``. Because the
|
145
|
+
``select`` command uses TF-IDF based scorer ``scorer_tf_idf()``.
|
146
|
+
|
147
|
+
Here is an example that uses weight:
|
148
|
+
|
149
|
+
.. groonga-command
|
150
|
+
.. include:: ../example/reference/scorer/usage_one_no_argument_weight.log
|
151
|
+
.. select Memos \
|
152
|
+
.. --match_columns "scorer_tf_idf(content) * 10" \
|
153
|
+
.. --query "Groonga" \
|
154
|
+
.. --output_columns "content, _score" \
|
155
|
+
.. --sortby "-_score"
|
156
|
+
|
157
|
+
``Groonga! Groonga! Groonga! Groonga is very fast!`` has ``22`` as
|
158
|
+
``_score``. It had ``2`` as ``_score`` in the previous example that
|
159
|
+
doesn't specify weight.
|
160
|
+
|
161
|
+
Here is an example that uses scorer that requires one
|
162
|
+
argument. :doc:`/reference/scorers/scorer_tf_at_most` scorer requires
|
163
|
+
one argument. You can limit TF score by the scorer.
|
164
|
+
|
165
|
+
.. groonga-command
|
166
|
+
.. include:: ../example/reference/scorer/usage_one_one_argument_no_weight.log
|
167
|
+
.. select Memos \
|
168
|
+
.. --match_columns "scorer_tf_at_most(content, 2.0)" \
|
169
|
+
.. --query "Groonga" \
|
170
|
+
.. --output_columns "content, _score" \
|
171
|
+
.. --sortby "-_score"
|
172
|
+
|
173
|
+
``Groonga! Groonga! Groonga! Groonga is very fast!`` contains 4
|
174
|
+
``Groonga``. If you use normal TF based scorer that is the default
|
175
|
+
scorer, ``_score`` is ``4``. But the actual ``_score`` is ``2``.
|
176
|
+
Because the scorer used in the ``select`` command limits the maximum
|
177
|
+
score value to ``2``.
|
178
|
+
|
179
|
+
Here is an example that uses multiple scorers::
|
180
|
+
|
181
|
+
.. groonga-command
|
182
|
+
.. include:: ../example/reference/scorer/usage_multiple_scorers.log
|
183
|
+
.. select Memos \
|
184
|
+
.. --match_columns "scorer_tf_idf(title) || scorer_tf_at_most(content, 2.0)" \
|
185
|
+
.. --query "Groonga" \
|
186
|
+
.. --output_columns "title, content, _score" \
|
187
|
+
.. --sortby "-_score"
|
188
|
+
|
189
|
+
The ``--match_columns`` uses ``scorer_tf_idf(title)`` and
|
190
|
+
``scorer_tf_at_most(content, 2.0)``. ``_score`` value is sum of them.
|
191
|
+
|
192
|
+
You can use the default scorer and custom scorer in the same
|
193
|
+
``--match_columns``. You can use the default scorer by just specifying
|
194
|
+
a match column::
|
195
|
+
|
196
|
+
.. groonga-command
|
197
|
+
.. include:: ../example/reference/scorer/usage_default_and_custom_scorers.log
|
198
|
+
.. select Memos \
|
199
|
+
.. --match_columns "title || scorer_tf_at_most(content, 2.0)" \
|
200
|
+
.. --query "Groonga" \
|
201
|
+
.. --output_columns "title, content, _score" \
|
202
|
+
.. --sortby "-_score"
|
203
|
+
|
204
|
+
The ``--match_columns`` uses the default scorer (TF) for ``title`` and
|
205
|
+
:doc:`/reference/scorers/scorer_tf_at_most` for
|
206
|
+
``content``. ``_score`` value is sum of them.
|
207
|
+
|
208
|
+
Built-in scorers
|
209
|
+
----------------
|
210
|
+
|
211
|
+
Here are built-in scores:
|
212
|
+
|
213
|
+
.. toctree::
|
214
|
+
:maxdepth: 1
|
215
|
+
:glob:
|
216
|
+
|
217
|
+
scorers/*
|