rroonga 7.1.1-x64-mingw32 → 9.0.2-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
 - data/Rakefile +3 -3
 - data/doc/text/news.md +22 -0
 - data/ext/groonga/extconf.rb +29 -26
 - data/ext/groonga/rb-grn.h +3 -3
 - data/lib/2.2/groonga.so +0 -0
 - data/lib/2.3/groonga.so +0 -0
 - data/lib/2.4/groonga.so +0 -0
 - data/lib/2.5/groonga.so +0 -0
 - data/lib/groonga/expression-builder.rb +1 -1
 - data/lib/groonga/schema.rb +13 -0
 - data/rroonga-build.rb +4 -11
 - data/test/test-expression-builder.rb +8 -0
 - data/vendor/local/bin/cv2pdb.exe +0 -0
 - data/vendor/local/bin/generate-pdb.bat +38 -36
 - data/vendor/local/bin/grndb.exe +0 -0
 - data/vendor/local/bin/groonga-benchmark.exe +0 -0
 - data/vendor/local/bin/groonga-suggest-create-dataset.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-2.dll +0 -0
 - data/vendor/local/bin/libmsgpackc.dll +0 -0
 - data/vendor/local/bin/libonigmo-6.dll +0 -0
 - data/vendor/local/bin/libpcre-1.dll +0 -0
 - data/vendor/local/bin/libpcrecpp-0.dll +0 -0
 - data/vendor/local/bin/libpcreposix-0.dll +0 -0
 - data/vendor/local/bin/lz4.exe +0 -0
 - data/vendor/local/bin/lz4c.exe +0 -0
 - data/vendor/local/bin/{lz4cat → lz4cat.exe} +0 -0
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/pcre-config +1 -1
 - data/vendor/local/bin/pcregrep.exe +0 -0
 - data/vendor/local/bin/pcretest.exe +0 -0
 - data/vendor/local/bin/unlz4.exe +0 -0
 - data/vendor/local/bin/zlib1.dll +0 -0
 - data/vendor/local/include/groonga/groonga.h +16 -1
 - data/vendor/local/include/groonga/groonga/accessor.h +5 -1
 - data/vendor/local/include/groonga/groonga/column.h +4 -0
 - data/vendor/local/include/groonga/groonga/db.h +3 -1
 - data/vendor/local/include/groonga/groonga/expr.h +5 -0
 - data/vendor/local/include/groonga/groonga/groonga.h +124 -171
 - data/vendor/local/include/groonga/groonga/highlighter.h +57 -0
 - data/vendor/local/include/groonga/groonga/ii.h +2 -0
 - data/vendor/local/include/groonga/groonga/index_column.h +31 -0
 - data/vendor/local/include/groonga/groonga/memory.h +29 -0
 - data/vendor/local/include/groonga/groonga/msgpack.h +50 -0
 - data/vendor/local/include/groonga/groonga/obj.h +22 -1
 - data/vendor/local/include/groonga/groonga/option.h +61 -0
 - data/vendor/local/include/groonga/groonga/output.h +57 -2
 - data/vendor/local/include/groonga/groonga/output_columns.h +38 -0
 - data/vendor/local/include/groonga/groonga/plugin.h +5 -0
 - data/vendor/local/include/groonga/groonga/raw_string.h +60 -0
 - data/vendor/local/include/groonga/groonga/string.h +113 -0
 - data/vendor/local/include/groonga/groonga/table.h +89 -1
 - data/vendor/local/include/groonga/groonga/thread.h +15 -0
 - data/vendor/local/include/groonga/groonga/time.h +1 -0
 - data/vendor/local/include/groonga/groonga/token.h +60 -10
 - data/vendor/local/include/groonga/groonga/token_cursor.h +59 -0
 - data/vendor/local/include/groonga/groonga/token_filter.h +24 -0
 - data/vendor/local/include/groonga/groonga/token_metadata.h +49 -0
 - data/vendor/local/include/groonga/groonga/tokenizer.h +99 -25
 - data/vendor/local/include/groonga/groonga/tokenizer_query_deprecated.h +50 -0
 - data/vendor/local/include/groonga/groonga/vector.h +80 -0
 - data/vendor/local/include/groonga/groonga/version.h +32 -0
 - data/vendor/local/include/groonga/groonga/window_function.h +18 -8
 - data/vendor/local/include/groonga/groonga/window_function_executor.h +68 -0
 - data/vendor/local/include/lz4.h +504 -212
 - data/vendor/local/include/lz4frame.h +433 -153
 - data/vendor/local/include/lz4frame_static.h +47 -0
 - data/vendor/local/include/lz4hc.h +281 -108
 - data/vendor/local/include/msgpack.hpp +4 -0
 - data/vendor/local/include/msgpack/adaptor/adaptor_base.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/adaptor_base_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/array_ref_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/boost/msgpack_variant_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/boost/string_view.hpp +15 -0
 - data/vendor/local/include/msgpack/adaptor/check_container_size_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/cpp17/optional.hpp +16 -0
 - data/vendor/local/include/msgpack/adaptor/cpp17/string_view.hpp +16 -0
 - data/vendor/local/include/msgpack/adaptor/define_decl.hpp +2 -0
 - data/vendor/local/include/msgpack/adaptor/ext_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/fixint_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/int_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/map_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/msgpack_tuple_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/nil_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/raw_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/size_equal_only_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/adaptor/tr1/unordered_map.hpp +2 -2
 - data/vendor/local/include/msgpack/adaptor/tr1/unordered_set.hpp +2 -2
 - data/vendor/local/include/msgpack/adaptor/v4raw_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/cpp_config_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/create_object_visitor.hpp +17 -0
 - data/vendor/local/include/msgpack/create_object_visitor_decl.hpp +16 -0
 - data/vendor/local/include/msgpack/fbuffer.h +1 -1
 - data/vendor/local/include/msgpack/fbuffer_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/gcc_atomic.hpp +0 -2
 - data/vendor/local/include/msgpack/iterator_decl.hpp +2 -1
 - data/vendor/local/include/msgpack/meta_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/null_visitor.hpp +17 -0
 - data/vendor/local/include/msgpack/null_visitor_decl.hpp +16 -0
 - data/vendor/local/include/msgpack/object.h +5 -0
 - data/vendor/local/include/msgpack/object_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/object_fwd.hpp +1 -0
 - data/vendor/local/include/msgpack/object_fwd_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/pack.h +1 -0
 - data/vendor/local/include/msgpack/pack_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/parse.hpp +18 -0
 - data/vendor/local/include/msgpack/parse_decl.hpp +16 -0
 - data/vendor/local/include/msgpack/parse_return.hpp +17 -0
 - data/vendor/local/include/msgpack/sbuffer_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/sysdep.h +34 -26
 - data/vendor/local/include/msgpack/type.hpp +9 -0
 - data/vendor/local/include/msgpack/unpack.h +12 -1
 - data/vendor/local/include/msgpack/unpack.hpp +1 -0
 - data/vendor/local/include/msgpack/unpack_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/unpack_exception.hpp +15 -0
 - data/vendor/local/include/msgpack/unpack_template.h +22 -30
 - data/vendor/local/include/msgpack/v1/adaptor/array_ref.hpp +6 -6
 - data/vendor/local/include/msgpack/v1/adaptor/boost/fusion.hpp +49 -6
 - data/vendor/local/include/msgpack/v1/adaptor/boost/msgpack_variant.hpp +6 -4
 - data/vendor/local/include/msgpack/v1/adaptor/boost/string_view.hpp +87 -0
 - data/vendor/local/include/msgpack/v1/adaptor/carray.hpp +11 -11
 - data/vendor/local/include/msgpack/v1/adaptor/char_ptr.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/cpp11/array.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/cpp11/array_char.hpp +8 -1
 - data/vendor/local/include/msgpack/v1/adaptor/cpp11/array_unsigned_char.hpp +8 -1
 - data/vendor/local/include/msgpack/v1/adaptor/cpp11/forward_list.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/cpp11/tuple.hpp +2 -2
 - data/vendor/local/include/msgpack/v1/adaptor/cpp11/unordered_map.hpp +4 -4
 - data/vendor/local/include/msgpack/v1/adaptor/cpp11/unordered_set.hpp +2 -2
 - data/vendor/local/include/msgpack/v1/adaptor/cpp17/optional.hpp +90 -0
 - data/vendor/local/include/msgpack/v1/adaptor/cpp17/string_view.hpp +86 -0
 - data/vendor/local/include/msgpack/v1/adaptor/deque.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_define_array.hpp +1088 -32
 - data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_define_map.hpp +32 -16
 - data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_msgpack_tuple.hpp +32 -32
 - data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_convert_helper.hpp +45 -0
 - data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_define_array.hpp +4 -3
 - data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_define_map.hpp +4 -2
 - data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp +2 -2
 - data/vendor/local/include/msgpack/v1/adaptor/ext.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/fixint.hpp +40 -24
 - data/vendor/local/include/msgpack/v1/adaptor/float.hpp +4 -4
 - data/vendor/local/include/msgpack/v1/adaptor/int.hpp +55 -33
 - data/vendor/local/include/msgpack/v1/adaptor/list.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/map.hpp +10 -10
 - data/vendor/local/include/msgpack/v1/adaptor/pair.hpp +2 -2
 - data/vendor/local/include/msgpack/v1/adaptor/set.hpp +2 -2
 - data/vendor/local/include/msgpack/v1/adaptor/string.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/tr1/unordered_map.hpp +2 -2
 - data/vendor/local/include/msgpack/v1/adaptor/tr1/unordered_set.hpp +2 -2
 - data/vendor/local/include/msgpack/v1/adaptor/vector.hpp +5 -5
 - data/vendor/local/include/msgpack/v1/adaptor/vector_bool.hpp +1 -1
 - data/vendor/local/include/msgpack/v1/adaptor/vector_char.hpp +9 -9
 - data/vendor/local/include/msgpack/v1/adaptor/vector_unsigned_char.hpp +9 -9
 - data/vendor/local/include/msgpack/v1/cpp_config.hpp +6 -0
 - data/vendor/local/include/msgpack/v1/cpp_config_decl.hpp +6 -0
 - data/vendor/local/include/msgpack/v1/detail/cpp03_zone.hpp +41 -34
 - data/vendor/local/include/msgpack/v1/detail/cpp03_zone_decl.hpp +8 -0
 - data/vendor/local/include/msgpack/v1/detail/cpp11_zone.hpp +25 -19
 - data/vendor/local/include/msgpack/v1/detail/cpp11_zone_decl.hpp +8 -0
 - data/vendor/local/include/msgpack/v1/meta.hpp +6 -0
 - data/vendor/local/include/msgpack/v1/meta_decl.hpp +5 -0
 - data/vendor/local/include/msgpack/v1/object.hpp +768 -393
 - data/vendor/local/include/msgpack/v1/object_decl.hpp +11 -1
 - data/vendor/local/include/msgpack/v1/object_fwd.hpp +4 -1
 - data/vendor/local/include/msgpack/v1/object_fwd_decl.hpp +3 -1
 - data/vendor/local/include/msgpack/v1/parse_return.hpp +36 -0
 - data/vendor/local/include/msgpack/v1/unpack.hpp +39 -120
 - data/vendor/local/include/msgpack/v1/unpack_decl.hpp +2 -9
 - data/vendor/local/include/msgpack/v1/unpack_exception.hpp +122 -0
 - data/vendor/local/include/msgpack/v1/vrefbuffer.hpp +2 -2
 - data/vendor/local/include/msgpack/v2/create_object_visitor.hpp +250 -0
 - data/vendor/local/include/msgpack/v2/create_object_visitor_decl.hpp +33 -0
 - data/vendor/local/include/msgpack/v2/meta_decl.hpp +4 -0
 - data/vendor/local/include/msgpack/v2/null_visitor.hpp +96 -0
 - data/vendor/local/include/msgpack/v2/null_visitor_decl.hpp +29 -0
 - data/vendor/local/include/msgpack/v2/object_decl.hpp +4 -0
 - data/vendor/local/include/msgpack/v2/object_fwd.hpp +1 -1
 - data/vendor/local/include/msgpack/v2/object_fwd_decl.hpp +2 -0
 - data/vendor/local/include/msgpack/v2/pack_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/v2/parse.hpp +1072 -0
 - data/vendor/local/include/msgpack/v2/parse_decl.hpp +79 -0
 - data/vendor/local/include/msgpack/v2/parse_return.hpp +37 -0
 - data/vendor/local/include/msgpack/v2/unpack.hpp +21 -1298
 - data/vendor/local/include/msgpack/v2/unpack_decl.hpp +9 -45
 - data/vendor/local/include/msgpack/v2/x3_parse.hpp +875 -0
 - data/vendor/local/include/msgpack/v2/x3_parse_decl.hpp +36 -0
 - data/vendor/local/include/msgpack/v2/x3_unpack.hpp +120 -0
 - data/vendor/local/include/msgpack/v2/x3_unpack_decl.hpp +71 -0
 - data/vendor/local/include/msgpack/v3/adaptor/adaptor_base.hpp +58 -0
 - data/vendor/local/include/msgpack/v3/adaptor/adaptor_base_decl.hpp +52 -0
 - data/vendor/local/include/msgpack/v3/adaptor/array_ref_decl.hpp +36 -0
 - data/vendor/local/include/msgpack/v3/adaptor/boost/msgpack_variant_decl.hpp +42 -0
 - data/vendor/local/include/msgpack/v3/adaptor/check_container_size_decl.hpp +39 -0
 - data/vendor/local/include/msgpack/v3/adaptor/define_decl.hpp +23 -0
 - data/vendor/local/include/msgpack/v3/adaptor/detail/cpp03_define_array_decl.hpp +31 -0
 - data/vendor/local/include/msgpack/v3/adaptor/detail/cpp03_define_map_decl.hpp +31 -0
 - data/vendor/local/include/msgpack/v3/adaptor/detail/cpp03_msgpack_tuple_decl.hpp +43 -0
 - data/vendor/local/include/msgpack/v3/adaptor/detail/cpp11_define_array_decl.hpp +32 -0
 - data/vendor/local/include/msgpack/v3/adaptor/detail/cpp11_define_map_decl.hpp +31 -0
 - data/vendor/local/include/msgpack/v3/adaptor/detail/cpp11_msgpack_tuple_decl.hpp +59 -0
 - data/vendor/local/include/msgpack/v3/adaptor/ext_decl.hpp +34 -0
 - data/vendor/local/include/msgpack/v3/adaptor/fixint_decl.hpp +43 -0
 - data/vendor/local/include/msgpack/v3/adaptor/int_decl.hpp +54 -0
 - data/vendor/local/include/msgpack/v3/adaptor/map_decl.hpp +33 -0
 - data/vendor/local/include/msgpack/v3/adaptor/msgpack_tuple_decl.hpp +21 -0
 - data/vendor/local/include/msgpack/v3/adaptor/nil_decl.hpp +42 -0
 - data/vendor/local/include/msgpack/v3/adaptor/raw_decl.hpp +33 -0
 - data/vendor/local/include/msgpack/v3/adaptor/size_equal_only_decl.hpp +35 -0
 - data/vendor/local/include/msgpack/v3/adaptor/v4raw_decl.hpp +34 -0
 - data/vendor/local/include/msgpack/v3/cpp_config_decl.hpp +84 -0
 - data/vendor/local/include/msgpack/v3/create_object_visitor_decl.hpp +33 -0
 - data/vendor/local/include/msgpack/v3/detail/cpp03_zone_decl.hpp +31 -0
 - data/vendor/local/include/msgpack/v3/detail/cpp11_zone_decl.hpp +31 -0
 - data/vendor/local/include/msgpack/v3/fbuffer_decl.hpp +32 -0
 - data/vendor/local/include/msgpack/v3/iterator_decl.hpp +33 -0
 - data/vendor/local/include/msgpack/v3/meta_decl.hpp +50 -0
 - data/vendor/local/include/msgpack/v3/null_visitor_decl.hpp +29 -0
 - data/vendor/local/include/msgpack/v3/object_decl.hpp +53 -0
 - data/vendor/local/include/msgpack/v3/object_fwd.hpp +70 -0
 - data/vendor/local/include/msgpack/v3/object_fwd_decl.hpp +75 -0
 - data/vendor/local/include/msgpack/v3/pack_decl.hpp +55 -0
 - data/vendor/local/include/msgpack/v3/parse.hpp +677 -0
 - data/vendor/local/include/msgpack/v3/parse_decl.hpp +49 -0
 - data/vendor/local/include/msgpack/v3/parse_return.hpp +35 -0
 - data/vendor/local/include/msgpack/v3/sbuffer_decl.hpp +33 -0
 - data/vendor/local/include/msgpack/v3/unpack.hpp +192 -0
 - data/vendor/local/include/msgpack/v3/unpack_decl.hpp +304 -0
 - data/vendor/local/include/msgpack/v3/vrefbuffer_decl.hpp +29 -0
 - data/vendor/local/include/msgpack/v3/x3_parse_decl.hpp +34 -0
 - data/vendor/local/include/msgpack/v3/x3_unpack.hpp +97 -0
 - data/vendor/local/include/msgpack/v3/x3_unpack_decl.hpp +65 -0
 - data/vendor/local/include/msgpack/v3/zbuffer_decl.hpp +29 -0
 - data/vendor/local/include/msgpack/v3/zone_decl.hpp +21 -0
 - data/vendor/local/include/msgpack/version_master.h +2 -2
 - data/vendor/local/include/msgpack/versioning.hpp +5 -3
 - data/vendor/local/include/msgpack/vrefbuffer.h +1 -2
 - data/vendor/local/include/msgpack/vrefbuffer_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/x3_parse.hpp +15 -0
 - data/vendor/local/include/msgpack/x3_parse_decl.hpp +16 -0
 - data/vendor/local/include/msgpack/x3_unpack.hpp +16 -0
 - data/vendor/local/include/msgpack/x3_unpack_decl.hpp +16 -0
 - data/vendor/local/include/msgpack/zbuffer_decl.hpp +1 -0
 - data/vendor/local/include/msgpack/zone_decl.hpp +1 -0
 - data/vendor/local/include/pcre.h +6 -6
 - data/vendor/local/lib/cmake/msgpack/msgpack-config-version.cmake +46 -0
 - data/vendor/local/lib/cmake/msgpack/msgpack-config.cmake +47 -0
 - data/vendor/local/lib/cmake/msgpack/msgpack-targets-noconfig.cmake +29 -0
 - data/vendor/local/lib/cmake/msgpack/msgpack-targets.cmake +101 -0
 - data/vendor/local/lib/groonga/plugins/functions/index_column.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/index_column.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/index_column.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/index_column.la +1 -1
 - data/vendor/local/lib/groonga/plugins/functions/math.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/math.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/math.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/math.la +1 -1
 - data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/number.la +1 -1
 - data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/string.la +1 -1
 - data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/time.la +1 -1
 - data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.la +1 -1
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.la +2 -2
 - 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 +1 -1
 - data/vendor/local/lib/groonga/plugins/sharding/dynamic_columns.rb +150 -19
 - data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +123 -65
 - data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +528 -113
 - data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +142 -40
 - 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 +1 -1
 - 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 +1 -1
 - 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 +1 -1
 - data/vendor/local/lib/groonga/scripts/ruby/backtrace_entry.rb +1 -1
 - data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +64 -35
 - data/vendor/local/lib/groonga/scripts/ruby/expression.rb +3 -1
 - data/vendor/local/lib/groonga/scripts/ruby/expression_rewriters.rb +15 -21
 - data/vendor/local/lib/groonga/scripts/ruby/expression_rewriters/optimizer.rb +274 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree.rb +8 -2
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/assign.rb +22 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/assign_binary_operation.rb +24 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/binary_operation.rb +206 -8
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/constant.rb +16 -1
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +30 -1
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/logical_operation.rb +6 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/member.rb +18 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/null.rb +17 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/reference.rb +18 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/table.rb +14 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb +26 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/variable.rb +4 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +78 -8
 - data/vendor/local/lib/groonga/scripts/ruby/index_column.rb +10 -0
 - data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +2 -0
 - data/vendor/local/lib/groonga/scripts/ruby/locale_output.rb +28 -0
 - data/vendor/local/lib/groonga/scripts/ruby/logger.rb +36 -4
 - data/vendor/local/lib/groonga/scripts/ruby/record.rb +1 -1
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +0 -3
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +46 -5
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_data_size_estimator.rb +5 -136
 - data/vendor/local/lib/groonga/scripts/ruby/table.rb +2 -2
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libgroonga.la +1 -1
 - data/vendor/local/lib/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 → liblz4.dll.1.8.2} +0 -0
 - data/vendor/local/lib/libmecab.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/libonigmo.a +0 -0
 - data/vendor/local/lib/libonigmo.dll.a +0 -0
 - data/vendor/local/lib/libpcre.a +0 -0
 - data/vendor/local/lib/libpcre.dll.a +0 -0
 - data/vendor/local/lib/libpcre.la +2 -2
 - data/vendor/local/lib/libpcrecpp.dll.a +0 -0
 - data/vendor/local/lib/libpcrecpp.la +1 -1
 - data/vendor/local/lib/libpcreposix.a +0 -0
 - data/vendor/local/lib/libpcreposix.dll.a +0 -0
 - data/vendor/local/lib/libpcreposix.la +2 -2
 - data/vendor/local/lib/libz.dll.a +0 -0
 - data/vendor/local/lib/pkgconfig/groonga-normalizer-mysql.pc +1 -1
 - data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
 - data/vendor/local/lib/pkgconfig/liblz4.pc +3 -3
 - data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
 - data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
 - data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
 - data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
 - 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-normalizer-mysql/README.md +14 -22
 - data/vendor/local/share/doc/groonga-normalizer-mysql/news.md +22 -2
 - data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/basic.css +113 -4
 - data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +46 -19
 - data/vendor/local/share/doc/groonga/en/html/_static/documentation_options.js +10 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/{jquery-3.1.0.js → jquery-3.2.1.js} +474 -295
 - data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_static/language_data.js +297 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/pygments.css +4 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +69 -322
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +16 -24
 - data/vendor/local/share/doc/groonga/en/html/client.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/community.html +30 -38
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +23 -31
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +58 -66
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +51 -56
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +52 -56
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +27 -35
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +19 -27
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +26 -34
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +167 -167
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +16 -24
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +28 -36
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +59 -67
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +31 -39
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +18 -26
 - data/vendor/local/share/doc/groonga/en/html/development.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +38 -43
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +50 -28
 - data/vendor/local/share/doc/groonga/en/html/index.html +248 -234
 - data/vendor/local/share/doc/groonga/en/html/install.html +43 -47
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +43 -51
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +52 -131
 - data/vendor/local/share/doc/groonga/en/html/install/docker.html +155 -0
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +41 -49
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +29 -37
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +142 -150
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +30 -38
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +43 -51
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +33 -41
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +36 -42
 - data/vendor/local/share/doc/groonga/en/html/news.html +1586 -598
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +83 -83
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +147 -155
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +26 -34
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +225 -233
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +48 -56
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +378 -386
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +320 -328
 - data/vendor/local/share/doc/groonga/en/html/news/4.x.html +442 -448
 - data/vendor/local/share/doc/groonga/en/html/news/5.x.html +742 -860
 - data/vendor/local/share/doc/groonga/en/html/news/6.x.html +544 -621
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +32 -40
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +208 -198
 - data/vendor/local/share/doc/groonga/en/html/reference/alias.html +85 -93
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +50 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +62 -77
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +117 -149
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +140 -176
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +43 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +48 -56
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +194 -254
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +106 -138
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +62 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +117 -137
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +74 -98
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +79 -103
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +40 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +57 -73
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +75 -99
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_inspect.html +495 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +52 -68
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +291 -357
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +69 -89
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +47 -59
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +226 -306
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +120 -160
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +80 -103
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +46 -58
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +40 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +52 -66
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +98 -122
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +40 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +16 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +16 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +30 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +16 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +92 -100
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +76 -84
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +26 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +64 -72
 - data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +21 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +25 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +32 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +105 -113
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +44 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +85 -73
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +31 -37
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +131 -139
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +370 -326
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +115 -117
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +38 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +47 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +40 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +42 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +41 -49
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +37 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +71 -63
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +31 -37
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +49 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +64 -71
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +335 -138
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +233 -87
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +45 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +42 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +43 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +58 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +33 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +31 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +295 -218
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +56 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +532 -214
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +797 -388
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +35 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +188 -196
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +83 -90
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +41 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +41 -49
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +401 -403
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +253 -261
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +60 -68
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +36 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +35 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +21 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +22 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +21 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +39 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +47 -53
 - 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 +38 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +38 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +330 -338
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +1545 -1194
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +57 -65
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +83 -91
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +119 -133
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +30 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +165 -174
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +50 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +104 -112
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +42 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +49 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +46 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +110 -117
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +41 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +40 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +37 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +19 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +134 -114
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +25 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +66 -66
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +174 -182
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +25 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +27 -35
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +191 -199
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +32 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +189 -163
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +59 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +71 -79
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/cast_loose.html +210 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +49 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +38 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +133 -142
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +67 -73
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +56 -62
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +80 -88
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +70 -78
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +56 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +87 -94
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +54 -62
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/math_abs.html +55 -63
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +40 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +36 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +74 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +152 -160
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +45 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +76 -84
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/string_length.html +37 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +39 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +76 -84
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +37 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day_of_week.html +278 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +37 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +36 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +36 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +36 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +36 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +37 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_find.html +368 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +40 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +54 -62
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +40 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +44 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +307 -316
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +486 -492
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +44 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +128 -147
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +43 -92
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_auto.html +179 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc100.html +897 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc51.html +162 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +26 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +48 -56
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +47 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +47 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +20 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +93 -101
 - data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +228 -225
 - data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +59 -67
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +50 -58
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +57 -65
 - data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +76 -86
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +43 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +159 -167
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +93 -101
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +85 -93
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +88 -96
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +142 -150
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filter/summary.html +147 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +31 -223
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_nfkc100.html +626 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stem.html +291 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stop_word.html +287 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizer/summary.html +259 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +42 -1455
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram.html +368 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank.html +221 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +240 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +270 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +292 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol.html +179 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +200 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +212 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit.html +357 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit_null.html +162 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_mecab.html +783 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_regexp.html +289 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_trigram.html +194 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_unigram.html +194 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +71 -79
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +64 -72
 - data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +29 -37
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +38 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_count.html +38 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +38 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +38 -46
 - data/vendor/local/share/doc/groonga/en/html/search.html +13 -24
 - data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/server.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +27 -35
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +18 -26
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +94 -102
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/server/memcached.html +18 -26
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +101 -109
 - data/vendor/local/share/doc/groonga/en/html/spec.html +19 -27
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +207 -215
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +39 -39
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +15 -23
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +46 -50
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/how_to_analyze_error_message.html +27 -35
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +26 -31
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +17 -25
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +46 -54
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +63 -71
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +30 -38
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +88 -97
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +19 -27
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +61 -69
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +108 -116
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +24 -32
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +19 -27
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +32 -40
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +52 -60
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +113 -4
 - data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +46 -19
 - data/vendor/local/share/doc/groonga/ja/html/_static/documentation_options.js +10 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/{jquery-3.1.0.js → jquery-3.2.1.js} +474 -295
 - data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_static/language_data.js +124 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/pygments.css +4 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +70 -150
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/client.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/community.html +29 -37
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +23 -31
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +50 -58
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +43 -48
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +47 -51
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +26 -34
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +18 -26
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +23 -31
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +162 -162
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +16 -24
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +26 -34
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +50 -58
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +28 -36
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +17 -25
 - data/vendor/local/share/doc/groonga/ja/html/development.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +32 -37
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +50 -28
 - data/vendor/local/share/doc/groonga/ja/html/index.html +247 -233
 - data/vendor/local/share/doc/groonga/ja/html/install.html +41 -45
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +44 -52
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +52 -121
 - data/vendor/local/share/doc/groonga/ja/html/install/docker.html +155 -0
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +40 -48
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +28 -36
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +116 -124
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +28 -36
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +43 -51
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -37
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +30 -36
 - data/vendor/local/share/doc/groonga/ja/html/news.html +1234 -384
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +82 -82
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +146 -154
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +25 -33
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +191 -199
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +41 -49
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +283 -291
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +229 -237
 - data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +274 -280
 - data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +475 -593
 - data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +313 -390
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +31 -39
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +208 -198
 - data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +70 -78
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +50 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +57 -72
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +107 -139
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +137 -173
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +40 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +46 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +184 -244
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +99 -131
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +57 -77
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +100 -120
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +71 -95
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +75 -99
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +37 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +54 -70
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +71 -95
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_inspect.html +487 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +49 -65
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +286 -352
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +64 -84
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +44 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +219 -299
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +116 -156
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +70 -93
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +42 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +36 -48
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +48 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +94 -118
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +39 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +28 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +76 -84
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +76 -84
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +25 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +51 -59
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +20 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +21 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +27 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +101 -109
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +39 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +84 -72
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +30 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +104 -112
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +271 -237
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +100 -102
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +37 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +41 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +39 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +39 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +34 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +70 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +30 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +42 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +59 -68
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +300 -126
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +212 -80
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +42 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +40 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +41 -49
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +57 -63
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +32 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +30 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +246 -178
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +51 -59
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +479 -175
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +718 -326
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +34 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +145 -153
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +78 -85
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +40 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +36 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +360 -362
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +221 -229
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +47 -55
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +32 -40
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +33 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +20 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +21 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +20 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +35 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +42 -48
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +57 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +36 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +36 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +317 -325
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +1246 -917
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +50 -58
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +77 -85
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +109 -123
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +29 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +131 -140
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +49 -49
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +87 -95
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +36 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +44 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +93 -100
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +40 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +39 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +36 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +19 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +125 -107
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +23 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +62 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +132 -140
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +23 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +25 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +166 -174
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +31 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +189 -165
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +59 -64
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +69 -77
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/cast_loose.html +208 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +48 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +37 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +115 -124
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +66 -72
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +55 -61
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +69 -77
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +60 -68
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +54 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +85 -93
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +54 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/math_abs.html +54 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +39 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +35 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +67 -75
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +130 -138
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +44 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +61 -69
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_length.html +36 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +63 -71
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +36 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day_of_week.html +276 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +36 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +35 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +35 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +35 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +35 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +36 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_find.html +353 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +39 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +52 -61
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +200 -208
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +375 -382
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +39 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +125 -144
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +36 -70
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_auto.html +168 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc100.html +887 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc51.html +160 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +26 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +41 -49
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +42 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +20 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +68 -76
 - data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +178 -184
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +38 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +39 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +63 -73
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +43 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +130 -138
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +72 -80
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +68 -76
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +76 -86
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +129 -137
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filter/summary.html +145 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +31 -215
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_nfkc100.html +617 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stem.html +289 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stop_word.html +284 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizer/summary.html +233 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +42 -1349
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram.html +344 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank.html +219 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +237 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +267 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +287 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol.html +179 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +199 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +209 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit.html +344 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit_null.html +160 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_mecab.html +764 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_regexp.html +284 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_trigram.html +191 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_unigram.html +191 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +65 -73
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +48 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +29 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +37 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_count.html +37 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +37 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +37 -45
 - data/vendor/local/share/doc/groonga/ja/html/search.html +13 -24
 - data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/server.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +22 -30
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +17 -25
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +82 -90
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +16 -24
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +99 -107
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +19 -27
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +201 -209
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +36 -36
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +44 -48
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/how_to_analyze_error_message.html +21 -29
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +24 -29
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +16 -24
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +32 -40
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +62 -70
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +22 -30
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +77 -86
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +15 -23
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +56 -64
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +84 -92
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +20 -28
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +18 -26
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +21 -29
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +43 -51
 - data/vendor/local/share/doc/pcre/AUTHORS +3 -3
 - data/vendor/local/share/doc/pcre/ChangeLog +53 -0
 - data/vendor/local/share/doc/pcre/LICENCE +3 -3
 - data/vendor/local/share/doc/pcre/NEWS +6 -0
 - data/vendor/local/share/doc/pcre/html/NON-AUTOTOOLS-BUILD.txt +8 -7
 - data/vendor/local/share/groonga/mruby/LEGAL +35 -35
 - data/vendor/local/share/license/cv2pdb/{README → README.MD} +28 -10
 - data/vendor/local/share/license/groonga-normalizer-mysql/README.md +14 -22
 - data/vendor/local/share/license/lz4/LICENSE +2 -2
 - data/vendor/local/share/license/mruby/AUTHORS +3 -0
 - data/vendor/local/share/license/mruby/MITL +1 -1
 - data/vendor/local/share/license/mruby/README.md +1 -1
 - data/vendor/local/share/license/msgpack/README.md +5 -34
 - data/vendor/local/share/license/pcre/LICENCE +3 -3
 - data/vendor/local/share/man/man1/lz4.1 +221 -86
 - data/vendor/local/share/man/man1/lz4c.1 +222 -32
 - data/vendor/local/share/man/man1/lz4cat.1 +221 -30
 - data/vendor/local/share/man/man1/unlz4.1 +223 -0
 - metadata +231 -87
 - data/lib/2.1/groonga.so +0 -0
 - data/vendor/local/lib/groonga/plugins/expression_rewriters/optimizer.rb +0 -147
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/options.rb +0 -14
 - data/vendor/local/share/doc/groonga/en/html/_static/ajax-loader.gif +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/comment-bright.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/comment-close.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/comment.png +0 -0
 - 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/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 +0 -808
 - data/vendor/local/share/doc/groonga/ja/html/_static/ajax-loader.gif +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/comment-bright.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/comment-close.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/comment.png +0 -0
 - 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/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 +0 -808
 
| 
         @@ -1,34 +1,26 @@ 
     | 
|
| 
       1 
1 
     | 
    
         | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            <!DOCTYPE html 
     | 
| 
       4 
     | 
    
         
            -
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         
     | 
| 
      
 3 
     | 
    
         
            +
            <!DOCTYPE html>
         
     | 
| 
       5 
4 
     | 
    
         | 
| 
       6 
5 
     | 
    
         
             
            <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
         
     | 
| 
       7 
6 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
     | 
    
         
            -
                <meta  
     | 
| 
       9 
     | 
    
         
            -
                <title>7. 
     | 
| 
      
 7 
     | 
    
         
            +
                <meta charset="utf-8" />
         
     | 
| 
      
 8 
     | 
    
         
            +
                <title>7.13.2. Script syntax — Groonga v9.0.2 documentation</title>
         
     | 
| 
       10 
9 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
         
     | 
| 
       11 
10 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
         
     | 
| 
       12 
     | 
    
         
            -
                 
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
                    URL_ROOT:    '../../',
         
     | 
| 
       15 
     | 
    
         
            -
                    VERSION:     '7.1.0-73-g6d02cfa',
         
     | 
| 
       16 
     | 
    
         
            -
                    COLLAPSE_INDEX: false,
         
     | 
| 
       17 
     | 
    
         
            -
                    FILE_SUFFIX: '.html',
         
     | 
| 
       18 
     | 
    
         
            -
                    HAS_SOURCE:  false,
         
     | 
| 
       19 
     | 
    
         
            -
                    SOURCELINK_SUFFIX: '.txt'
         
     | 
| 
       20 
     | 
    
         
            -
                  };
         
     | 
| 
       21 
     | 
    
         
            -
                </script>
         
     | 
| 
      
 11 
     | 
    
         
            +
                
         
     | 
| 
      
 12 
     | 
    
         
            +
                <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
         
     | 
| 
       22 
13 
     | 
    
         
             
                <script type="text/javascript" src="../../_static/jquery.js"></script>
         
     | 
| 
       23 
14 
     | 
    
         
             
                <script type="text/javascript" src="../../_static/underscore.js"></script>
         
     | 
| 
       24 
15 
     | 
    
         
             
                <script type="text/javascript" src="../../_static/doctools.js"></script>
         
     | 
| 
      
 16 
     | 
    
         
            +
                <script type="text/javascript" src="../../_static/language_data.js"></script>
         
     | 
| 
      
 17 
     | 
    
         
            +
                
         
     | 
| 
       25 
18 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       26 
19 
     | 
    
         
             
                <link rel="index" title="Index" href="../../genindex.html" />
         
     | 
| 
       27 
20 
     | 
    
         
             
                <link rel="search" title="Search" href="../../search.html" />
         
     | 
| 
       28 
     | 
    
         
            -
                <link rel="next" title="7. 
     | 
| 
       29 
     | 
    
         
            -
                <link rel="prev" title="7. 
     | 
| 
       30 
     | 
    
         
            -
              </head>
         
     | 
| 
       31 
     | 
    
         
            -
              <body>
         
     | 
| 
      
 21 
     | 
    
         
            +
                <link rel="next" title="7.14. Regular expression" href="../regular_expression.html" />
         
     | 
| 
      
 22 
     | 
    
         
            +
                <link rel="prev" title="7.13.1. Query syntax" href="query_syntax.html" /> 
         
     | 
| 
      
 23 
     | 
    
         
            +
              </head><body>
         
     | 
| 
       32 
24 
     | 
    
         
             
            <div class="header">
         
     | 
| 
       33 
25 
     | 
    
         
             
              <h1 class="title">
         
     | 
| 
       34 
26 
     | 
    
         
             
                <a id="top-link" href="../../index.html">
         
     | 
| 
         @@ -53,14 +45,14 @@ 
     | 
|
| 
       53 
45 
     | 
    
         
             
                      <a href="../../genindex.html" title="General Index"
         
     | 
| 
       54 
46 
     | 
    
         
             
                         accesskey="I">index</a></li>
         
     | 
| 
       55 
47 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       56 
     | 
    
         
            -
                      <a href="../regular_expression.html" title="7. 
     | 
| 
      
 48 
     | 
    
         
            +
                      <a href="../regular_expression.html" title="7.14. Regular expression"
         
     | 
| 
       57 
49 
     | 
    
         
             
                         accesskey="N">next</a> |</li>
         
     | 
| 
       58 
50 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       59 
     | 
    
         
            -
                      <a href="query_syntax.html" title="7. 
     | 
| 
      
 51 
     | 
    
         
            +
                      <a href="query_syntax.html" title="7.13.1. Query syntax"
         
     | 
| 
       60 
52 
     | 
    
         
             
                         accesskey="P">previous</a> |</li>
         
     | 
| 
       61 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 53 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v9.0.2 documentation</a> »</li>
         
     | 
| 
       62 
54 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       63 
     | 
    
         
            -
                      <li class="nav-item nav-item-2"><a href="../grn_expr.html" accesskey="U">7. 
     | 
| 
      
 55 
     | 
    
         
            +
                      <li class="nav-item nav-item-2"><a href="../grn_expr.html" accesskey="U">7.13. grn_expr</a> »</li> 
         
     | 
| 
       64 
56 
     | 
    
         
             
                  </ul>
         
     | 
| 
       65 
57 
     | 
    
         
             
                </div>  
         
     | 
| 
       66 
58 
     | 
    
         | 
| 
         @@ -70,28 +62,28 @@ 
     | 
|
| 
       70 
62 
     | 
    
         
             
                      <div class="body" role="main">
         
     | 
| 
       71 
63 
     | 
    
         | 
| 
       72 
64 
     | 
    
         
             
              <div class="section" id="script-syntax">
         
     | 
| 
       73 
     | 
    
         
            -
            <h1>7. 
     | 
| 
      
 65 
     | 
    
         
            +
            <h1>7.13.2. Script syntax<a class="headerlink" href="#script-syntax" title="Permalink to this headline">¶</a></h1>
         
     | 
| 
       74 
66 
     | 
    
         
             
            <p>Script syntax is a syntax to specify complex search condition. It is
         
     | 
| 
       75 
     | 
    
         
            -
            similar to ECMAScript. For example, <code class="docutils literal"><span class="pre">_key</span> <span class="pre">==</span> <span class="pre">"book"</span></code> means that
         
     | 
| 
       76 
     | 
    
         
            -
            groonga searches records that <code class="docutils literal"><span class="pre">_key</span></code> value is <code class="docutils literal"><span class="pre">"book"</span></code>. All values
         
     | 
| 
      
 67 
     | 
    
         
            +
            similar to ECMAScript. For example, <code class="docutils literal notranslate"><span class="pre">_key</span> <span class="pre">==</span> <span class="pre">"book"</span></code> means that
         
     | 
| 
      
 68 
     | 
    
         
            +
            groonga searches records that <code class="docutils literal notranslate"><span class="pre">_key</span></code> value is <code class="docutils literal notranslate"><span class="pre">"book"</span></code>. All values
         
     | 
| 
       77 
69 
     | 
    
         
             
            are string in <a class="reference internal" href="query_syntax.html"><span class="doc">Query syntax</span></a> but its own type in script
         
     | 
| 
       78 
     | 
    
         
            -
            syntax. For example, <code class="docutils literal"><span class="pre">"book"</span></code> is string, <code class="docutils literal"><span class="pre">1</span></code> is integer,
         
     | 
| 
       79 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">TokenBigram</span></code> is the object whose name is <code class="docutils literal"><span class="pre">TokenBigram</span></code> and so on.</p>
         
     | 
| 
       80 
     | 
    
         
            -
            <p>Script syntax doesn 
     | 
| 
       81 
     | 
    
         
            -
            script syntax doesn 
     | 
| 
       82 
     | 
    
         
            -
            statement, <code class="docutils literal"><span class="pre">for</span></code> iteration statement and variable definition
         
     | 
| 
      
 70 
     | 
    
         
            +
            syntax. For example, <code class="docutils literal notranslate"><span class="pre">"book"</span></code> is string, <code class="docutils literal notranslate"><span class="pre">1</span></code> is integer,
         
     | 
| 
      
 71 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">TokenBigram</span></code> is the object whose name is <code class="docutils literal notranslate"><span class="pre">TokenBigram</span></code> and so on.</p>
         
     | 
| 
      
 72 
     | 
    
         
            +
            <p>Script syntax doesn’t support full ECMAScript syntax. For example,
         
     | 
| 
      
 73 
     | 
    
         
            +
            script syntax doesn’t support statement such as <code class="docutils literal notranslate"><span class="pre">if</span></code> control
         
     | 
| 
      
 74 
     | 
    
         
            +
            statement, <code class="docutils literal notranslate"><span class="pre">for</span></code> iteration statement and variable definition
         
     | 
| 
       83 
75 
     | 
    
         
             
            statement. Function definion is not supported too. But script syntax
         
     | 
| 
       84 
76 
     | 
    
         
             
            addes the original additional operators.  They are described after
         
     | 
| 
       85 
77 
     | 
    
         
             
            ECMAScript syntax is described.</p>
         
     | 
| 
       86 
78 
     | 
    
         
             
            <div class="section" id="security">
         
     | 
| 
       87 
     | 
    
         
            -
            <span id="script-syntax-security"></span><h2>7. 
     | 
| 
      
 79 
     | 
    
         
            +
            <span id="script-syntax-security"></span><h2>7.13.2.1. Security<a class="headerlink" href="#security" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       88 
80 
     | 
    
         
             
            <p>For security reason, you should not pass an input from users to
         
     | 
| 
       89 
81 
     | 
    
         
             
            Groonga directly. If there is an evil user, the user may input a query
         
     | 
| 
       90 
82 
     | 
    
         
             
            that retrieves records that should not be shown to the user.</p>
         
     | 
| 
       91 
83 
     | 
    
         
             
            <p>Think about the following case.</p>
         
     | 
| 
       92 
84 
     | 
    
         
             
            <p>A Groonga application constructs a Groonga request by the following
         
     | 
| 
       93 
85 
     | 
    
         
             
            program:</p>
         
     | 
| 
       94 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>filter = "column @ \"#{user_input}\""
         
     | 
| 
      
 86 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>filter = "column @ \"#{user_input}\""
         
     | 
| 
       95 
87 
     | 
    
         
             
            select_options = {
         
     | 
| 
       96 
88 
     | 
    
         
             
              # ...
         
     | 
| 
       97 
89 
     | 
    
         
             
              :filter => filter,
         
     | 
| 
         @@ -99,42 +91,42 @@ select_options = { 
     | 
|
| 
       99 
91 
     | 
    
         
             
            groonga_client.select(select_options)
         
     | 
| 
       100 
92 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       101 
93 
     | 
    
         
             
            </div>
         
     | 
| 
       102 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">user_input</span></code> is an input from user. If the input is <code class="docutils literal"><span class="pre">query</span></code>,
         
     | 
| 
      
 94 
     | 
    
         
            +
            <p><code class="docutils literal notranslate"><span class="pre">user_input</span></code> is an input from user. If the input is <code class="docutils literal notranslate"><span class="pre">query</span></code>,
         
     | 
| 
       103 
95 
     | 
    
         
             
            here is the constructed <a class="reference internal" href="../commands/select.html#select-filter"><span class="std std-ref">filter</span></a> parameter:</p>
         
     | 
| 
       104 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>column @ "query"
         
     | 
| 
      
 96 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>column @ "query"
         
     | 
| 
       105 
97 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       106 
98 
     | 
    
         
             
            </div>
         
     | 
| 
       107 
     | 
    
         
            -
            <p>If the input is <code class="docutils literal"><span class="pre">x"</span> <span class="pre">||</span> <span class="pre">true</span> <span class="pre">||</span> <span class="pre">"</span></code>, here is the constructed
         
     | 
| 
      
 99 
     | 
    
         
            +
            <p>If the input is <code class="docutils literal notranslate"><span class="pre">x"</span> <span class="pre">||</span> <span class="pre">true</span> <span class="pre">||</span> <span class="pre">"</span></code>, here is the constructed
         
     | 
| 
       108 
100 
     | 
    
         
             
            <a class="reference internal" href="../commands/select.html#select-filter"><span class="std std-ref">filter</span></a> parameter:</p>
         
     | 
| 
       109 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>column @ "x" || true || ""
         
     | 
| 
      
 101 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>column @ "x" || true || ""
         
     | 
| 
       110 
102 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       111 
103 
     | 
    
         
             
            </div>
         
     | 
| 
       112 
104 
     | 
    
         
             
            <p>This query matches to all records. The user will get all records from
         
     | 
| 
       113 
105 
     | 
    
         
             
            your database. The user may be evil.</p>
         
     | 
| 
       114 
     | 
    
         
            -
            <p>It 
     | 
| 
       115 
     | 
    
         
            -
            that you don 
     | 
| 
       116 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">@</span></code> and <code class="docutils literal"><span class="pre">&&</span></code>. If you accept operator, user can create evil query.</p>
         
     | 
| 
      
 106 
     | 
    
         
            +
            <p>It’s better that you just receive an user input as a value. It means
         
     | 
| 
      
 107 
     | 
    
         
            +
            that you don’t accept that user input can contain operator such as
         
     | 
| 
      
 108 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">@</span></code> and <code class="docutils literal notranslate"><span class="pre">&&</span></code>. If you accept operator, user can create evil query.</p>
         
     | 
| 
       117 
109 
     | 
    
         
             
            <p>If user input has only value, you blocks evil query by escaping user
         
     | 
| 
       118 
110 
     | 
    
         
             
            input value. Here is a list how to escape user input value:</p>
         
     | 
| 
       119 
111 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       120 
112 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       121 
     | 
    
         
            -
            <li>True value: Convert it to <code class="docutils literal"><span class="pre">true</span></code>.</li>
         
     | 
| 
       122 
     | 
    
         
            -
            <li>False value: Convert it to <code class="docutils literal"><span class="pre">false</span></code>.</li>
         
     | 
| 
       123 
     | 
    
         
            -
            <li>Numerical value: Convert it to <a class="reference internal" href="#script-syntax-literal-integer"><span class="std std-ref">Integer</span></a>
         
     | 
| 
       124 
     | 
    
         
            -
            or <a class="reference internal" href="#script-syntax-literal-float"><span class="std std-ref">Float</span></a>. For example, <code class="docutils literal"><span class="pre">1.2</span></code>,
         
     | 
| 
       125 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">-10</span></code>, <code class="docutils literal"><span class="pre">314e-2</span></code> and so on.</li>
         
     | 
| 
       126 
     | 
    
         
            -
            <li>String value: Replace <code class="docutils literal"><span class="pre">"</span></code> with <code class="docutils literal"><span class="pre">\"</span></code> and <code class="docutils literal"><span class="pre">\</span></code> with <code class="docutils literal"><span class="pre">\\</span></code> in
         
     | 
| 
      
 113 
     | 
    
         
            +
            <li><p>True value: Convert it to <code class="docutils literal notranslate"><span class="pre">true</span></code>.</p></li>
         
     | 
| 
      
 114 
     | 
    
         
            +
            <li><p>False value: Convert it to <code class="docutils literal notranslate"><span class="pre">false</span></code>.</p></li>
         
     | 
| 
      
 115 
     | 
    
         
            +
            <li><p>Numerical value: Convert it to <a class="reference internal" href="#script-syntax-literal-integer"><span class="std std-ref">Integer</span></a>
         
     | 
| 
      
 116 
     | 
    
         
            +
            or <a class="reference internal" href="#script-syntax-literal-float"><span class="std std-ref">Float</span></a>. For example, <code class="docutils literal notranslate"><span class="pre">1.2</span></code>,
         
     | 
| 
      
 117 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">-10</span></code>, <code class="docutils literal notranslate"><span class="pre">314e-2</span></code> and so on.</p></li>
         
     | 
| 
      
 118 
     | 
    
         
            +
            <li><p>String value: Replace <code class="docutils literal notranslate"><span class="pre">"</span></code> with <code class="docutils literal notranslate"><span class="pre">\"</span></code> and <code class="docutils literal notranslate"><span class="pre">\</span></code> with <code class="docutils literal notranslate"><span class="pre">\\</span></code> in
         
     | 
| 
       127 
119 
     | 
    
         
             
            the string value and surround substituted string value by
         
     | 
| 
       128 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">"</span></code>. For example, <code class="docutils literal"><span class="pre">double</span> <span class="pre">"</span> <span class="pre">quote</span> <span class="pre">and</span> <span class="pre">back</span> <span class="pre">\</span> <span class="pre">slash</span></code> should be
         
     | 
| 
       129 
     | 
    
         
            -
            converted to <code class="docutils literal"><span class="pre">"double</span> <span class="pre">\"</span> <span class="pre">quote</span> <span class="pre">and</span> <span class="pre">back</span> <span class="pre">\\</span> <span class="pre">slash"</span></code>.</li>
         
     | 
| 
      
 120 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">"</span></code>. For example, <code class="docutils literal notranslate"><span class="pre">double</span> <span class="pre">"</span> <span class="pre">quote</span> <span class="pre">and</span> <span class="pre">back</span> <span class="pre">\</span> <span class="pre">slash</span></code> should be
         
     | 
| 
      
 121 
     | 
    
         
            +
            converted to <code class="docutils literal notranslate"><span class="pre">"double</span> <span class="pre">\"</span> <span class="pre">quote</span> <span class="pre">and</span> <span class="pre">back</span> <span class="pre">\\</span> <span class="pre">slash"</span></code>.</p></li>
         
     | 
| 
       130 
122 
     | 
    
         
             
            </ul>
         
     | 
| 
       131 
123 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       132 
124 
     | 
    
         
             
            </div>
         
     | 
| 
       133 
125 
     | 
    
         
             
            <div class="section" id="sample-data">
         
     | 
| 
       134 
     | 
    
         
            -
            <h2>7. 
     | 
| 
      
 126 
     | 
    
         
            +
            <h2>7.13.2.2. Sample data<a class="headerlink" href="#sample-data" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       135 
127 
     | 
    
         
             
            <p>Here are a schema definition and sample data to show usage.</p>
         
     | 
| 
       136 
128 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       137 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>table_create Entries TABLE_PAT_KEY ShortText
         
     | 
| 
      
 129 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>table_create Entries TABLE_PAT_KEY ShortText
         
     | 
| 
       138 
130 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
       139 
131 
     | 
    
         
             
            column_create Entries content COLUMN_SCALAR Text
         
     | 
| 
       140 
132 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -167,115 +159,115 @@ load --table Entries 
     | 
|
| 
       167 
159 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], 5]
         
     | 
| 
       168 
160 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       169 
161 
     | 
    
         
             
            </div>
         
     | 
| 
       170 
     | 
    
         
            -
            <p>There is a table, <code class="docutils literal"><span class="pre">Entries</span></code>, for blog entries. An entry has title,
         
     | 
| 
      
 162 
     | 
    
         
            +
            <p>There is a table, <code class="docutils literal notranslate"><span class="pre">Entries</span></code>, for blog entries. An entry has title,
         
     | 
| 
       171 
163 
     | 
    
         
             
            content and the number of likes for the entry. Title is key of
         
     | 
| 
       172 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">Entries</span></code>. Content is value of <code class="docutils literal"><span class="pre">Entries.content</span></code> column. The
         
     | 
| 
       173 
     | 
    
         
            -
            number of likes is value of <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> column.</p>
         
     | 
| 
       174 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">Entries._key</span></code> column and <code class="docutils literal"><span class="pre">Entries.content</span></code> column are indexed
         
     | 
| 
       175 
     | 
    
         
            -
            using <code class="docutils literal"><span class="pre">TokenBigram</span></code> tokenizer. So both <code class="docutils literal"><span class="pre">Entries._key</span></code> and
         
     | 
| 
       176 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">Entries.content</span></code> are fulltext search ready.</p>
         
     | 
| 
      
 164 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">Entries</span></code>. Content is value of <code class="docutils literal notranslate"><span class="pre">Entries.content</span></code> column. The
         
     | 
| 
      
 165 
     | 
    
         
            +
            number of likes is value of <code class="docutils literal notranslate"><span class="pre">Entries.n_likes</span></code> column.</p>
         
     | 
| 
      
 166 
     | 
    
         
            +
            <p><code class="docutils literal notranslate"><span class="pre">Entries._key</span></code> column and <code class="docutils literal notranslate"><span class="pre">Entries.content</span></code> column are indexed
         
     | 
| 
      
 167 
     | 
    
         
            +
            using <code class="docutils literal notranslate"><span class="pre">TokenBigram</span></code> tokenizer. So both <code class="docutils literal notranslate"><span class="pre">Entries._key</span></code> and
         
     | 
| 
      
 168 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">Entries.content</span></code> are fulltext search ready.</p>
         
     | 
| 
       177 
169 
     | 
    
         
             
            <p>OK. The schema and data for examples are ready.</p>
         
     | 
| 
       178 
170 
     | 
    
         
             
            </div>
         
     | 
| 
       179 
171 
     | 
    
         
             
            <div class="section" id="literals">
         
     | 
| 
       180 
     | 
    
         
            -
            <span id="script-syntax-literals"></span><h2>7. 
     | 
| 
      
 172 
     | 
    
         
            +
            <span id="script-syntax-literals"></span><h2>7.13.2.3. Literals<a class="headerlink" href="#literals" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       181 
173 
     | 
    
         
             
            <div class="section" id="integer">
         
     | 
| 
       182 
     | 
    
         
            -
            <span id="script-syntax-literal-integer"></span><h3>7. 
     | 
| 
       183 
     | 
    
         
            -
            <p>Integer literal is sequence of <code class="docutils literal"><span class="pre">0</span></code> to <code class="docutils literal"><span class="pre">9</span></code> such as
         
     | 
| 
       184 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">1234567890</span></code>. <code class="docutils literal"><span class="pre">+</span></code> or <code class="docutils literal"><span class="pre">-</span></code> can be prepended as sign such as
         
     | 
| 
       185 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">+29</span></code> and <code class="docutils literal"><span class="pre">-29</span></code>. Integer literal must be decimal. Octal notation,
         
     | 
| 
       186 
     | 
    
         
            -
            hex and so on can 
     | 
| 
       187 
     | 
    
         
            -
            <p>The maximum value of integer literal is <code class="docutils literal"><span class="pre">9223372036854775807</span></code> (<code class="docutils literal"><span class="pre">=</span> <span class="pre">2</span>
         
     | 
| 
      
 174 
     | 
    
         
            +
            <span id="script-syntax-literal-integer"></span><h3>7.13.2.3.1. Integer<a class="headerlink" href="#integer" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 175 
     | 
    
         
            +
            <p>Integer literal is sequence of <code class="docutils literal notranslate"><span class="pre">0</span></code> to <code class="docutils literal notranslate"><span class="pre">9</span></code> such as
         
     | 
| 
      
 176 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">1234567890</span></code>. <code class="docutils literal notranslate"><span class="pre">+</span></code> or <code class="docutils literal notranslate"><span class="pre">-</span></code> can be prepended as sign such as
         
     | 
| 
      
 177 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">+29</span></code> and <code class="docutils literal notranslate"><span class="pre">-29</span></code>. Integer literal must be decimal. Octal notation,
         
     | 
| 
      
 178 
     | 
    
         
            +
            hex and so on can’t be used.</p>
         
     | 
| 
      
 179 
     | 
    
         
            +
            <p>The maximum value of integer literal is <code class="docutils literal notranslate"><span class="pre">9223372036854775807</span></code> (<code class="docutils literal notranslate"><span class="pre">=</span> <span class="pre">2</span>
         
     | 
| 
       188 
180 
     | 
    
         
             
            <span class="pre">**</span> <span class="pre">63</span> <span class="pre">-</span> <span class="pre">1</span></code>). The minimum value of integer literal is
         
     | 
| 
       189 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">-9223372036854775808</span></code> (<code class="docutils literal"><span class="pre">=</span> <span class="pre">-(2</span> <span class="pre">**</span> <span class="pre">63)</span></code>).</p>
         
     | 
| 
      
 181 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">-9223372036854775808</span></code> (<code class="docutils literal notranslate"><span class="pre">=</span> <span class="pre">-(2</span> <span class="pre">**</span> <span class="pre">63)</span></code>).</p>
         
     | 
| 
       190 
182 
     | 
    
         
             
            </div>
         
     | 
| 
       191 
183 
     | 
    
         
             
            <div class="section" id="float">
         
     | 
| 
       192 
     | 
    
         
            -
            <span id="script-syntax-literal-float"></span><h3>7. 
     | 
| 
       193 
     | 
    
         
            -
            <p>Float literal is sequence of <code class="docutils literal"><span class="pre">0</span></code> to <code class="docutils literal"><span class="pre">9</span></code>, <code class="docutils literal"><span class="pre">.</span></code> and <code class="docutils literal"><span class="pre">0</span></code> to <code class="docutils literal"><span class="pre">9</span></code>
         
     | 
| 
       194 
     | 
    
         
            -
            such as <code class="docutils literal"><span class="pre">3.14</span></code>. <code class="docutils literal"><span class="pre">+</span></code> or <code class="docutils literal"><span class="pre">-</span></code> can be prepended as sign such as
         
     | 
| 
       195 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">+3.14</span></code> and <code class="docutils literal"><span class="pre">-3.14</span></code>. <code class="docutils literal"><span class="pre">${RADIX}e${EXPORNENTIAL}</span></code> and
         
     | 
| 
       196 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">${RADIX}E${EXPORNENTIAL}</span></code> formats are also supported. For example,
         
     | 
| 
       197 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">314e-2</span></code> is the same as <code class="docutils literal"><span class="pre">3.14</span></code>.</p>
         
     | 
| 
      
 184 
     | 
    
         
            +
            <span id="script-syntax-literal-float"></span><h3>7.13.2.3.2. Float<a class="headerlink" href="#float" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 185 
     | 
    
         
            +
            <p>Float literal is sequence of <code class="docutils literal notranslate"><span class="pre">0</span></code> to <code class="docutils literal notranslate"><span class="pre">9</span></code>, <code class="docutils literal notranslate"><span class="pre">.</span></code> and <code class="docutils literal notranslate"><span class="pre">0</span></code> to <code class="docutils literal notranslate"><span class="pre">9</span></code>
         
     | 
| 
      
 186 
     | 
    
         
            +
            such as <code class="docutils literal notranslate"><span class="pre">3.14</span></code>. <code class="docutils literal notranslate"><span class="pre">+</span></code> or <code class="docutils literal notranslate"><span class="pre">-</span></code> can be prepended as sign such as
         
     | 
| 
      
 187 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">+3.14</span></code> and <code class="docutils literal notranslate"><span class="pre">-3.14</span></code>. <code class="docutils literal notranslate"><span class="pre">${RADIX}e${EXPORNENTIAL}</span></code> and
         
     | 
| 
      
 188 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">${RADIX}E${EXPORNENTIAL}</span></code> formats are also supported. For example,
         
     | 
| 
      
 189 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">314e-2</span></code> is the same as <code class="docutils literal notranslate"><span class="pre">3.14</span></code>.</p>
         
     | 
| 
       198 
190 
     | 
    
         
             
            </div>
         
     | 
| 
       199 
191 
     | 
    
         
             
            <div class="section" id="string">
         
     | 
| 
       200 
     | 
    
         
            -
            <span id="script-syntax-literal-string"></span><h3>7. 
     | 
| 
       201 
     | 
    
         
            -
            <p>String literal is <code class="docutils literal"><span class="pre">"..."</span></code>. You need to escape <code class="docutils literal"><span class="pre">"</span></code> in literal by
         
     | 
| 
       202 
     | 
    
         
            -
            prepending <code class="docutils literal"><span class="pre">\\''</span> <span class="pre">such</span> <span class="pre">as</span> <span class="pre">``\"</span></code>. For example, <code class="docutils literal"><span class="pre">"Say</span> <span class="pre">\"Hello!\"."</span></code> is
         
     | 
| 
       203 
     | 
    
         
            -
            a literal for <code class="docutils literal"><span class="pre">Say</span> <span class="pre">"Hello!".</span></code> string.</p>
         
     | 
| 
      
 192 
     | 
    
         
            +
            <span id="script-syntax-literal-string"></span><h3>7.13.2.3.3. String<a class="headerlink" href="#string" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 193 
     | 
    
         
            +
            <p>String literal is <code class="docutils literal notranslate"><span class="pre">"..."</span></code>. You need to escape <code class="docutils literal notranslate"><span class="pre">"</span></code> in literal by
         
     | 
| 
      
 194 
     | 
    
         
            +
            prepending <code class="docutils literal notranslate"><span class="pre">\\''</span> <span class="pre">such</span> <span class="pre">as</span> <span class="pre">``\"</span></code>. For example, <code class="docutils literal notranslate"><span class="pre">"Say</span> <span class="pre">\"Hello!\"."</span></code> is
         
     | 
| 
      
 195 
     | 
    
         
            +
            a literal for <code class="docutils literal notranslate"><span class="pre">Say</span> <span class="pre">"Hello!".</span></code> string.</p>
         
     | 
| 
       204 
196 
     | 
    
         
             
            <p>String encoding must be the same as encoding of database. The default
         
     | 
| 
       205 
     | 
    
         
            -
            encoding is UTF-8. It can be changed by <code class="docutils literal"><span class="pre">--with-default-encoding</span></code>
         
     | 
| 
       206 
     | 
    
         
            -
            configure option, <code class="docutils literal"><span class="pre">--encodiong</span></code> <a class="reference internal" href="../executables/groonga.html"><span class="doc">groonga executable file</span></a> option
         
     | 
| 
      
 197 
     | 
    
         
            +
            encoding is UTF-8. It can be changed by <code class="docutils literal notranslate"><span class="pre">--with-default-encoding</span></code>
         
     | 
| 
      
 198 
     | 
    
         
            +
            configure option, <code class="docutils literal notranslate"><span class="pre">--encodiong</span></code> <a class="reference internal" href="../executables/groonga.html"><span class="doc">groonga executable file</span></a> option
         
     | 
| 
       207 
199 
     | 
    
         
             
            and so on.</p>
         
     | 
| 
       208 
200 
     | 
    
         
             
            </div>
         
     | 
| 
       209 
201 
     | 
    
         
             
            <div class="section" id="boolean">
         
     | 
| 
       210 
     | 
    
         
            -
            <span id="script-syntax-literal-boolean"></span><h3>7. 
     | 
| 
       211 
     | 
    
         
            -
            <p>Boolean literal is <code class="docutils literal"><span class="pre">true</span></code> and <code class="docutils literal"><span class="pre">false</span></code>. <code class="docutils literal"><span class="pre">true</span></code> means true and
         
     | 
| 
       212 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">false</span></code> means false.</p>
         
     | 
| 
      
 202 
     | 
    
         
            +
            <span id="script-syntax-literal-boolean"></span><h3>7.13.2.3.4. Boolean<a class="headerlink" href="#boolean" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 203 
     | 
    
         
            +
            <p>Boolean literal is <code class="docutils literal notranslate"><span class="pre">true</span></code> and <code class="docutils literal notranslate"><span class="pre">false</span></code>. <code class="docutils literal notranslate"><span class="pre">true</span></code> means true and
         
     | 
| 
      
 204 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">false</span></code> means false.</p>
         
     | 
| 
       213 
205 
     | 
    
         
             
            </div>
         
     | 
| 
       214 
206 
     | 
    
         
             
            <div class="section" id="null">
         
     | 
| 
       215 
     | 
    
         
            -
            <span id="script-syntax-literal-null"></span><h3>7. 
     | 
| 
       216 
     | 
    
         
            -
            <p>Null literal is <code class="docutils literal"><span class="pre">null</span></code>. Groonga doesn 
     | 
| 
      
 207 
     | 
    
         
            +
            <span id="script-syntax-literal-null"></span><h3>7.13.2.3.5. Null<a class="headerlink" href="#null" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 208 
     | 
    
         
            +
            <p>Null literal is <code class="docutils literal notranslate"><span class="pre">null</span></code>. Groonga doesn’t support null value but null
         
     | 
| 
       217 
209 
     | 
    
         
             
            literal is supported.</p>
         
     | 
| 
       218 
210 
     | 
    
         
             
            </div>
         
     | 
| 
       219 
211 
     | 
    
         
             
            <div class="section" id="time">
         
     | 
| 
       220 
     | 
    
         
            -
            <span id="script-syntax-literal-time"></span><h3>7. 
     | 
| 
      
 212 
     | 
    
         
            +
            <span id="script-syntax-literal-time"></span><h3>7.13.2.3.6. Time<a class="headerlink" href="#time" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       221 
213 
     | 
    
         
             
            <div class="admonition note">
         
     | 
| 
       222 
     | 
    
         
            -
            <p class=" 
     | 
| 
       223 
     | 
    
         
            -
            <p 
     | 
| 
      
 214 
     | 
    
         
            +
            <p class="admonition-title">Note</p>
         
     | 
| 
      
 215 
     | 
    
         
            +
            <p>This is the groonga original notation.</p>
         
     | 
| 
       224 
216 
     | 
    
         
             
            </div>
         
     | 
| 
       225 
     | 
    
         
            -
            <p>Time literal doesn 
     | 
| 
      
 217 
     | 
    
         
            +
            <p>Time literal doesn’t exit. There are string time notation, integer
         
     | 
| 
       226 
218 
     | 
    
         
             
            time notation and float time notation.</p>
         
     | 
| 
       227 
     | 
    
         
            -
            <p>String time notation is <code class="docutils literal"><span class="pre">"YYYY/MM/DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></code> or
         
     | 
| 
       228 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">"YYYY-MM-DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></code>. <code class="docutils literal"><span class="pre">YYYY</span></code> is year, <code class="docutils literal"><span class="pre">MM</span></code> is month,
         
     | 
| 
       229 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">DD</span></code> is day, <code class="docutils literal"><span class="pre">hh</span></code> is hour, <code class="docutils literal"><span class="pre">mm</span></code> is minute, <code class="docutils literal"><span class="pre">ss</span></code> is second and
         
     | 
| 
       230 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">uuuuuu</span></code> is micro second. It is local time. For example,
         
     | 
| 
       231 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">"2012/07/23</span> <span class="pre">02:41:10.436218"</span></code> is <code class="docutils literal"><span class="pre">2012-07-23T02:41:10.436218</span></code> in
         
     | 
| 
      
 219 
     | 
    
         
            +
            <p>String time notation is <code class="docutils literal notranslate"><span class="pre">"YYYY/MM/DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></code> or
         
     | 
| 
      
 220 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">"YYYY-MM-DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></code>. <code class="docutils literal notranslate"><span class="pre">YYYY</span></code> is year, <code class="docutils literal notranslate"><span class="pre">MM</span></code> is month,
         
     | 
| 
      
 221 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">DD</span></code> is day, <code class="docutils literal notranslate"><span class="pre">hh</span></code> is hour, <code class="docutils literal notranslate"><span class="pre">mm</span></code> is minute, <code class="docutils literal notranslate"><span class="pre">ss</span></code> is second and
         
     | 
| 
      
 222 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">uuuuuu</span></code> is micro second. It is local time. For example,
         
     | 
| 
      
 223 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">"2012/07/23</span> <span class="pre">02:41:10.436218"</span></code> is <code class="docutils literal notranslate"><span class="pre">2012-07-23T02:41:10.436218</span></code> in
         
     | 
| 
       232 
224 
     | 
    
         
             
            ISO 8601 format.</p>
         
     | 
| 
       233 
225 
     | 
    
         
             
            <p>Integer time notation is the number of seconds that have elapsed since
         
     | 
| 
       234 
226 
     | 
    
         
             
            midnight UTC, January 1, 1970. It is also known as POSIX time. For
         
     | 
| 
       235 
     | 
    
         
            -
            example, <code class="docutils literal"><span class="pre">1343011270</span></code> is <code class="docutils literal"><span class="pre">2012-07-23T02:41:10Z</span></code> in ISO 8601 format.</p>
         
     | 
| 
      
 227 
     | 
    
         
            +
            example, <code class="docutils literal notranslate"><span class="pre">1343011270</span></code> is <code class="docutils literal notranslate"><span class="pre">2012-07-23T02:41:10Z</span></code> in ISO 8601 format.</p>
         
     | 
| 
       236 
228 
     | 
    
         
             
            <p>Float time notation is the number of seconds and micro seconds that
         
     | 
| 
       237 
229 
     | 
    
         
             
            have elapsed since midnight UTC, January 1, 1970. For example,
         
     | 
| 
       238 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">1343011270.436218</span></code> is <code class="docutils literal"><span class="pre">2012-07-23T02:41:10.436218Z</span></code> in ISO 8601
         
     | 
| 
      
 230 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">1343011270.436218</span></code> is <code class="docutils literal notranslate"><span class="pre">2012-07-23T02:41:10.436218Z</span></code> in ISO 8601
         
     | 
| 
       239 
231 
     | 
    
         
             
            format.</p>
         
     | 
| 
       240 
232 
     | 
    
         
             
            </div>
         
     | 
| 
       241 
233 
     | 
    
         
             
            <div class="section" id="geo-point">
         
     | 
| 
       242 
     | 
    
         
            -
            <span id="script-syntax-literal-geo-point"></span><h3>7. 
     | 
| 
      
 234 
     | 
    
         
            +
            <span id="script-syntax-literal-geo-point"></span><h3>7.13.2.3.7. Geo point<a class="headerlink" href="#geo-point" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       243 
235 
     | 
    
         
             
            <div class="admonition note">
         
     | 
| 
       244 
     | 
    
         
            -
            <p class=" 
     | 
| 
       245 
     | 
    
         
            -
            <p 
     | 
| 
      
 236 
     | 
    
         
            +
            <p class="admonition-title">Note</p>
         
     | 
| 
      
 237 
     | 
    
         
            +
            <p>This is the groonga original notation.</p>
         
     | 
| 
       246 
238 
     | 
    
         
             
            </div>
         
     | 
| 
       247 
     | 
    
         
            -
            <p>Geo point literal doesn 
     | 
| 
      
 239 
     | 
    
         
            +
            <p>Geo point literal doesn’t exist. There is string geo point notation.</p>
         
     | 
| 
       248 
240 
     | 
    
         
             
            <p>String geo point notation has the following patterns:</p>
         
     | 
| 
       249 
241 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       250 
242 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       251 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">"LATITUDE_IN_MSECxLONGITUDE_IN_MSEC"</span></code></li>
         
     | 
| 
       252 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">"LATITUDE_IN_MSEC,LONGITUDE_IN_MSEC"</span></code></li>
         
     | 
| 
       253 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREExLONGITUDE_IN_DEGREE"</span></code></li>
         
     | 
| 
       254 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREE,LONGITUDE_IN_DEGREE"</span></code></li>
         
     | 
| 
      
 243 
     | 
    
         
            +
            <li><p><code class="docutils literal notranslate"><span class="pre">"LATITUDE_IN_MSECxLONGITUDE_IN_MSEC"</span></code></p></li>
         
     | 
| 
      
 244 
     | 
    
         
            +
            <li><p><code class="docutils literal notranslate"><span class="pre">"LATITUDE_IN_MSEC,LONGITUDE_IN_MSEC"</span></code></p></li>
         
     | 
| 
      
 245 
     | 
    
         
            +
            <li><p><code class="docutils literal notranslate"><span class="pre">"LATITUDE_IN_DEGREExLONGITUDE_IN_DEGREE"</span></code></p></li>
         
     | 
| 
      
 246 
     | 
    
         
            +
            <li><p><code class="docutils literal notranslate"><span class="pre">"LATITUDE_IN_DEGREE,LONGITUDE_IN_DEGREE"</span></code></p></li>
         
     | 
| 
       255 
247 
     | 
    
         
             
            </ul>
         
     | 
| 
       256 
248 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       257 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">x</span></code> and <code class="docutils literal"><span class="pre">,</span></code> can be used for separator. Latitude and longitude can
         
     | 
| 
      
 249 
     | 
    
         
            +
            <p><code class="docutils literal notranslate"><span class="pre">x</span></code> and <code class="docutils literal notranslate"><span class="pre">,</span></code> can be used for separator. Latitude and longitude can
         
     | 
| 
       258 
250 
     | 
    
         
             
            be represented in milliseconds or degree.</p>
         
     | 
| 
       259 
251 
     | 
    
         
             
            </div>
         
     | 
| 
       260 
252 
     | 
    
         
             
            <div class="section" id="array">
         
     | 
| 
       261 
     | 
    
         
            -
            <span id="script-syntax-literal-array"></span><h3>7. 
     | 
| 
       262 
     | 
    
         
            -
            <p>Array literal is <code class="docutils literal"><span class="pre">[element1,</span> <span class="pre">element2,</span> <span class="pre">...]</span></code>.</p>
         
     | 
| 
      
 253 
     | 
    
         
            +
            <span id="script-syntax-literal-array"></span><h3>7.13.2.3.8. Array<a class="headerlink" href="#array" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 254 
     | 
    
         
            +
            <p>Array literal is <code class="docutils literal notranslate"><span class="pre">[element1,</span> <span class="pre">element2,</span> <span class="pre">...]</span></code>.</p>
         
     | 
| 
       263 
255 
     | 
    
         
             
            </div>
         
     | 
| 
       264 
256 
     | 
    
         
             
            <div class="section" id="object-literal">
         
     | 
| 
       265 
     | 
    
         
            -
            <span id="script-syntax-literal-object"></span><h3>7. 
     | 
| 
       266 
     | 
    
         
            -
            <p>Object literal is <code class="docutils literal"><span class="pre">{name1:</span> <span class="pre">value1,</span> <span class="pre">name2:</span> <span class="pre">value2,</span> <span class="pre">...}</span></code>. Groonga
         
     | 
| 
       267 
     | 
    
         
            -
            doesn 
     | 
| 
      
 257 
     | 
    
         
            +
            <span id="script-syntax-literal-object"></span><h3>7.13.2.3.9. Object literal<a class="headerlink" href="#object-literal" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 258 
     | 
    
         
            +
            <p>Object literal is <code class="docutils literal notranslate"><span class="pre">{name1:</span> <span class="pre">value1,</span> <span class="pre">name2:</span> <span class="pre">value2,</span> <span class="pre">...}</span></code>. Groonga
         
     | 
| 
      
 259 
     | 
    
         
            +
            doesn’t support object literal yet.</p>
         
     | 
| 
       268 
260 
     | 
    
         
             
            </div>
         
     | 
| 
       269 
261 
     | 
    
         
             
            </div>
         
     | 
| 
       270 
262 
     | 
    
         
             
            <div class="section" id="control-syntaxes">
         
     | 
| 
       271 
     | 
    
         
            -
            <h2>7. 
     | 
| 
       272 
     | 
    
         
            -
            <p>Script syntax doesn 
     | 
| 
       273 
     | 
    
         
            -
            statement such as <code class="docutils literal"><span class="pre">if</span></code>. You can only use <code class="docutils literal"><span class="pre">A</span> <span class="pre">?</span> <span class="pre">B</span> <span class="pre">:</span> <span class="pre">C</span></code> expression as
         
     | 
| 
      
 263 
     | 
    
         
            +
            <h2>7.13.2.4. Control syntaxes<a class="headerlink" href="#control-syntaxes" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 264 
     | 
    
         
            +
            <p>Script syntax doesn’t support statement. So you cannot use control
         
     | 
| 
      
 265 
     | 
    
         
            +
            statement such as <code class="docutils literal notranslate"><span class="pre">if</span></code>. You can only use <code class="docutils literal notranslate"><span class="pre">A</span> <span class="pre">?</span> <span class="pre">B</span> <span class="pre">:</span> <span class="pre">C</span></code> expression as
         
     | 
| 
       274 
266 
     | 
    
         
             
            control syntax.</p>
         
     | 
| 
       275 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">A</span> <span class="pre">?</span> <span class="pre">B</span> <span class="pre">:</span> <span class="pre">C</span></code> returns <code class="docutils literal"><span class="pre">B</span></code> if <code class="docutils literal"><span class="pre">A</span></code> is true, <code class="docutils literal"><span class="pre">C</span></code> otherwise.</p>
         
     | 
| 
      
 267 
     | 
    
         
            +
            <p><code class="docutils literal notranslate"><span class="pre">A</span> <span class="pre">?</span> <span class="pre">B</span> <span class="pre">:</span> <span class="pre">C</span></code> returns <code class="docutils literal notranslate"><span class="pre">B</span></code> if <code class="docutils literal notranslate"><span class="pre">A</span></code> is true, <code class="docutils literal notranslate"><span class="pre">C</span></code> otherwise.</p>
         
     | 
| 
       276 
268 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       277 
269 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       278 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (_id == 1 ? 5 : 3)'
         
     | 
| 
      
 270 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (_id == 1 ? 5 : 3)'
         
     | 
| 
       279 
271 
     | 
    
         
             
            # [
         
     | 
| 
       280 
272 
     | 
    
         
             
            #   [
         
     | 
| 
       281 
273 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -328,20 +320,20 @@ control syntax.</p> 
     | 
|
| 
       328 
320 
     | 
    
         
             
            # ]
         
     | 
| 
       329 
321 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       330 
322 
     | 
    
         
             
            </div>
         
     | 
| 
       331 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">_id</span></code> column value is equal to <code class="docutils literal"><span class="pre">1</span></code>
         
     | 
| 
       332 
     | 
    
         
            -
            and <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal to <code class="docutils literal"><span class="pre">5</span></code> or <code class="docutils literal"><span class="pre">_id</span></code> column value is
         
     | 
| 
       333 
     | 
    
         
            -
            not equal to 1 and <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal to <code class="docutils literal"><span class="pre">3</span></code>.</p>
         
     | 
| 
      
 323 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">_id</span></code> column value is equal to <code class="docutils literal notranslate"><span class="pre">1</span></code>
         
     | 
| 
      
 324 
     | 
    
         
            +
            and <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal to <code class="docutils literal notranslate"><span class="pre">5</span></code> or <code class="docutils literal notranslate"><span class="pre">_id</span></code> column value is
         
     | 
| 
      
 325 
     | 
    
         
            +
            not equal to 1 and <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal to <code class="docutils literal notranslate"><span class="pre">3</span></code>.</p>
         
     | 
| 
       334 
326 
     | 
    
         
             
            </div>
         
     | 
| 
       335 
327 
     | 
    
         
             
            <div class="section" id="grouping">
         
     | 
| 
       336 
     | 
    
         
            -
            <h2>7. 
     | 
| 
       337 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">(...)</span></code>. <code class="docutils literal"><span class="pre">...</span></code> is comma separated expression list.</p>
         
     | 
| 
       338 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">(...)</span></code> groups one ore more expressions and they can be processed as
         
     | 
| 
       339 
     | 
    
         
            -
            an expression. <code class="docutils literal"><span class="pre">a</span> <span class="pre">&&</span> <span class="pre">b</span> <span class="pre">||</span> <span class="pre">c</span></code> means that <code class="docutils literal"><span class="pre">a</span></code> and <code class="docutils literal"><span class="pre">b</span></code> are matched
         
     | 
| 
       340 
     | 
    
         
            -
            or <code class="docutils literal"><span class="pre">c</span></code> is matched. <code class="docutils literal"><span class="pre">a</span> <span class="pre">&&</span> <span class="pre">(b</span> <span class="pre">||</span> <span class="pre">c)</span></code> means that <code class="docutils literal"><span class="pre">a</span></code> and one of
         
     | 
| 
       341 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">b</span></code> and <code class="docutils literal"><span class="pre">c</span></code> are matched.</p>
         
     | 
| 
      
 328 
     | 
    
         
            +
            <h2>7.13.2.5. Grouping<a class="headerlink" href="#grouping" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 329 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">(...)</span></code>. <code class="docutils literal notranslate"><span class="pre">...</span></code> is comma separated expression list.</p>
         
     | 
| 
      
 330 
     | 
    
         
            +
            <p><code class="docutils literal notranslate"><span class="pre">(...)</span></code> groups one ore more expressions and they can be processed as
         
     | 
| 
      
 331 
     | 
    
         
            +
            an expression. <code class="docutils literal notranslate"><span class="pre">a</span> <span class="pre">&&</span> <span class="pre">b</span> <span class="pre">||</span> <span class="pre">c</span></code> means that <code class="docutils literal notranslate"><span class="pre">a</span></code> and <code class="docutils literal notranslate"><span class="pre">b</span></code> are matched
         
     | 
| 
      
 332 
     | 
    
         
            +
            or <code class="docutils literal notranslate"><span class="pre">c</span></code> is matched. <code class="docutils literal notranslate"><span class="pre">a</span> <span class="pre">&&</span> <span class="pre">(b</span> <span class="pre">||</span> <span class="pre">c)</span></code> means that <code class="docutils literal notranslate"><span class="pre">a</span></code> and one of
         
     | 
| 
      
 333 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">b</span></code> and <code class="docutils literal notranslate"><span class="pre">c</span></code> are matched.</p>
         
     | 
| 
       342 
334 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       343 
335 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       344 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes < 5 && content @ "senna" || content @ "fast"'
         
     | 
| 
      
 336 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes < 5 && content @ "senna" || content @ "fast"'
         
     | 
| 
       345 
337 
     | 
    
         
             
            # [
         
     | 
| 
       346 
338 
     | 
    
         
             
            #   [
         
     | 
| 
       347 
339 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -433,22 +425,22 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu 
     | 
|
| 
       433 
425 
     | 
    
         
             
            # ]
         
     | 
| 
       434 
426 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       435 
427 
     | 
    
         
             
            </div>
         
     | 
| 
       436 
     | 
    
         
            -
            <p>The first expression doesn 
     | 
| 
       437 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">n_likes</span> <span class="pre"><</span> <span class="pre">5</span></code> and <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> are matched or
         
     | 
| 
       438 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> is matched.</p>
         
     | 
| 
       439 
     | 
    
         
            -
            <p>The second expression uses grouping. It matches records that <code class="docutils literal"><span class="pre">n_likes</span>
         
     | 
| 
       440 
     | 
    
         
            -
            <span class="pre"><</span> <span class="pre">5</span></code> and one of <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> or <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> are
         
     | 
| 
      
 428 
     | 
    
         
            +
            <p>The first expression doesn’t use grouping. It matches records that
         
     | 
| 
      
 429 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">n_likes</span> <span class="pre"><</span> <span class="pre">5</span></code> and <code class="docutils literal notranslate"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> are matched or
         
     | 
| 
      
 430 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> is matched.</p>
         
     | 
| 
      
 431 
     | 
    
         
            +
            <p>The second expression uses grouping. It matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span>
         
     | 
| 
      
 432 
     | 
    
         
            +
            <span class="pre"><</span> <span class="pre">5</span></code> and one of <code class="docutils literal notranslate"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></code> or <code class="docutils literal notranslate"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> are
         
     | 
| 
       441 
433 
     | 
    
         
             
            matched.</p>
         
     | 
| 
       442 
434 
     | 
    
         
             
            </div>
         
     | 
| 
       443 
435 
     | 
    
         
             
            <div class="section" id="function-call">
         
     | 
| 
       444 
     | 
    
         
            -
            <h2>7. 
     | 
| 
       445 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">name(arugment1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code>.</p>
         
     | 
| 
       446 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">name(argument1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code> calls a function that is named
         
     | 
| 
       447 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">name</span></code> with arguments <code class="docutils literal"><span class="pre">argument1</span></code>, <code class="docutils literal"><span class="pre">argument2</span></code> and <code class="docutils literal"><span class="pre">...</span></code>.</p>
         
     | 
| 
      
 436 
     | 
    
         
            +
            <h2>7.13.2.6. Function call<a class="headerlink" href="#function-call" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 437 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">name(arugment1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code>.</p>
         
     | 
| 
      
 438 
     | 
    
         
            +
            <p><code class="docutils literal notranslate"><span class="pre">name(argument1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></code> calls a function that is named
         
     | 
| 
      
 439 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">name</span></code> with arguments <code class="docutils literal notranslate"><span class="pre">argument1</span></code>, <code class="docutils literal notranslate"><span class="pre">argument2</span></code> and <code class="docutils literal notranslate"><span class="pre">...</span></code>.</p>
         
     | 
| 
       448 
440 
     | 
    
         
             
            <p>See <a class="reference internal" href="../function.html"><span class="doc">Function</span></a> for available functin list.</p>
         
     | 
| 
       449 
441 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       450 
442 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       451 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'edit_distance(_key, "Groonga") <= 1'
         
     | 
| 
      
 443 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'edit_distance(_key, "Groonga") <= 1'
         
     | 
| 
       452 
444 
     | 
    
         
             
            # [
         
     | 
| 
       453 
445 
     | 
    
         
             
            #   [
         
     | 
| 
       454 
446 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -496,25 +488,25 @@ matched.</p> 
     | 
|
| 
       496 
488 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       497 
489 
     | 
    
         
             
            </div>
         
     | 
| 
       498 
490 
     | 
    
         
             
            <p>The expression uses <a class="reference internal" href="../functions/edit_distance.html"><span class="doc">edit_distance</span></a>. It
         
     | 
| 
       499 
     | 
    
         
            -
            matches records that <code class="docutils literal"><span class="pre">_key</span></code> column value is similar to
         
     | 
| 
       500 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">"Groonga"</span></code>. Similality of <code class="docutils literal"><span class="pre">"Groonga"</span></code> is computed as edit
         
     | 
| 
      
 491 
     | 
    
         
            +
            matches records that <code class="docutils literal notranslate"><span class="pre">_key</span></code> column value is similar to
         
     | 
| 
      
 492 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">"Groonga"</span></code>. Similality of <code class="docutils literal notranslate"><span class="pre">"Groonga"</span></code> is computed as edit
         
     | 
| 
       501 
493 
     | 
    
         
             
            distance. If edit distance is less than or equal to 1, the value is
         
     | 
| 
       502 
     | 
    
         
            -
            treated as similar. In this case, <code class="docutils literal"><span class="pre">"Groonga"</span></code> and <code class="docutils literal"><span class="pre">"Mroonga"</span></code> are
         
     | 
| 
      
 494 
     | 
    
         
            +
            treated as similar. In this case, <code class="docutils literal notranslate"><span class="pre">"Groonga"</span></code> and <code class="docutils literal notranslate"><span class="pre">"Mroonga"</span></code> are
         
     | 
| 
       503 
495 
     | 
    
         
             
            treated as similar.</p>
         
     | 
| 
       504 
496 
     | 
    
         
             
            </div>
         
     | 
| 
       505 
497 
     | 
    
         
             
            <div class="section" id="basic-operators">
         
     | 
| 
       506 
     | 
    
         
            -
            <h2>7. 
     | 
| 
      
 498 
     | 
    
         
            +
            <h2>7.13.2.7. Basic operators<a class="headerlink" href="#basic-operators" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       507 
499 
     | 
    
         
             
            <p>Groonga supports operators defined in ECMAScript.</p>
         
     | 
| 
       508 
500 
     | 
    
         
             
            <div class="section" id="arithmetic-operators">
         
     | 
| 
       509 
     | 
    
         
            -
            <h3>7. 
     | 
| 
      
 501 
     | 
    
         
            +
            <h3>7.13.2.7.1. Arithmetic operators<a class="headerlink" href="#arithmetic-operators" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       510 
502 
     | 
    
         
             
            <p>Here are arithmetic operators.</p>
         
     | 
| 
       511 
503 
     | 
    
         
             
            <div class="section" id="addition-operator">
         
     | 
| 
       512 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       513 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">+</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       514 
     | 
    
         
            -
            <p>The operator adds <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code> and returns the result.</p>
         
     | 
| 
      
 504 
     | 
    
         
            +
            <h4>7.13.2.7.1.1. Addition operator<a class="headerlink" href="#addition-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 505 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">+</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 506 
     | 
    
         
            +
            <p>The operator adds <code class="docutils literal notranslate"><span class="pre">number1</span></code> and <code class="docutils literal notranslate"><span class="pre">number2</span></code> and returns the result.</p>
         
     | 
| 
       515 
507 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       516 
508 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       517 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 10 + 5'
         
     | 
| 
      
 509 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 10 + 5'
         
     | 
| 
       518 
510 
     | 
    
         
             
            # [
         
     | 
| 
       519 
511 
     | 
    
         
             
            #   [
         
     | 
| 
       520 
512 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -555,16 +547,16 @@ treated as similar.</p> 
     | 
|
| 
       555 
547 
     | 
    
         
             
            # ]
         
     | 
| 
       556 
548 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       557 
549 
     | 
    
         
             
            </div>
         
     | 
| 
       558 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       559 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">15</span></code> (= <code class="docutils literal"><span class="pre">10</span> <span class="pre">+</span> <span class="pre">5</span></code>).</p>
         
     | 
| 
      
 550 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 551 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">15</span></code> (= <code class="docutils literal notranslate"><span class="pre">10</span> <span class="pre">+</span> <span class="pre">5</span></code>).</p>
         
     | 
| 
       560 
552 
     | 
    
         
             
            </div>
         
     | 
| 
       561 
553 
     | 
    
         
             
            <div class="section" id="subtraction-operator">
         
     | 
| 
       562 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       563 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">-</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       564 
     | 
    
         
            -
            <p>The operator subtracts <code class="docutils literal"><span class="pre">number2</span></code> from <code class="docutils literal"><span class="pre">number1</span></code> and returns the result.</p>
         
     | 
| 
      
 554 
     | 
    
         
            +
            <h4>7.13.2.7.1.2. Subtraction operator<a class="headerlink" href="#subtraction-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 555 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">-</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 556 
     | 
    
         
            +
            <p>The operator subtracts <code class="docutils literal notranslate"><span class="pre">number2</span></code> from <code class="docutils literal notranslate"><span class="pre">number1</span></code> and returns the result.</p>
         
     | 
| 
       565 
557 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       566 
558 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       567 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 20 - 5'
         
     | 
| 
      
 559 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 20 - 5'
         
     | 
| 
       568 
560 
     | 
    
         
             
            # [
         
     | 
| 
       569 
561 
     | 
    
         
             
            #   [
         
     | 
| 
       570 
562 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -605,16 +597,16 @@ to <code class="docutils literal"><span class="pre">15</span></code> (= <code cl 
     | 
|
| 
       605 
597 
     | 
    
         
             
            # ]
         
     | 
| 
       606 
598 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       607 
599 
     | 
    
         
             
            </div>
         
     | 
| 
       608 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       609 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">15</span></code> (= <code class="docutils literal"><span class="pre">20</span> <span class="pre">-</span> <span class="pre">5</span></code>).</p>
         
     | 
| 
      
 600 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 601 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">15</span></code> (= <code class="docutils literal notranslate"><span class="pre">20</span> <span class="pre">-</span> <span class="pre">5</span></code>).</p>
         
     | 
| 
       610 
602 
     | 
    
         
             
            </div>
         
     | 
| 
       611 
603 
     | 
    
         
             
            <div class="section" id="multiplication-operator">
         
     | 
| 
       612 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       613 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">*</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       614 
     | 
    
         
            -
            <p>The operator multiplies <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code> and returns the result.</p>
         
     | 
| 
      
 604 
     | 
    
         
            +
            <h4>7.13.2.7.1.3. Multiplication operator<a class="headerlink" href="#multiplication-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 605 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">*</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 606 
     | 
    
         
            +
            <p>The operator multiplies <code class="docutils literal notranslate"><span class="pre">number1</span></code> and <code class="docutils literal notranslate"><span class="pre">number2</span></code> and returns the result.</p>
         
     | 
| 
       615 
607 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       616 
608 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       617 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 3 * 5'
         
     | 
| 
      
 609 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 3 * 5'
         
     | 
| 
       618 
610 
     | 
    
         
             
            # [
         
     | 
| 
       619 
611 
     | 
    
         
             
            #   [
         
     | 
| 
       620 
612 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -655,17 +647,17 @@ to <code class="docutils literal"><span class="pre">15</span></code> (= <code cl 
     | 
|
| 
       655 
647 
     | 
    
         
             
            # ]
         
     | 
| 
       656 
648 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       657 
649 
     | 
    
         
             
            </div>
         
     | 
| 
       658 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       659 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">15</span></code> (= <code class="docutils literal"><span class="pre">3</span> <span class="pre">*</span> <span class="pre">5</span></code>).</p>
         
     | 
| 
      
 650 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 651 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">15</span></code> (= <code class="docutils literal notranslate"><span class="pre">3</span> <span class="pre">*</span> <span class="pre">5</span></code>).</p>
         
     | 
| 
       660 
652 
     | 
    
         
             
            </div>
         
     | 
| 
       661 
653 
     | 
    
         
             
            <div class="section" id="division-operator">
         
     | 
| 
       662 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       663 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">/</span> <span class="pre">number2</span></code> and <code class="docutils literal"><span class="pre">number1</span> <span class="pre">%</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       664 
     | 
    
         
            -
            <p>The operator divides <code class="docutils literal"><span class="pre">number2</span></code> by <code class="docutils literal"><span class="pre">number1</span></code>. <code class="docutils literal"><span class="pre">/</span></code> returns the
         
     | 
| 
       665 
     | 
    
         
            -
            quotient of result. <code class="docutils literal"><span class="pre">%</span></code> returns the remainder of result.</p>
         
     | 
| 
      
 654 
     | 
    
         
            +
            <h4>7.13.2.7.1.4. Division operator<a class="headerlink" href="#division-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 655 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">/</span> <span class="pre">number2</span></code> and <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">%</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 656 
     | 
    
         
            +
            <p>The operator divides <code class="docutils literal notranslate"><span class="pre">number2</span></code> by <code class="docutils literal notranslate"><span class="pre">number1</span></code>. <code class="docutils literal notranslate"><span class="pre">/</span></code> returns the
         
     | 
| 
      
 657 
     | 
    
         
            +
            quotient of result. <code class="docutils literal notranslate"><span class="pre">%</span></code> returns the remainder of result.</p>
         
     | 
| 
       666 
658 
     | 
    
         
             
            <p>Here is simple examples.</p>
         
     | 
| 
       667 
659 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       668 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 26 / 7'
         
     | 
| 
      
 660 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 26 / 7'
         
     | 
| 
       669 
661 
     | 
    
         
             
            # [
         
     | 
| 
       670 
662 
     | 
    
         
             
            #   [
         
     | 
| 
       671 
663 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -712,10 +704,10 @@ quotient of result. <code class="docutils literal"><span class="pre">%</span></c 
     | 
|
| 
       712 
704 
     | 
    
         
             
            # ]
         
     | 
| 
       713 
705 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       714 
706 
     | 
    
         
             
            </div>
         
     | 
| 
       715 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       716 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">3</span></code> (= <code class="docutils literal"><span class="pre">26</span> <span class="pre">/</span> <span class="pre">7</span></code>).</p>
         
     | 
| 
      
 707 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 708 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">3</span></code> (= <code class="docutils literal notranslate"><span class="pre">26</span> <span class="pre">/</span> <span class="pre">7</span></code>).</p>
         
     | 
| 
       717 
709 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       718 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 26 % 7'
         
     | 
| 
      
 710 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 26 % 7'
         
     | 
| 
       719 
711 
     | 
    
         
             
            # [
         
     | 
| 
       720 
712 
     | 
    
         
             
            #   [
         
     | 
| 
       721 
713 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -756,20 +748,20 @@ to <code class="docutils literal"><span class="pre">3</span></code> (= <code cla 
     | 
|
| 
       756 
748 
     | 
    
         
             
            # ]
         
     | 
| 
       757 
749 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       758 
750 
     | 
    
         
             
            </div>
         
     | 
| 
       759 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       760 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">26</span> <span class="pre">%</span> <span class="pre">7</span></code>).</p>
         
     | 
| 
      
 751 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 752 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code> (= <code class="docutils literal notranslate"><span class="pre">26</span> <span class="pre">%</span> <span class="pre">7</span></code>).</p>
         
     | 
| 
       761 
753 
     | 
    
         
             
            </div>
         
     | 
| 
       762 
754 
     | 
    
         
             
            </div>
         
     | 
| 
       763 
755 
     | 
    
         
             
            <div class="section" id="logical-operators">
         
     | 
| 
       764 
     | 
    
         
            -
            <h3>7. 
     | 
| 
      
 756 
     | 
    
         
            +
            <h3>7.13.2.7.2. Logical operators<a class="headerlink" href="#logical-operators" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       765 
757 
     | 
    
         
             
            <p>Here are logical operators.</p>
         
     | 
| 
       766 
758 
     | 
    
         
             
            <div class="section" id="logical-not-operator">
         
     | 
| 
       767 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       768 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">!condition</span></code>.</p>
         
     | 
| 
       769 
     | 
    
         
            -
            <p>The operator inverts boolean value of <code class="docutils literal"><span class="pre">condition</span></code>.</p>
         
     | 
| 
      
 759 
     | 
    
         
            +
            <h4>7.13.2.7.2.1. Logical NOT operator<a class="headerlink" href="#logical-not-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 760 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">!condition</span></code>.</p>
         
     | 
| 
      
 761 
     | 
    
         
            +
            <p>The operator inverts boolean value of <code class="docutils literal notranslate"><span class="pre">condition</span></code>.</p>
         
     | 
| 
       770 
762 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       771 
763 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       772 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter '!(n_likes == 5)'
         
     | 
| 
      
 764 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter '!(n_likes == 5)'
         
     | 
| 
       773 
765 
     | 
    
         
             
            # [
         
     | 
| 
       774 
766 
     | 
    
         
             
            #   [
         
     | 
| 
       775 
767 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -828,17 +820,17 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla 
     | 
|
| 
       828 
820 
     | 
    
         
             
            # ]
         
     | 
| 
       829 
821 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       830 
822 
     | 
    
         
             
            </div>
         
     | 
| 
       831 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is not
         
     | 
| 
       832 
     | 
    
         
            -
            equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
         
     | 
| 
      
 823 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is not
         
     | 
| 
      
 824 
     | 
    
         
            +
            equal to <code class="docutils literal notranslate"><span class="pre">5</span></code>.</p>
         
     | 
| 
       833 
825 
     | 
    
         
             
            </div>
         
     | 
| 
       834 
826 
     | 
    
         
             
            <div class="section" id="logical-and-operator">
         
     | 
| 
       835 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       836 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">&&</span> <span class="pre">condition2</span></code>.</p>
         
     | 
| 
       837 
     | 
    
         
            -
            <p>The operator returns true if both of <code class="docutils literal"><span class="pre">condition1</span></code> and
         
     | 
| 
       838 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">condition2</span></code> are true, false otherwise.</p>
         
     | 
| 
      
 827 
     | 
    
         
            +
            <h4>7.13.2.7.2.2. Logical AND operator<a class="headerlink" href="#logical-and-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 828 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">condition1</span> <span class="pre">&&</span> <span class="pre">condition2</span></code>.</p>
         
     | 
| 
      
 829 
     | 
    
         
            +
            <p>The operator returns true if both of <code class="docutils literal notranslate"><span class="pre">condition1</span></code> and
         
     | 
| 
      
 830 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">condition2</span></code> are true, false otherwise.</p>
         
     | 
| 
       839 
831 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       840 
832 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       841 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'content @ "fast" && n_likes >= 10'
         
     | 
| 
      
 833 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'content @ "fast" && n_likes >= 10'
         
     | 
| 
       842 
834 
     | 
    
         
             
            # [
         
     | 
| 
       843 
835 
     | 
    
         
             
            #   [
         
     | 
| 
       844 
836 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -885,18 +877,18 @@ equal to <code class="docutils literal"><span class="pre">5</span></code>.</p> 
     | 
|
| 
       885 
877 
     | 
    
         
             
            # ]
         
     | 
| 
       886 
878 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       887 
879 
     | 
    
         
             
            </div>
         
     | 
| 
       888 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">content</span></code> column value has the
         
     | 
| 
       889 
     | 
    
         
            -
            word <code class="docutils literal"><span class="pre">fast</span></code> and <code class="docutils literal"><span class="pre">n_likes</span></code> column value is greater or equal to
         
     | 
| 
       890 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">10</span></code>.</p>
         
     | 
| 
      
 880 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">content</span></code> column value has the
         
     | 
| 
      
 881 
     | 
    
         
            +
            word <code class="docutils literal notranslate"><span class="pre">fast</span></code> and <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is greater or equal to
         
     | 
| 
      
 882 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">10</span></code>.</p>
         
     | 
| 
       891 
883 
     | 
    
         
             
            </div>
         
     | 
| 
       892 
884 
     | 
    
         
             
            <div class="section" id="logical-or-operator">
         
     | 
| 
       893 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       894 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">||</span> <span class="pre">condition2</span></code>.</p>
         
     | 
| 
       895 
     | 
    
         
            -
            <p>The operator returns true if either <code class="docutils literal"><span class="pre">condition1</span></code> or <code class="docutils literal"><span class="pre">condition2</span></code> is
         
     | 
| 
      
 885 
     | 
    
         
            +
            <h4>7.13.2.7.2.3. Logical OR operator<a class="headerlink" href="#logical-or-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 886 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">condition1</span> <span class="pre">||</span> <span class="pre">condition2</span></code>.</p>
         
     | 
| 
      
 887 
     | 
    
         
            +
            <p>The operator returns true if either <code class="docutils literal notranslate"><span class="pre">condition1</span></code> or <code class="docutils literal notranslate"><span class="pre">condition2</span></code> is
         
     | 
| 
       896 
888 
     | 
    
         
             
            true, false otherwise.</p>
         
     | 
| 
       897 
889 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       898 
890 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       899 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 5 || n_likes == 10'
         
     | 
| 
      
 891 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 5 || n_likes == 10'
         
     | 
| 
       900 
892 
     | 
    
         
             
            # [
         
     | 
| 
       901 
893 
     | 
    
         
             
            #   [
         
     | 
| 
       902 
894 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -943,17 +935,17 @@ true, false otherwise.</p> 
     | 
|
| 
       943 
935 
     | 
    
         
             
            # ]
         
     | 
| 
       944 
936 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       945 
937 
     | 
    
         
             
            </div>
         
     | 
| 
       946 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       947 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code> or <code class="docutils literal"><span class="pre">10</span></code>.</p>
         
     | 
| 
      
 938 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 939 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code> or <code class="docutils literal notranslate"><span class="pre">10</span></code>.</p>
         
     | 
| 
       948 
940 
     | 
    
         
             
            </div>
         
     | 
| 
       949 
941 
     | 
    
         
             
            <div class="section" id="logical-and-not-operator">
         
     | 
| 
       950 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       951 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">condition1</span> <span class="pre">&!</span> <span class="pre">condition2</span></code>.</p>
         
     | 
| 
       952 
     | 
    
         
            -
            <p>The operator returns true if <code class="docutils literal"><span class="pre">condition1</span></code> is true but <code class="docutils literal"><span class="pre">condition2</span></code>
         
     | 
| 
      
 942 
     | 
    
         
            +
            <h4>7.13.2.7.2.4. Logical AND NOT operator<a class="headerlink" href="#logical-and-not-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 943 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">condition1</span> <span class="pre">&!</span> <span class="pre">condition2</span></code>.</p>
         
     | 
| 
      
 944 
     | 
    
         
            +
            <p>The operator returns true if <code class="docutils literal notranslate"><span class="pre">condition1</span></code> is true but <code class="docutils literal notranslate"><span class="pre">condition2</span></code>
         
     | 
| 
       953 
945 
     | 
    
         
             
            is false, false otherwise. It returns difference set.</p>
         
     | 
| 
       954 
946 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       955 
947 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       956 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'content @ "fast" &! content @ "mroonga"'
         
     | 
| 
      
 948 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'content @ "fast" &! content @ "mroonga"'
         
     | 
| 
       957 
949 
     | 
    
         
             
            # [
         
     | 
| 
       958 
950 
     | 
    
         
             
            #   [
         
     | 
| 
       959 
951 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -994,20 +986,20 @@ is false, false otherwise. It returns difference set.</p> 
     | 
|
| 
       994 
986 
     | 
    
         
             
            # ]
         
     | 
| 
       995 
987 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       996 
988 
     | 
    
         
             
            </div>
         
     | 
| 
       997 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">content</span></code> column value has the
         
     | 
| 
       998 
     | 
    
         
            -
            word <code class="docutils literal"><span class="pre">fast</span></code> but doesn 
     | 
| 
      
 989 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">content</span></code> column value has the
         
     | 
| 
      
 990 
     | 
    
         
            +
            word <code class="docutils literal notranslate"><span class="pre">fast</span></code> but doesn’t have the word <code class="docutils literal notranslate"><span class="pre">mroonga</span></code>.</p>
         
     | 
| 
       999 
991 
     | 
    
         
             
            </div>
         
     | 
| 
       1000 
992 
     | 
    
         
             
            </div>
         
     | 
| 
       1001 
993 
     | 
    
         
             
            <div class="section" id="bitwise-operators">
         
     | 
| 
       1002 
     | 
    
         
            -
            <span id="script-syntax-bitwise-operators"></span><h3>7. 
     | 
| 
      
 994 
     | 
    
         
            +
            <span id="script-syntax-bitwise-operators"></span><h3>7.13.2.7.3. Bitwise operators<a class="headerlink" href="#bitwise-operators" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       1003 
995 
     | 
    
         
             
            <p>Here are bitwise operators.</p>
         
     | 
| 
       1004 
996 
     | 
    
         
             
            <div class="section" id="bitwise-not-operator">
         
     | 
| 
       1005 
     | 
    
         
            -
            <span id="script-syntax-bitwise-not"></span><h4>7. 
     | 
| 
       1006 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">~number</span></code>.</p>
         
     | 
| 
       1007 
     | 
    
         
            -
            <p>The operator returns bitwise NOT of <code class="docutils literal"><span class="pre">number</span></code>.</p>
         
     | 
| 
      
 997 
     | 
    
         
            +
            <span id="script-syntax-bitwise-not"></span><h4>7.13.2.7.3.1. Bitwise NOT operator<a class="headerlink" href="#bitwise-not-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 998 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">~number</span></code>.</p>
         
     | 
| 
      
 999 
     | 
    
         
            +
            <p>The operator returns bitwise NOT of <code class="docutils literal notranslate"><span class="pre">number</span></code>.</p>
         
     | 
| 
       1008 
1000 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1009 
1001 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1010 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter '~n_likes == -6'
         
     | 
| 
      
 1002 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter '~n_likes == -6'
         
     | 
| 
       1011 
1003 
     | 
    
         
             
            # [
         
     | 
| 
       1012 
1004 
     | 
    
         
             
            #   [
         
     | 
| 
       1013 
1005 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1048,16 +1040,16 @@ word <code class="docutils literal"><span class="pre">fast</span></code> but doe 
     | 
|
| 
       1048 
1040 
     | 
    
         
             
            # ]
         
     | 
| 
       1049 
1041 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1050 
1042 
     | 
    
         
             
            </div>
         
     | 
| 
       1051 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       1052 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code> because bitwise NOT of <code class="docutils literal"><span class="pre">5</span></code> is equal to <code class="docutils literal"><span class="pre">-6</span></code>.</p>
         
     | 
| 
      
 1043 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 1044 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code> because bitwise NOT of <code class="docutils literal notranslate"><span class="pre">5</span></code> is equal to <code class="docutils literal notranslate"><span class="pre">-6</span></code>.</p>
         
     | 
| 
       1053 
1045 
     | 
    
         
             
            </div>
         
     | 
| 
       1054 
1046 
     | 
    
         
             
            <div class="section" id="bitwise-and-operator">
         
     | 
| 
       1055 
     | 
    
         
            -
            <span id="script-syntax-bitwise-and"></span><h4>7. 
     | 
| 
       1056 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">&</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       1057 
     | 
    
         
            -
            <p>The operator returns bitwise AND between <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1047 
     | 
    
         
            +
            <span id="script-syntax-bitwise-and"></span><h4>7.13.2.7.3.2. Bitwise AND operator<a class="headerlink" href="#bitwise-and-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1048 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">&</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1049 
     | 
    
         
            +
            <p>The operator returns bitwise AND between <code class="docutils literal notranslate"><span class="pre">number1</span></code> and <code class="docutils literal notranslate"><span class="pre">number2</span></code>.</p>
         
     | 
| 
       1058 
1050 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1059 
1051 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1060 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter '(n_likes & 1) == 1'
         
     | 
| 
      
 1052 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter '(n_likes & 1) == 1'
         
     | 
| 
       1061 
1053 
     | 
    
         
             
            # [
         
     | 
| 
       1062 
1054 
     | 
    
         
             
            #   [
         
     | 
| 
       1063 
1055 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1116,19 +1108,19 @@ to <code class="docutils literal"><span class="pre">5</span></code> because bitw 
     | 
|
| 
       1116 
1108 
     | 
    
         
             
            # ]
         
     | 
| 
       1117 
1109 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1118 
1110 
     | 
    
         
             
            </div>
         
     | 
| 
       1119 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is even
         
     | 
| 
       1120 
     | 
    
         
            -
            number because bitwise AND between an even number and <code class="docutils literal"><span class="pre">1</span></code> is equal
         
     | 
| 
       1121 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">1</span></code> and bitwise AND between an odd number and <code class="docutils literal"><span class="pre">1</span></code> is equal to
         
     | 
| 
       1122 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">0</span></code>.</p>
         
     | 
| 
      
 1111 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is even
         
     | 
| 
      
 1112 
     | 
    
         
            +
            number because bitwise AND between an even number and <code class="docutils literal notranslate"><span class="pre">1</span></code> is equal
         
     | 
| 
      
 1113 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">1</span></code> and bitwise AND between an odd number and <code class="docutils literal notranslate"><span class="pre">1</span></code> is equal to
         
     | 
| 
      
 1114 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">0</span></code>.</p>
         
     | 
| 
       1123 
1115 
     | 
    
         
             
            </div>
         
     | 
| 
       1124 
1116 
     | 
    
         
             
            </div>
         
     | 
| 
       1125 
1117 
     | 
    
         
             
            <div class="section" id="bitwise-or-operator">
         
     | 
| 
       1126 
     | 
    
         
            -
            <span id="script-syntax-bitwise-or"></span><h3>7. 
     | 
| 
       1127 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">|</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       1128 
     | 
    
         
            -
            <p>The operator returns bitwise OR between <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1118 
     | 
    
         
            +
            <span id="script-syntax-bitwise-or"></span><h3>7.13.2.7.4. Bitwise OR operator<a class="headerlink" href="#bitwise-or-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1119 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">|</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1120 
     | 
    
         
            +
            <p>The operator returns bitwise OR between <code class="docutils literal notranslate"><span class="pre">number1</span></code> and <code class="docutils literal notranslate"><span class="pre">number2</span></code>.</p>
         
     | 
| 
       1129 
1121 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1130 
1122 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1131 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (1 | 4)'
         
     | 
| 
      
 1123 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (1 | 4)'
         
     | 
| 
       1132 
1124 
     | 
    
         
             
            # [
         
     | 
| 
       1133 
1125 
     | 
    
         
             
            #   [
         
     | 
| 
       1134 
1126 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1169,16 +1161,16 @@ to <code class="docutils literal"><span class="pre">1</span></code> and bitwise 
     | 
|
| 
       1169 
1161 
     | 
    
         
             
            # ]
         
     | 
| 
       1170 
1162 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1171 
1163 
     | 
    
         
             
            </div>
         
     | 
| 
       1172 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       1173 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">4</span></code>).</p>
         
     | 
| 
      
 1164 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 1165 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code> (= <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">4</span></code>).</p>
         
     | 
| 
       1174 
1166 
     | 
    
         
             
            </div>
         
     | 
| 
       1175 
1167 
     | 
    
         
             
            <div class="section" id="bitwise-xor-operator">
         
     | 
| 
       1176 
     | 
    
         
            -
            <span id="script-syntax-bitwise-xor"></span><h3>7. 
     | 
| 
       1177 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">^</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       1178 
     | 
    
         
            -
            <p>The operator returns bitwise XOR between <code class="docutils literal"><span class="pre">number1</span></code> and <code class="docutils literal"><span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1168 
     | 
    
         
            +
            <span id="script-syntax-bitwise-xor"></span><h3>7.13.2.7.5. Bitwise XOR operator<a class="headerlink" href="#bitwise-xor-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1169 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">^</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1170 
     | 
    
         
            +
            <p>The operator returns bitwise XOR between <code class="docutils literal notranslate"><span class="pre">number1</span></code> and <code class="docutils literal notranslate"><span class="pre">number2</span></code>.</p>
         
     | 
| 
       1179 
1171 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1180 
1172 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1181 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (10 ^ 15)'
         
     | 
| 
      
 1173 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (10 ^ 15)'
         
     | 
| 
       1182 
1174 
     | 
    
         
             
            # [
         
     | 
| 
       1183 
1175 
     | 
    
         
             
            #   [
         
     | 
| 
       1184 
1176 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1219,20 +1211,20 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla 
     | 
|
| 
       1219 
1211 
     | 
    
         
             
            # ]
         
     | 
| 
       1220 
1212 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1221 
1213 
     | 
    
         
             
            </div>
         
     | 
| 
       1222 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       1223 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">10</span> <span class="pre">^</span> <span class="pre">15</span></code>).</p>
         
     | 
| 
      
 1214 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 1215 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code> (= <code class="docutils literal notranslate"><span class="pre">10</span> <span class="pre">^</span> <span class="pre">15</span></code>).</p>
         
     | 
| 
       1224 
1216 
     | 
    
         
             
            </div>
         
     | 
| 
       1225 
1217 
     | 
    
         
             
            <div class="section" id="shift-operators">
         
     | 
| 
       1226 
     | 
    
         
            -
            <span id="script-syntax-shift-operators"></span><h3>7. 
     | 
| 
      
 1218 
     | 
    
         
            +
            <span id="script-syntax-shift-operators"></span><h3>7.13.2.7.6. Shift operators<a class="headerlink" href="#shift-operators" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       1227 
1219 
     | 
    
         
             
            <p>Here are shift operators.</p>
         
     | 
| 
       1228 
1220 
     | 
    
         
             
            <div class="section" id="left-shift-operator">
         
     | 
| 
       1229 
     | 
    
         
            -
            <span id="script-syntax-shift-left"></span><h4>7. 
     | 
| 
       1230 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre"><<</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       1231 
     | 
    
         
            -
            <p>The operator performs a bitwise left shift operation on <code class="docutils literal"><span class="pre">number1</span></code> by
         
     | 
| 
       1232 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1221 
     | 
    
         
            +
            <span id="script-syntax-shift-left"></span><h4>7.13.2.7.6.1. Left shift operator<a class="headerlink" href="#left-shift-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1222 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre"><<</span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1223 
     | 
    
         
            +
            <p>The operator performs a bitwise left shift operation on <code class="docutils literal notranslate"><span class="pre">number1</span></code> by
         
     | 
| 
      
 1224 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">number2</span></code>.</p>
         
     | 
| 
       1233 
1225 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1234 
1226 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1235 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (5 << 1)'
         
     | 
| 
      
 1227 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (5 << 1)'
         
     | 
| 
       1236 
1228 
     | 
    
         
             
            # [
         
     | 
| 
       1237 
1229 
     | 
    
         
             
            #   [
         
     | 
| 
       1238 
1230 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1273,17 +1265,17 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla 
     | 
|
| 
       1273 
1265 
     | 
    
         
             
            # ]
         
     | 
| 
       1274 
1266 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1275 
1267 
     | 
    
         
             
            </div>
         
     | 
| 
       1276 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       1277 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">10</span></code> (= <code class="docutils literal"><span class="pre">5</span> <span class="pre"><<</span> <span class="pre">1</span></code>).</p>
         
     | 
| 
      
 1268 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 1269 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">10</span></code> (= <code class="docutils literal notranslate"><span class="pre">5</span> <span class="pre"><<</span> <span class="pre">1</span></code>).</p>
         
     | 
| 
       1278 
1270 
     | 
    
         
             
            </div>
         
     | 
| 
       1279 
1271 
     | 
    
         
             
            <div class="section" id="signed-right-shift-operator">
         
     | 
| 
       1280 
     | 
    
         
            -
            <span id="script-syntax-shift-signed-right"></span><h4>7. 
     | 
| 
       1281 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">>></span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       1282 
     | 
    
         
            -
            <p>The operator shifts bits of <code class="docutils literal"><span class="pre">number1</span></code> to right by <code class="docutils literal"><span class="pre">number2</span></code>. The sign
         
     | 
| 
       1283 
     | 
    
         
            -
            of the result is the same as <code class="docutils literal"><span class="pre">number1</span></code>.</p>
         
     | 
| 
      
 1272 
     | 
    
         
            +
            <span id="script-syntax-shift-signed-right"></span><h4>7.13.2.7.6.2. Signed right shift operator<a class="headerlink" href="#signed-right-shift-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1273 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">>></span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1274 
     | 
    
         
            +
            <p>The operator shifts bits of <code class="docutils literal notranslate"><span class="pre">number1</span></code> to right by <code class="docutils literal notranslate"><span class="pre">number2</span></code>. The sign
         
     | 
| 
      
 1275 
     | 
    
         
            +
            of the result is the same as <code class="docutils literal notranslate"><span class="pre">number1</span></code>.</p>
         
     | 
| 
       1284 
1276 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1285 
1277 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1286 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == -(-10 >> 1)'
         
     | 
| 
      
 1278 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == -(-10 >> 1)'
         
     | 
| 
       1287 
1279 
     | 
    
         
             
            # [
         
     | 
| 
       1288 
1280 
     | 
    
         
             
            #   [
         
     | 
| 
       1289 
1281 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1324,17 +1316,17 @@ of the result is the same as <code class="docutils literal"><span class="pre">nu 
     | 
|
| 
       1324 
1316 
     | 
    
         
             
            # ]
         
     | 
| 
       1325 
1317 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1326 
1318 
     | 
    
         
             
            </div>
         
     | 
| 
       1327 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       1328 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">-(-10</span> <span class="pre">>></span> <span class="pre">1)</span></code> = <code class="docutils literal"><span class="pre">-(-5)</span></code>).</p>
         
     | 
| 
      
 1319 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 1320 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code> (= <code class="docutils literal notranslate"><span class="pre">-(-10</span> <span class="pre">>></span> <span class="pre">1)</span></code> = <code class="docutils literal notranslate"><span class="pre">-(-5)</span></code>).</p>
         
     | 
| 
       1329 
1321 
     | 
    
         
             
            </div>
         
     | 
| 
       1330 
1322 
     | 
    
         
             
            <div class="section" id="unsigned-right-shift-operator">
         
     | 
| 
       1331 
     | 
    
         
            -
            <span id="script-syntax-shift-unsigned-right"></span><h4>7. 
     | 
| 
       1332 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">number1</span> <span class="pre">>>></span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
       1333 
     | 
    
         
            -
            <p>The operator shifts bits of <code class="docutils literal"><span class="pre">number1</span></code> to right by <code class="docutils literal"><span class="pre">number2</span></code>. The
         
     | 
| 
       1334 
     | 
    
         
            -
            leftmost <code class="docutils literal"><span class="pre">number2</span></code> bits are filled by <code class="docutils literal"><span class="pre">0</span></code>.</p>
         
     | 
| 
      
 1323 
     | 
    
         
            +
            <span id="script-syntax-shift-unsigned-right"></span><h4>7.13.2.7.6.3. Unsigned right shift operator<a class="headerlink" href="#unsigned-right-shift-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1324 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">number1</span> <span class="pre">>>></span> <span class="pre">number2</span></code>.</p>
         
     | 
| 
      
 1325 
     | 
    
         
            +
            <p>The operator shifts bits of <code class="docutils literal notranslate"><span class="pre">number1</span></code> to right by <code class="docutils literal notranslate"><span class="pre">number2</span></code>. The
         
     | 
| 
      
 1326 
     | 
    
         
            +
            leftmost <code class="docutils literal notranslate"><span class="pre">number2</span></code> bits are filled by <code class="docutils literal notranslate"><span class="pre">0</span></code>.</p>
         
     | 
| 
       1335 
1327 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1336 
1328 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1337 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (2147483648 - (-10 >>> 1))'
         
     | 
| 
      
 1329 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == (2147483648 - (-10 >>> 1))'
         
     | 
| 
       1338 
1330 
     | 
    
         
             
            # [
         
     | 
| 
       1339 
1331 
     | 
    
         
             
            #   [
         
     | 
| 
       1340 
1332 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1375,21 +1367,21 @@ leftmost <code class="docutils literal"><span class="pre">number2</span></code> 
     | 
|
| 
       1375 
1367 
     | 
    
         
             
            # ]
         
     | 
| 
       1376 
1368 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1377 
1369 
     | 
    
         
             
            </div>
         
     | 
| 
       1378 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       1379 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code> (= <code class="docutils literal"><span class="pre">2147483648</span> <span class="pre">-</span> <span class="pre">(-10</span> <span class="pre">>>></span> <span class="pre">1)</span></code> = <code class="docutils literal"><span class="pre">2147483648</span> <span class="pre">-</span> <span class="pre">2147483643</span></code>).</p>
         
     | 
| 
      
 1370 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 1371 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code> (= <code class="docutils literal notranslate"><span class="pre">2147483648</span> <span class="pre">-</span> <span class="pre">(-10</span> <span class="pre">>>></span> <span class="pre">1)</span></code> = <code class="docutils literal notranslate"><span class="pre">2147483648</span> <span class="pre">-</span> <span class="pre">2147483643</span></code>).</p>
         
     | 
| 
       1380 
1372 
     | 
    
         
             
            </div>
         
     | 
| 
       1381 
1373 
     | 
    
         
             
            </div>
         
     | 
| 
       1382 
1374 
     | 
    
         
             
            <div class="section" id="comparison-operators">
         
     | 
| 
       1383 
     | 
    
         
            -
            <h3>7. 
     | 
| 
      
 1375 
     | 
    
         
            +
            <h3>7.13.2.7.7. Comparison operators<a class="headerlink" href="#comparison-operators" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       1384 
1376 
     | 
    
         
             
            <p>Here are comparison operators.</p>
         
     | 
| 
       1385 
1377 
     | 
    
         
             
            <div class="section" id="equal-operator">
         
     | 
| 
       1386 
     | 
    
         
            -
            <span id="script-syntax-equal-operator"></span><h4>7. 
     | 
| 
       1387 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">object1</span> <span class="pre">==</span> <span class="pre">object2</span></code>.</p>
         
     | 
| 
       1388 
     | 
    
         
            -
            <p>The operator returns true if <code class="docutils literal"><span class="pre">object1</span></code> equals to <code class="docutils literal"><span class="pre">object2</span></code>, false
         
     | 
| 
      
 1378 
     | 
    
         
            +
            <span id="script-syntax-equal-operator"></span><h4>7.13.2.7.7.1. Equal operator<a class="headerlink" href="#equal-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1379 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">object1</span> <span class="pre">==</span> <span class="pre">object2</span></code>.</p>
         
     | 
| 
      
 1380 
     | 
    
         
            +
            <p>The operator returns true if <code class="docutils literal notranslate"><span class="pre">object1</span></code> equals to <code class="docutils literal notranslate"><span class="pre">object2</span></code>, false
         
     | 
| 
       1389 
1381 
     | 
    
         
             
            otherwise.</p>
         
     | 
| 
       1390 
1382 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1391 
1383 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1392 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 5'
         
     | 
| 
      
 1384 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes == 5'
         
     | 
| 
       1393 
1385 
     | 
    
         
             
            # [
         
     | 
| 
       1394 
1386 
     | 
    
         
             
            #   [
         
     | 
| 
       1395 
1387 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1430,17 +1422,17 @@ otherwise.</p> 
     | 
|
| 
       1430 
1422 
     | 
    
         
             
            # ]
         
     | 
| 
       1431 
1423 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1432 
1424 
     | 
    
         
             
            </div>
         
     | 
| 
       1433 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
       1434 
     | 
    
         
            -
            to <code class="docutils literal"><span class="pre">5</span></code>.</p>
         
     | 
| 
      
 1425 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is equal
         
     | 
| 
      
 1426 
     | 
    
         
            +
            to <code class="docutils literal notranslate"><span class="pre">5</span></code>.</p>
         
     | 
| 
       1435 
1427 
     | 
    
         
             
            </div>
         
     | 
| 
       1436 
1428 
     | 
    
         
             
            <div class="section" id="not-equal-operator">
         
     | 
| 
       1437 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       1438 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">object1</span> <span class="pre">!=</span> <span class="pre">object2</span></code>.</p>
         
     | 
| 
       1439 
     | 
    
         
            -
            <p>The operator returns true if <code class="docutils literal"><span class="pre">object1</span></code> does not equal to
         
     | 
| 
       1440 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">object2</span></code>, false otherwise.</p>
         
     | 
| 
      
 1429 
     | 
    
         
            +
            <h4>7.13.2.7.7.2. Not equal operator<a class="headerlink" href="#not-equal-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1430 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">object1</span> <span class="pre">!=</span> <span class="pre">object2</span></code>.</p>
         
     | 
| 
      
 1431 
     | 
    
         
            +
            <p>The operator returns true if <code class="docutils literal notranslate"><span class="pre">object1</span></code> does not equal to
         
     | 
| 
      
 1432 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">object2</span></code>, false otherwise.</p>
         
     | 
| 
       1441 
1433 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       1442 
1434 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1443 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes != 5'
         
     | 
| 
      
 1435 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'n_likes != 5'
         
     | 
| 
       1444 
1436 
     | 
    
         
             
            # [
         
     | 
| 
       1445 
1437 
     | 
    
         
             
            #   [
         
     | 
| 
       1446 
1438 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1499,35 +1491,35 @@ to <code class="docutils literal"><span class="pre">5</span></code>.</p> 
     | 
|
| 
       1499 
1491 
     | 
    
         
             
            # ]
         
     | 
| 
       1500 
1492 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1501 
1493 
     | 
    
         
             
            </div>
         
     | 
| 
       1502 
     | 
    
         
            -
            <p>The expression matches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value is not
         
     | 
| 
       1503 
     | 
    
         
            -
            equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
         
     | 
| 
      
 1494 
     | 
    
         
            +
            <p>The expression matches records that <code class="docutils literal notranslate"><span class="pre">n_likes</span></code> column value is not
         
     | 
| 
      
 1495 
     | 
    
         
            +
            equal to <code class="docutils literal notranslate"><span class="pre">5</span></code>.</p>
         
     | 
| 
       1504 
1496 
     | 
    
         
             
            </div>
         
     | 
| 
       1505 
1497 
     | 
    
         
             
            <div class="section" id="less-than-operator">
         
     | 
| 
       1506 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       1507 
     | 
    
         
            -
            <p>TODO:  
     | 
| 
      
 1498 
     | 
    
         
            +
            <h4>7.13.2.7.7.3. Less than operator<a class="headerlink" href="#less-than-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1499 
     | 
    
         
            +
            <p>TODO: …</p>
         
     | 
| 
       1508 
1500 
     | 
    
         
             
            </div>
         
     | 
| 
       1509 
1501 
     | 
    
         
             
            <div class="section" id="less-than-or-equal-to-operator">
         
     | 
| 
       1510 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       1511 
     | 
    
         
            -
            <p>TODO:  
     | 
| 
      
 1502 
     | 
    
         
            +
            <h4>7.13.2.7.7.4. Less than or equal to operator<a class="headerlink" href="#less-than-or-equal-to-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1503 
     | 
    
         
            +
            <p>TODO: …</p>
         
     | 
| 
       1512 
1504 
     | 
    
         
             
            </div>
         
     | 
| 
       1513 
1505 
     | 
    
         
             
            <div class="section" id="greater-than-operator">
         
     | 
| 
       1514 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       1515 
     | 
    
         
            -
            <p>TODO:  
     | 
| 
      
 1506 
     | 
    
         
            +
            <h4>7.13.2.7.7.5. Greater than operator<a class="headerlink" href="#greater-than-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1507 
     | 
    
         
            +
            <p>TODO: …</p>
         
     | 
| 
       1516 
1508 
     | 
    
         
             
            </div>
         
     | 
| 
       1517 
1509 
     | 
    
         
             
            <div class="section" id="greater-than-or-equal-to-operator">
         
     | 
| 
       1518 
     | 
    
         
            -
            <h4>7. 
     | 
| 
       1519 
     | 
    
         
            -
            <p>TODO:  
     | 
| 
      
 1510 
     | 
    
         
            +
            <h4>7.13.2.7.7.6. Greater than or equal to operator<a class="headerlink" href="#greater-than-or-equal-to-operator" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 1511 
     | 
    
         
            +
            <p>TODO: …</p>
         
     | 
| 
       1520 
1512 
     | 
    
         
             
            </div>
         
     | 
| 
       1521 
1513 
     | 
    
         
             
            </div>
         
     | 
| 
       1522 
1514 
     | 
    
         
             
            </div>
         
     | 
| 
       1523 
1515 
     | 
    
         
             
            <div class="section" id="assignment-operators">
         
     | 
| 
       1524 
     | 
    
         
            -
            <h2>7. 
     | 
| 
      
 1516 
     | 
    
         
            +
            <h2>7.13.2.8. Assignment operators<a class="headerlink" href="#assignment-operators" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       1525 
1517 
     | 
    
         
             
            <div class="section" id="addition-assignment-operator">
         
     | 
| 
       1526 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1527 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">+=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1518 
     | 
    
         
            +
            <h3>7.13.2.8.1. Addition assignment operator<a class="headerlink" href="#addition-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1519 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">+=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1528 
1520 
     | 
    
         
             
            <p>The operator performs addition assignment operation on column1 by column2.</p>
         
     | 
| 
       1529 
1521 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1530 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score += n_likes'
         
     | 
| 
      
 1522 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score += n_likes'
         
     | 
| 
       1531 
1523 
     | 
    
         
             
            # [
         
     | 
| 
       1532 
1524 
     | 
    
         
             
            #   [
         
     | 
| 
       1533 
1525 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1583,18 +1575,18 @@ equal to <code class="docutils literal"><span class="pre">5</span></code>.</p> 
     | 
|
| 
       1583 
1575 
     | 
    
         
             
            # ]
         
     | 
| 
       1584 
1576 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1585 
1577 
     | 
    
         
             
            </div>
         
     | 
| 
       1586 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       1587 
     | 
    
         
            -
            then performs addition assignment operation such as  
     | 
| 
       1588 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 1578 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 1579 
     | 
    
         
            +
            then performs addition assignment operation such as ‘_score = _score + n_likes’ for each records.</p>
         
     | 
| 
      
 1580 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Good-bye Senna” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       1589 
1581 
     | 
    
         
             
            is 3.</p>
         
     | 
| 
       1590 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 1582 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       1591 
1583 
     | 
    
         
             
            </div>
         
     | 
| 
       1592 
1584 
     | 
    
         
             
            <div class="section" id="subtraction-assignment-operator">
         
     | 
| 
       1593 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1594 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">-=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1585 
     | 
    
         
            +
            <h3>7.13.2.8.2. Subtraction assignment operator<a class="headerlink" href="#subtraction-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1586 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">-=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1595 
1587 
     | 
    
         
             
            <p>The operator performs subtraction assignment operation on column1 by column2.</p>
         
     | 
| 
       1596 
1588 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1597 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score -= n_likes'
         
     | 
| 
      
 1589 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score -= n_likes'
         
     | 
| 
       1598 
1590 
     | 
    
         
             
            # [
         
     | 
| 
       1599 
1591 
     | 
    
         
             
            #   [
         
     | 
| 
       1600 
1592 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1650,18 +1642,18 @@ is 3.</p> 
     | 
|
| 
       1650 
1642 
     | 
    
         
             
            # ]
         
     | 
| 
       1651 
1643 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1652 
1644 
     | 
    
         
             
            </div>
         
     | 
| 
       1653 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       1654 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       1655 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 1645 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 1646 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score - n_likes’ for each records.</p>
         
     | 
| 
      
 1647 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Good-bye Senna” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       1656 
1648 
     | 
    
         
             
            is 3.</p>
         
     | 
| 
       1657 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">-</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 1649 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">-</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       1658 
1650 
     | 
    
         
             
            </div>
         
     | 
| 
       1659 
1651 
     | 
    
         
             
            <div class="section" id="multiplication-assignment-operator">
         
     | 
| 
       1660 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1661 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">*=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1652 
     | 
    
         
            +
            <h3>7.13.2.8.3. Multiplication assignment operator<a class="headerlink" href="#multiplication-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1653 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">*=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1662 
1654 
     | 
    
         
             
            <p>The operator performs multiplication assignment operation on column1 by column2.</p>
         
     | 
| 
       1663 
1655 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1664 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score *= n_likes'
         
     | 
| 
      
 1656 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score *= n_likes'
         
     | 
| 
       1665 
1657 
     | 
    
         
             
            # [
         
     | 
| 
       1666 
1658 
     | 
    
         
             
            #   [
         
     | 
| 
       1667 
1659 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1717,18 +1709,18 @@ is 3.</p> 
     | 
|
| 
       1717 
1709 
     | 
    
         
             
            # ]
         
     | 
| 
       1718 
1710 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1719 
1711 
     | 
    
         
             
            </div>
         
     | 
| 
       1720 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       1721 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       1722 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 1712 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 1713 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score * n_likes’ for each records.</p>
         
     | 
| 
      
 1714 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Good-bye Senna” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       1723 
1715 
     | 
    
         
             
            is 3.</p>
         
     | 
| 
       1724 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">*</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 1716 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">*</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       1725 
1717 
     | 
    
         
             
            </div>
         
     | 
| 
       1726 
1718 
     | 
    
         
             
            <div class="section" id="division-assignment-operator">
         
     | 
| 
       1727 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1728 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">/=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1719 
     | 
    
         
            +
            <h3>7.13.2.8.4. Division assignment operator<a class="headerlink" href="#division-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1720 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">/=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1729 
1721 
     | 
    
         
             
            <p>The operator performs division assignment operation on column1 by column2.</p>
         
     | 
| 
       1730 
1722 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1731 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score /= n_likes'
         
     | 
| 
      
 1723 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score /= n_likes'
         
     | 
| 
       1732 
1724 
     | 
    
         
             
            # [
         
     | 
| 
       1733 
1725 
     | 
    
         
             
            #   [
         
     | 
| 
       1734 
1726 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1784,18 +1776,18 @@ is 3.</p> 
     | 
|
| 
       1784 
1776 
     | 
    
         
             
            # ]
         
     | 
| 
       1785 
1777 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1786 
1778 
     | 
    
         
             
            </div>
         
     | 
| 
       1787 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       1788 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       1789 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 1779 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 1780 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score / n_likes’ for each records.</p>
         
     | 
| 
      
 1781 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Good-bye Senna” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       1790 
1782 
     | 
    
         
             
            is 3.</p>
         
     | 
| 
       1791 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">/</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 1783 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">/</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       1792 
1784 
     | 
    
         
             
            </div>
         
     | 
| 
       1793 
1785 
     | 
    
         
             
            <div class="section" id="modulo-assignment-operator">
         
     | 
| 
       1794 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1795 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">%=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1786 
     | 
    
         
            +
            <h3>7.13.2.8.5. Modulo assignment operator<a class="headerlink" href="#modulo-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1787 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">%=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1796 
1788 
     | 
    
         
             
            <p>The operator performs modulo assignment operation on column1 by column2.</p>
         
     | 
| 
       1797 
1789 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1798 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score %= n_likes'
         
     | 
| 
      
 1790 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score %= n_likes'
         
     | 
| 
       1799 
1791 
     | 
    
         
             
            # [
         
     | 
| 
       1800 
1792 
     | 
    
         
             
            #   [
         
     | 
| 
       1801 
1793 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1851,18 +1843,18 @@ is 3.</p> 
     | 
|
| 
       1851 
1843 
     | 
    
         
             
            # ]
         
     | 
| 
       1852 
1844 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1853 
1845 
     | 
    
         
             
            </div>
         
     | 
| 
       1854 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       1855 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       1856 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 1846 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 1847 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score % n_likes’ for each records.</p>
         
     | 
| 
      
 1848 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Good-bye Senna” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       1857 
1849 
     | 
    
         
             
            is 3.</p>
         
     | 
| 
       1858 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">%</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 1850 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">%</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       1859 
1851 
     | 
    
         
             
            </div>
         
     | 
| 
       1860 
1852 
     | 
    
         
             
            <div class="section" id="bitwise-left-shift-assignment-operator">
         
     | 
| 
       1861 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1862 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre"><<=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1853 
     | 
    
         
            +
            <h3>7.13.2.8.6. Bitwise left shift assignment operator<a class="headerlink" href="#bitwise-left-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1854 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre"><<=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1863 
1855 
     | 
    
         
             
            <p>The operator performs left shift assignment operation on column1 by column2.</p>
         
     | 
| 
       1864 
1856 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1865 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score <<= n_likes'
         
     | 
| 
      
 1857 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score <<= n_likes'
         
     | 
| 
       1866 
1858 
     | 
    
         
             
            # [
         
     | 
| 
       1867 
1859 
     | 
    
         
             
            #   [
         
     | 
| 
       1868 
1860 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1918,28 +1910,28 @@ is 3.</p> 
     | 
|
| 
       1918 
1910 
     | 
    
         
             
            # ]
         
     | 
| 
       1919 
1911 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1920 
1912 
     | 
    
         
             
            </div>
         
     | 
| 
       1921 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       1922 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       1923 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 1913 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 1914 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score << n_likes’ for each records.</p>
         
     | 
| 
      
 1915 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Good-bye Senna” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       1924 
1916 
     | 
    
         
             
            is 3.</p>
         
     | 
| 
       1925 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre"><<</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 1917 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre"><<</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       1926 
1918 
     | 
    
         
             
            </div>
         
     | 
| 
       1927 
1919 
     | 
    
         
             
            <div class="section" id="bitwise-signed-right-shift-assignment-operator">
         
     | 
| 
       1928 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1929 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column2</span> <span class="pre">>>=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1920 
     | 
    
         
            +
            <h3>7.13.2.8.7. Bitwise signed right shift assignment operator<a class="headerlink" href="#bitwise-signed-right-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1921 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column2</span> <span class="pre">>>=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1930 
1922 
     | 
    
         
             
            <p>The operator performs signed right shift assignment operation on column1 by column2.</p>
         
     | 
| 
       1931 
1923 
     | 
    
         
             
            </div>
         
     | 
| 
       1932 
1924 
     | 
    
         
             
            <div class="section" id="bitwise-unsigned-right-shift-assignment-operator">
         
     | 
| 
       1933 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1934 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">>>>=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1925 
     | 
    
         
            +
            <h3>7.13.2.8.8. Bitwise unsigned right shift assignment operator<a class="headerlink" href="#bitwise-unsigned-right-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1926 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">>>>=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1935 
1927 
     | 
    
         
             
            <p>The operator performs unsigned right shift assignment operation on column1 by column2.</p>
         
     | 
| 
       1936 
1928 
     | 
    
         
             
            </div>
         
     | 
| 
       1937 
1929 
     | 
    
         
             
            <div class="section" id="bitwise-and-assignment-operator">
         
     | 
| 
       1938 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       1939 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">&=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1930 
     | 
    
         
            +
            <h3>7.13.2.8.9. Bitwise AND assignment operator<a class="headerlink" href="#bitwise-and-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1931 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">&=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       1940 
1932 
     | 
    
         
             
            <p>The operator performs bitwise AND assignment operation on column1 by column2.</p>
         
     | 
| 
       1941 
1933 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       1942 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score &= n_likes'
         
     | 
| 
      
 1934 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score &= n_likes'
         
     | 
| 
       1943 
1935 
     | 
    
         
             
            # [
         
     | 
| 
       1944 
1936 
     | 
    
         
             
            #   [
         
     | 
| 
       1945 
1937 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -1995,18 +1987,18 @@ is 3.</p> 
     | 
|
| 
       1995 
1987 
     | 
    
         
             
            # ]
         
     | 
| 
       1996 
1988 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1997 
1989 
     | 
    
         
             
            </div>
         
     | 
| 
       1998 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       1999 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       2000 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 1990 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 1991 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score & n_likes’ for each records.</p>
         
     | 
| 
      
 1992 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Groonga” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       2001 
1993 
     | 
    
         
             
            is 10.</p>
         
     | 
| 
       2002 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">&</span> <span class="pre">10</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 1994 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">&</span> <span class="pre">10</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       2003 
1995 
     | 
    
         
             
            </div>
         
     | 
| 
       2004 
1996 
     | 
    
         
             
            <div class="section" id="bitwise-or-assignment-operator">
         
     | 
| 
       2005 
     | 
    
         
            -
            <span id="script-syntax-bitwise-or-assign"></span><h3>7. 
     | 
| 
       2006 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">|=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 1997 
     | 
    
         
            +
            <span id="script-syntax-bitwise-or-assign"></span><h3>7.13.2.8.10. Bitwise OR assignment operator<a class="headerlink" href="#bitwise-or-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 1998 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">|=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       2007 
1999 
     | 
    
         
             
            <p>The operator performs bitwise OR assignment operation on column1 by column2.</p>
         
     | 
| 
       2008 
2000 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2009 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score |= n_likes'
         
     | 
| 
      
 2001 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score |= n_likes'
         
     | 
| 
       2010 
2002 
     | 
    
         
             
            # [
         
     | 
| 
       2011 
2003 
     | 
    
         
             
            #   [
         
     | 
| 
       2012 
2004 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2062,18 +2054,18 @@ is 10.</p> 
     | 
|
| 
       2062 
2054 
     | 
    
         
             
            # ]
         
     | 
| 
       2063 
2055 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2064 
2056 
     | 
    
         
             
            </div>
         
     | 
| 
       2065 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       2066 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       2067 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 2057 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 2058 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score | n_likes’ for each records.</p>
         
     | 
| 
      
 2059 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Groonga” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       2068 
2060 
     | 
    
         
             
            is 10.</p>
         
     | 
| 
       2069 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">10</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 2061 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">10</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       2070 
2062 
     | 
    
         
             
            </div>
         
     | 
| 
       2071 
2063 
     | 
    
         
             
            <div class="section" id="bitwise-xor-assignment-operator">
         
     | 
| 
       2072 
     | 
    
         
            -
            <h3>7. 
     | 
| 
       2073 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column1</span> <span class="pre">^=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
      
 2064 
     | 
    
         
            +
            <h3>7.13.2.8.11. Bitwise XOR assignment operator<a class="headerlink" href="#bitwise-xor-assignment-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 2065 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column1</span> <span class="pre">^=</span> <span class="pre">column2</span></code>.</p>
         
     | 
| 
       2074 
2066 
     | 
    
         
             
            <p>The operator performs bitwise XOR assignment operation on column1 by column2.</p>
         
     | 
| 
       2075 
2067 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2076 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score ^= n_likes'
         
     | 
| 
      
 2068 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score ^= n_likes'
         
     | 
| 
       2077 
2069 
     | 
    
         
             
            # [
         
     | 
| 
       2078 
2070 
     | 
    
         
             
            #   [
         
     | 
| 
       2079 
2071 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2129,28 +2121,28 @@ is 10.</p> 
     | 
|
| 
       2129 
2121 
     | 
    
         
             
            # ]
         
     | 
| 
       2130 
2122 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2131 
2123 
     | 
    
         
             
            </div>
         
     | 
| 
       2132 
     | 
    
         
            -
            <p>The value of <code class="docutils literal"><span class="pre">_score</span></code> by <code class="docutils literal"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
       2133 
     | 
    
         
            -
            then performs subtraction assignment operation such as  
     | 
| 
       2134 
     | 
    
         
            -
            <p>For example, the value of <code class="docutils literal"><span class="pre">_score</span></code> about the record which stores  
     | 
| 
      
 2124 
     | 
    
         
            +
            <p>The value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> by <code class="docutils literal notranslate"><span class="pre">--filter</span></code> is always 1 in this case,
         
     | 
| 
      
 2125 
     | 
    
         
            +
            then performs subtraction assignment operation such as ‘_score = _score ^ n_likes’ for each records.</p>
         
     | 
| 
      
 2126 
     | 
    
         
            +
            <p>For example, the value of <code class="docutils literal notranslate"><span class="pre">_score</span></code> about the record which stores “Good-bye Senna” as the <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       2135 
2127 
     | 
    
         
             
            is 3.</p>
         
     | 
| 
       2136 
     | 
    
         
            -
            <p>So the expression <code class="docutils literal"><span class="pre">1</span> <span class="pre">^</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
      
 2128 
     | 
    
         
            +
            <p>So the expression <code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">^</span> <span class="pre">3</span></code> is evaluated and stored to <code class="docutils literal notranslate"><span class="pre">_score</span></code> column as the execution result.</p>
         
     | 
| 
       2137 
2129 
     | 
    
         
             
            </div>
         
     | 
| 
       2138 
2130 
     | 
    
         
             
            </div>
         
     | 
| 
       2139 
2131 
     | 
    
         
             
            <div class="section" id="original-operators">
         
     | 
| 
       2140 
     | 
    
         
            -
            <h2>7. 
     | 
| 
      
 2132 
     | 
    
         
            +
            <h2>7.13.2.9. Original operators<a class="headerlink" href="#original-operators" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       2141 
2133 
     | 
    
         
             
            <p>Script syntax adds the original binary opearators to ECMAScript
         
     | 
| 
       2142 
2134 
     | 
    
         
             
            syntax. They operate search specific operations. They are starts with
         
     | 
| 
       2143 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">@</span></code> or <code class="docutils literal"><span class="pre">*</span></code>.</p>
         
     | 
| 
      
 2135 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">@</span></code> or <code class="docutils literal notranslate"><span class="pre">*</span></code>.</p>
         
     | 
| 
       2144 
2136 
     | 
    
         
             
            <div class="section" id="match-operator">
         
     | 
| 
       2145 
     | 
    
         
            -
            <span id="script-syntax-match-operator"></span><h3>7. 
     | 
| 
       2146 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@</span> <span class="pre">value</span></code>.</p>
         
     | 
| 
       2147 
     | 
    
         
            -
            <p>The operator searches <code class="docutils literal"><span class="pre">value</span></code> by inverted index of <code class="docutils literal"><span class="pre">column</span></code>.
         
     | 
| 
      
 2137 
     | 
    
         
            +
            <span id="script-syntax-match-operator"></span><h3>7.13.2.9.1. Match operator<a class="headerlink" href="#match-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 2138 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column</span> <span class="pre">@</span> <span class="pre">value</span></code>.</p>
         
     | 
| 
      
 2139 
     | 
    
         
            +
            <p>The operator searches <code class="docutils literal notranslate"><span class="pre">value</span></code> by inverted index of <code class="docutils literal notranslate"><span class="pre">column</span></code>.
         
     | 
| 
       2148 
2140 
     | 
    
         
             
            Normally, full text search is operated but tag search can be operated.
         
     | 
| 
       2149 
2141 
     | 
    
         
             
            Because tag search is also implemented by inverted index.</p>
         
     | 
| 
       2150 
2142 
     | 
    
         
             
            <p><a class="reference internal" href="query_syntax.html"><span class="doc">Query syntax</span></a> uses this operator by default.</p>
         
     | 
| 
       2151 
2143 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       2152 
2144 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2153 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'content @ "fast"' --output_columns content
         
     | 
| 
      
 2145 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'content @ "fast"' --output_columns content
         
     | 
| 
       2154 
2146 
     | 
    
         
             
            # [
         
     | 
| 
       2155 
2147 
     | 
    
         
             
            #   [
         
     | 
| 
       2156 
2148 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2179,26 +2171,26 @@ Because tag search is also implemented by inverted index.</p> 
     | 
|
| 
       2179 
2171 
     | 
    
         
             
            # ]
         
     | 
| 
       2180 
2172 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2181 
2173 
     | 
    
         
             
            </div>
         
     | 
| 
       2182 
     | 
    
         
            -
            <p>The expression matches records that contain a word <code class="docutils literal"><span class="pre">fast</span></code> in
         
     | 
| 
       2183 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">content</span></code> column value.</p>
         
     | 
| 
      
 2174 
     | 
    
         
            +
            <p>The expression matches records that contain a word <code class="docutils literal notranslate"><span class="pre">fast</span></code> in
         
     | 
| 
      
 2175 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">content</span></code> column value.</p>
         
     | 
| 
       2184 
2176 
     | 
    
         
             
            </div>
         
     | 
| 
       2185 
2177 
     | 
    
         
             
            <div class="section" id="prefix-search-operator">
         
     | 
| 
       2186 
     | 
    
         
            -
            <span id="script-syntax-prefix-search-operator"></span><h3>7. 
     | 
| 
       2187 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@^</span> <span class="pre">value</span></code>.</p>
         
     | 
| 
       2188 
     | 
    
         
            -
            <p>The operator does prefix search with <code class="docutils literal"><span class="pre">value</span></code>. Prefix search searches
         
     | 
| 
       2189 
     | 
    
         
            -
            records that contain a word that starts with <code class="docutils literal"><span class="pre">value</span></code>.</p>
         
     | 
| 
      
 2178 
     | 
    
         
            +
            <span id="script-syntax-prefix-search-operator"></span><h3>7.13.2.9.2. Prefix search operator<a class="headerlink" href="#prefix-search-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 2179 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column</span> <span class="pre">@^</span> <span class="pre">value</span></code>.</p>
         
     | 
| 
      
 2180 
     | 
    
         
            +
            <p>The operator does prefix search with <code class="docutils literal notranslate"><span class="pre">value</span></code>. Prefix search searches
         
     | 
| 
      
 2181 
     | 
    
         
            +
            records that contain a word that starts with <code class="docutils literal notranslate"><span class="pre">value</span></code>.</p>
         
     | 
| 
       2190 
2182 
     | 
    
         
             
            <p>You can use fast prefix search against a column. The column must be
         
     | 
| 
       2191 
2183 
     | 
    
         
             
            indexed and index table must be patricia trie table
         
     | 
| 
       2192 
     | 
    
         
            -
            (<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) or double array trie table
         
     | 
| 
       2193 
     | 
    
         
            -
            (<code class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></code>). You can also use fast prefix search against
         
     | 
| 
       2194 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">_key</span></code> pseudo column of patricia trie table or double array trie
         
     | 
| 
       2195 
     | 
    
         
            -
            table. You don 
     | 
| 
      
 2184 
     | 
    
         
            +
            (<code class="docutils literal notranslate"><span class="pre">TABLE_PAT_KEY</span></code>) or double array trie table
         
     | 
| 
      
 2185 
     | 
    
         
            +
            (<code class="docutils literal notranslate"><span class="pre">TABLE_DAT_KEY</span></code>). You can also use fast prefix search against
         
     | 
| 
      
 2186 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">_key</span></code> pseudo column of patricia trie table or double array trie
         
     | 
| 
      
 2187 
     | 
    
         
            +
            table. You don’t need to index <code class="docutils literal notranslate"><span class="pre">_key</span></code>.</p>
         
     | 
| 
       2196 
2188 
     | 
    
         
             
            <p>Prefix search can be used with other table types but it causes all
         
     | 
| 
       2197 
     | 
    
         
            -
            records scan. It 
     | 
| 
      
 2189 
     | 
    
         
            +
            records scan. It’s not problem for small records but it spends more
         
     | 
| 
       2198 
2190 
     | 
    
         
             
            time for large records.</p>
         
     | 
| 
       2199 
2191 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       2200 
2192 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2201 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter '_key @^ "Goo"' --output_columns _key
         
     | 
| 
      
 2193 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter '_key @^ "Goo"' --output_columns _key
         
     | 
| 
       2202 
2194 
     | 
    
         
             
            # [
         
     | 
| 
       2203 
2195 
     | 
    
         
             
            #   [
         
     | 
| 
       2204 
2196 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2228,38 +2220,38 @@ time for large records.</p> 
     | 
|
| 
       2228 
2220 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2229 
2221 
     | 
    
         
             
            </div>
         
     | 
| 
       2230 
2222 
     | 
    
         
             
            <p>The expression matches records that contain a word that starts with
         
     | 
| 
       2231 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">Goo</span></code> in <code class="docutils literal"><span class="pre">_key</span></code> pseudo column value. <code class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Senna</span></code> and
         
     | 
| 
       2232 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Tritonn</span></code> are matched with the expression.</p>
         
     | 
| 
      
 2223 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">Goo</span></code> in <code class="docutils literal notranslate"><span class="pre">_key</span></code> pseudo column value. <code class="docutils literal notranslate"><span class="pre">Good-bye</span> <span class="pre">Senna</span></code> and
         
     | 
| 
      
 2224 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">Good-bye</span> <span class="pre">Tritonn</span></code> are matched with the expression.</p>
         
     | 
| 
       2233 
2225 
     | 
    
         
             
            </div>
         
     | 
| 
       2234 
2226 
     | 
    
         
             
            <div class="section" id="suffix-search-operator">
         
     | 
| 
       2235 
     | 
    
         
            -
            <span id="script-syntax-suffix-search-operator"></span><h3>7. 
     | 
| 
       2236 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@$</span> <span class="pre">value</span></code>.</p>
         
     | 
| 
       2237 
     | 
    
         
            -
            <p>This operator does suffix search with <code class="docutils literal"><span class="pre">value</span></code>. Suffix search
         
     | 
| 
       2238 
     | 
    
         
            -
            searches records that contain a word that ends with <code class="docutils literal"><span class="pre">value</span></code>.</p>
         
     | 
| 
      
 2227 
     | 
    
         
            +
            <span id="script-syntax-suffix-search-operator"></span><h3>7.13.2.9.3. Suffix search operator<a class="headerlink" href="#suffix-search-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 2228 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column</span> <span class="pre">@$</span> <span class="pre">value</span></code>.</p>
         
     | 
| 
      
 2229 
     | 
    
         
            +
            <p>This operator does suffix search with <code class="docutils literal notranslate"><span class="pre">value</span></code>. Suffix search
         
     | 
| 
      
 2230 
     | 
    
         
            +
            searches records that contain a word that ends with <code class="docutils literal notranslate"><span class="pre">value</span></code>.</p>
         
     | 
| 
       2239 
2231 
     | 
    
         
             
            <p>You can use fast suffix search against a column. The column must be
         
     | 
| 
       2240 
2232 
     | 
    
         
             
            indexed and index table must be patricia trie table
         
     | 
| 
       2241 
     | 
    
         
            -
            (<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) with <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> flag. You can also use fast
         
     | 
| 
       2242 
     | 
    
         
            -
            suffix search against <code class="docutils literal"><span class="pre">_key</span></code> pseudo column of patricia trie table
         
     | 
| 
       2243 
     | 
    
         
            -
            (<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) with <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> flag. You don 
     | 
| 
       2244 
     | 
    
         
            -
            index <code class="docutils literal"><span class="pre">_key</span></code>. We recommended that you use index column based fast
         
     | 
| 
       2245 
     | 
    
         
            -
            suffix search instead of <code class="docutils literal"><span class="pre">_key</span></code> based fast suffix search. <code class="docutils literal"><span class="pre">_key</span></code>
         
     | 
| 
      
 2233 
     | 
    
         
            +
            (<code class="docutils literal notranslate"><span class="pre">TABLE_PAT_KEY</span></code>) with <code class="docutils literal notranslate"><span class="pre">KEY_WITH_SIS</span></code> flag. You can also use fast
         
     | 
| 
      
 2234 
     | 
    
         
            +
            suffix search against <code class="docutils literal notranslate"><span class="pre">_key</span></code> pseudo column of patricia trie table
         
     | 
| 
      
 2235 
     | 
    
         
            +
            (<code class="docutils literal notranslate"><span class="pre">TABLE_PAT_KEY</span></code>) with <code class="docutils literal notranslate"><span class="pre">KEY_WITH_SIS</span></code> flag. You don’t need to
         
     | 
| 
      
 2236 
     | 
    
         
            +
            index <code class="docutils literal notranslate"><span class="pre">_key</span></code>. We recommended that you use index column based fast
         
     | 
| 
      
 2237 
     | 
    
         
            +
            suffix search instead of <code class="docutils literal notranslate"><span class="pre">_key</span></code> based fast suffix search. <code class="docutils literal notranslate"><span class="pre">_key</span></code>
         
     | 
| 
       2246 
2238 
     | 
    
         
             
            based fast suffix search returns automatically registered
         
     | 
| 
       2247 
2239 
     | 
    
         
             
            substrings. (TODO: write document about suffix search and link to it
         
     | 
| 
       2248 
2240 
     | 
    
         
             
            from here.)</p>
         
     | 
| 
       2249 
2241 
     | 
    
         
             
            <div class="admonition note">
         
     | 
| 
       2250 
     | 
    
         
            -
            <p class=" 
     | 
| 
       2251 
     | 
    
         
            -
            <p 
     | 
| 
      
 2242 
     | 
    
         
            +
            <p class="admonition-title">Note</p>
         
     | 
| 
      
 2243 
     | 
    
         
            +
            <p>Fast suffix search can be used only for non-ASCII characters such
         
     | 
| 
       2252 
2244 
     | 
    
         
             
            as hiragana in Japanese. You cannot use fast suffix search for
         
     | 
| 
       2253 
2245 
     | 
    
         
             
            ASCII character.</p>
         
     | 
| 
       2254 
2246 
     | 
    
         
             
            </div>
         
     | 
| 
       2255 
2247 
     | 
    
         
             
            <p>Suffix search can be used with other table types or patricia trie
         
     | 
| 
       2256 
     | 
    
         
            -
            table without <code class="docutils literal"><span class="pre">KEY_WITH_SIS</span></code> flag but it causes all records
         
     | 
| 
       2257 
     | 
    
         
            -
            scan. It 
     | 
| 
      
 2248 
     | 
    
         
            +
            table without <code class="docutils literal notranslate"><span class="pre">KEY_WITH_SIS</span></code> flag but it causes all records
         
     | 
| 
      
 2249 
     | 
    
         
            +
            scan. It’s not problem for small records but it spends more time for
         
     | 
| 
       2258 
2250 
     | 
    
         
             
            large records.</p>
         
     | 
| 
       2259 
2251 
     | 
    
         
             
            <p>Here is a simple example. It uses fast suffix search for hiragana in
         
     | 
| 
       2260 
2252 
     | 
    
         
             
            Japanese that is one of non-ASCII characters.</p>
         
     | 
| 
       2261 
2253 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2262 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>table_create Titles TABLE_NO_KEY
         
     | 
| 
      
 2254 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>table_create Titles TABLE_NO_KEY
         
     | 
| 
       2263 
2255 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
       2264 
2256 
     | 
    
         
             
            column_create Titles content COLUMN_SCALAR ShortText
         
     | 
| 
       2265 
2257 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -2310,40 +2302,40 @@ select Titles --query 'content:$んが' 
     | 
|
| 
       2310 
2302 
     | 
    
         
             
            # ]
         
     | 
| 
       2311 
2303 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2312 
2304 
     | 
    
         
             
            </div>
         
     | 
| 
       2313 
     | 
    
         
            -
            <p>The expression matches records that have value that ends with <code class="docutils literal"><span class="pre">んが</span></code>
         
     | 
| 
       2314 
     | 
    
         
            -
            in <code class="docutils literal"><span class="pre">content</span></code> column value. <code class="docutils literal"><span class="pre">ぐるんが</span></code> and <code class="docutils literal"><span class="pre">むるんが</span></code> are matched
         
     | 
| 
      
 2305 
     | 
    
         
            +
            <p>The expression matches records that have value that ends with <code class="docutils literal notranslate"><span class="pre">んが</span></code>
         
     | 
| 
      
 2306 
     | 
    
         
            +
            in <code class="docutils literal notranslate"><span class="pre">content</span></code> column value. <code class="docutils literal notranslate"><span class="pre">ぐるんが</span></code> and <code class="docutils literal notranslate"><span class="pre">むるんが</span></code> are matched
         
     | 
| 
       2315 
2307 
     | 
    
         
             
            with the expression.</p>
         
     | 
| 
       2316 
2308 
     | 
    
         
             
            </div>
         
     | 
| 
       2317 
2309 
     | 
    
         
             
            <div class="section" id="near-search-operator">
         
     | 
| 
       2318 
     | 
    
         
            -
            <span id="script-syntax-near-search-operator"></span><h3>7. 
     | 
| 
      
 2310 
     | 
    
         
            +
            <span id="script-syntax-near-search-operator"></span><h3>7.13.2.9.4. Near search operator<a class="headerlink" href="#near-search-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       2319 
2311 
     | 
    
         
             
            <p>Its syntax is one of them:</p>
         
     | 
| 
       2320 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>column *N "word1 word2 ..."
         
     | 
| 
      
 2312 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>column *N "word1 word2 ..."
         
     | 
| 
       2321 
2313 
     | 
    
         
             
            column *N${MAX_INTERVAL} "word1 word2 ..."
         
     | 
| 
       2322 
2314 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2323 
2315 
     | 
    
         
             
            </div>
         
     | 
| 
       2324 
2316 
     | 
    
         
             
            <p>Here are the examples of the second form:</p>
         
     | 
| 
       2325 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>column *N29 "word1 word2 ..."
         
     | 
| 
      
 2317 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>column *N29 "word1 word2 ..."
         
     | 
| 
       2326 
2318 
     | 
    
         
             
            column *N-1 "word1 word2 ..."
         
     | 
| 
       2327 
2319 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2328 
2320 
     | 
    
         
             
            </div>
         
     | 
| 
       2329 
     | 
    
         
            -
            <p>The first example means that <code class="docutils literal"><span class="pre">29</span></code> is used for the max interval.</p>
         
     | 
| 
       2330 
     | 
    
         
            -
            <p>The second example means that <code class="docutils literal"><span class="pre">-1</span></code> is used for the max interval.
         
     | 
| 
       2331 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">-1</span></code> max interval means no limit.</p>
         
     | 
| 
       2332 
     | 
    
         
            -
            <p>The operator does near search with words <code class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span> <span class="pre">...</span></code>. Near
         
     | 
| 
      
 2321 
     | 
    
         
            +
            <p>The first example means that <code class="docutils literal notranslate"><span class="pre">29</span></code> is used for the max interval.</p>
         
     | 
| 
      
 2322 
     | 
    
         
            +
            <p>The second example means that <code class="docutils literal notranslate"><span class="pre">-1</span></code> is used for the max interval.
         
     | 
| 
      
 2323 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">-1</span></code> max interval means no limit.</p>
         
     | 
| 
      
 2324 
     | 
    
         
            +
            <p>The operator does near search with words <code class="docutils literal notranslate"><span class="pre">word1</span> <span class="pre">word2</span> <span class="pre">...</span></code>. Near
         
     | 
| 
       2333 
2325 
     | 
    
         
             
            search searches records that contain the words and the words are
         
     | 
| 
       2334 
2326 
     | 
    
         
             
            appeared in the specified order and the max interval.</p>
         
     | 
| 
       2335 
     | 
    
         
            -
            <p>The max interval is <code class="docutils literal"><span class="pre">10</span></code> by default. The unit of the max interval is
         
     | 
| 
      
 2327 
     | 
    
         
            +
            <p>The max interval is <code class="docutils literal notranslate"><span class="pre">10</span></code> by default. The unit of the max interval is
         
     | 
| 
       2336 
2328 
     | 
    
         
             
            the number of characters in N-gram family tokenizers and the number of
         
     | 
| 
       2337 
2329 
     | 
    
         
             
            words in morphological analysis family tokenizers.</p>
         
     | 
| 
       2338 
     | 
    
         
            -
            <p>(TODO: Add a description about <code class="docutils literal"><span class="pre">TokenBigram</span></code> doesn 
     | 
| 
      
 2330 
     | 
    
         
            +
            <p>(TODO: Add a description about <code class="docutils literal notranslate"><span class="pre">TokenBigram</span></code> doesn’t split ASCII
         
     | 
| 
       2339 
2331 
     | 
    
         
             
            only word into tokens. So the unit for ASCII words with
         
     | 
| 
       2340 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">TokenBigram</span></code> is the number of words even if <code class="docutils literal"><span class="pre">TokenBigram</span></code> is a
         
     | 
| 
      
 2332 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">TokenBigram</span></code> is the number of words even if <code class="docutils literal notranslate"><span class="pre">TokenBigram</span></code> is a
         
     | 
| 
       2341 
2333 
     | 
    
         
             
            N-gram family tokenizer.)</p>
         
     | 
| 
       2342 
2334 
     | 
    
         
             
            <p>Note that an index column for full text search must be defined for
         
     | 
| 
       2343 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">column</span></code>.</p>
         
     | 
| 
      
 2335 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">column</span></code>.</p>
         
     | 
| 
       2344 
2336 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       2345 
2337 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2346 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'content *N "I fast"'      --output_columns content
         
     | 
| 
      
 2338 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'content *N "I fast"'      --output_columns content
         
     | 
| 
       2347 
2339 
     | 
    
         
             
            # [
         
     | 
| 
       2348 
2340 
     | 
    
         
             
            #   [
         
     | 
| 
       2349 
2341 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2395,33 +2387,33 @@ select Entries --filter 'content *N "also Really"' --output_co 
     | 
|
| 
       2395 
2387 
     | 
    
         
             
            # ]
         
     | 
| 
       2396 
2388 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2397 
2389 
     | 
    
         
             
            </div>
         
     | 
| 
       2398 
     | 
    
         
            -
            <p>The first expression matches records that contain <code class="docutils literal"><span class="pre">I</span></code> and <code class="docutils literal"><span class="pre">fast</span></code>
         
     | 
| 
      
 2390 
     | 
    
         
            +
            <p>The first expression matches records that contain <code class="docutils literal notranslate"><span class="pre">I</span></code> and <code class="docutils literal notranslate"><span class="pre">fast</span></code>
         
     | 
| 
       2399 
2391 
     | 
    
         
             
            and the max interval of those words are in 10 words. So the record
         
     | 
| 
       2400 
     | 
    
         
            -
            that its content is <code class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span> <span class="pre">also</span> <span class="pre">very</span>
         
     | 
| 
       2401 
     | 
    
         
            -
            <span class="pre">fast!</span> <span class="pre">...</span></code> is matched. The number of words between <code class="docutils literal"><span class="pre">I</span></code> and <code class="docutils literal"><span class="pre">fast</span></code>
         
     | 
| 
      
 2392 
     | 
    
         
            +
            that its content is <code class="docutils literal notranslate"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span> <span class="pre">also</span> <span class="pre">very</span>
         
     | 
| 
      
 2393 
     | 
    
         
            +
            <span class="pre">fast!</span> <span class="pre">...</span></code> is matched. The number of words between <code class="docutils literal notranslate"><span class="pre">I</span></code> and <code class="docutils literal notranslate"><span class="pre">fast</span></code>
         
     | 
| 
       2402 
2394 
     | 
    
         
             
            is just 10.</p>
         
     | 
| 
       2403 
     | 
    
         
            -
            <p>The second expression matches records that contain <code class="docutils literal"><span class="pre">I</span></code> and
         
     | 
| 
       2404 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">Really</span></code> and the max interval of those words are in 10 words. So the
         
     | 
| 
       2405 
     | 
    
         
            -
            record that its content is <code class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span> <span class="pre">also</span>
         
     | 
| 
      
 2395 
     | 
    
         
            +
            <p>The second expression matches records that contain <code class="docutils literal notranslate"><span class="pre">I</span></code> and
         
     | 
| 
      
 2396 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">Really</span></code> and the max interval of those words are in 10 words. So the
         
     | 
| 
      
 2397 
     | 
    
         
            +
            record that its content is <code class="docutils literal notranslate"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span> <span class="pre">also</span>
         
     | 
| 
       2406 
2398 
     | 
    
         
             
            <span class="pre">very</span> <span class="pre">fast!</span> <span class="pre">Really</span> <span class="pre">fast!</span></code> is not matched. The number of words between
         
     | 
| 
       2407 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">I</span></code> and <code class="docutils literal"><span class="pre">Really</span></code> is 11.</p>
         
     | 
| 
       2408 
     | 
    
         
            -
            <p>The third expression matches records that contain <code class="docutils literal"><span class="pre">also</span></code> and
         
     | 
| 
       2409 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">Really</span></code> and the max interval of those words are in 10 words. So
         
     | 
| 
       2410 
     | 
    
         
            -
            the record that its content is <code class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">st</span> <span class="pre">arted</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span>
         
     | 
| 
      
 2399 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">I</span></code> and <code class="docutils literal notranslate"><span class="pre">Really</span></code> is 11.</p>
         
     | 
| 
      
 2400 
     | 
    
         
            +
            <p>The third expression matches records that contain <code class="docutils literal notranslate"><span class="pre">also</span></code> and
         
     | 
| 
      
 2401 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">Really</span></code> and the max interval of those words are in 10 words. So
         
     | 
| 
      
 2402 
     | 
    
         
            +
            the record that its content is <code class="docutils literal notranslate"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">st</span> <span class="pre">arted</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span>
         
     | 
| 
       2411 
2403 
     | 
    
         
             
            <span class="pre">also</span> <span class="pre">very</span> <span class="pre">fast!</span> <span class="pre">Really</span> <span class="pre">fast!</span></code> is matched. The number of words between
         
     | 
| 
       2412 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">also</span></code> and <code class="docutils literal"><span class="pre">Really</span></code> is 10.</p>
         
     | 
| 
      
 2404 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">also</span></code> and <code class="docutils literal notranslate"><span class="pre">Really</span></code> is 10.</p>
         
     | 
| 
       2413 
2405 
     | 
    
         
             
            </div>
         
     | 
| 
       2414 
2406 
     | 
    
         
             
            <div class="section" id="similar-search">
         
     | 
| 
       2415 
     | 
    
         
            -
            <span id="script-syntax-similar-search-operator"></span><h3>7. 
     | 
| 
       2416 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">*S</span> <span class="pre">"document"</span></code>.</p>
         
     | 
| 
       2417 
     | 
    
         
            -
            <p>The operator does similar search with document <code class="docutils literal"><span class="pre">document</span></code>. Similar
         
     | 
| 
      
 2407 
     | 
    
         
            +
            <span id="script-syntax-similar-search-operator"></span><h3>7.13.2.9.5. Similar search<a class="headerlink" href="#similar-search" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 2408 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column</span> <span class="pre">*S</span> <span class="pre">"document"</span></code>.</p>
         
     | 
| 
      
 2409 
     | 
    
         
            +
            <p>The operator does similar search with document <code class="docutils literal notranslate"><span class="pre">document</span></code>. Similar
         
     | 
| 
       2418 
2410 
     | 
    
         
             
            search searches records that have similar content to
         
     | 
| 
       2419 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">document</span></code>.</p>
         
     | 
| 
      
 2411 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">document</span></code>.</p>
         
     | 
| 
       2420 
2412 
     | 
    
         
             
            <p>Note that an index column for full text search must be defined for
         
     | 
| 
       2421 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">column</span></code>.</p>
         
     | 
| 
      
 2413 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">column</span></code>.</p>
         
     | 
| 
       2422 
2414 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       2423 
2415 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2424 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'content *S "I migrated all Solr system!"' --output_columns content
         
     | 
| 
      
 2416 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'content *S "I migrated all Solr system!"' --output_columns content
         
     | 
| 
       2425 
2417 
     | 
    
         
             
            # [
         
     | 
| 
       2426 
2418 
     | 
    
         
             
            #   [
         
     | 
| 
       2427 
2419 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2450,23 +2442,25 @@ search searches records that have similar content to 
     | 
|
| 
       2450 
2442 
     | 
    
         
             
            # ]
         
     | 
| 
       2451 
2443 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2452 
2444 
     | 
    
         
             
            </div>
         
     | 
| 
       2453 
     | 
    
         
            -
            <p>The expression matches records that have similar content to <code class="docutils literal"><span class="pre">I</span>
         
     | 
| 
       2454 
     | 
    
         
            -
            <span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></code>. In this case, records that have <code class="docutils literal"><span class="pre">I</span>
         
     | 
| 
      
 2445 
     | 
    
         
            +
            <p>The expression matches records that have similar content to <code class="docutils literal notranslate"><span class="pre">I</span>
         
     | 
| 
      
 2446 
     | 
    
         
            +
            <span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></code>. In this case, records that have <code class="docutils literal notranslate"><span class="pre">I</span>
         
     | 
| 
       2455 
2447 
     | 
    
         
             
            <span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">XXX</span> <span class="pre">system!</span></code> content are matched.</p>
         
     | 
| 
      
 2448 
     | 
    
         
            +
            <p>You should use <code class="docutils literal notranslate"><span class="pre">TokenMecab</span></code> tokenizer for similar search against Japanese documents.
         
     | 
| 
      
 2449 
     | 
    
         
            +
            Because <code class="docutils literal notranslate"><span class="pre">TokenMecab</span></code> will tokenize target documents to almost words, it improves similar search precision.</p>
         
     | 
| 
       2456 
2450 
     | 
    
         
             
            </div>
         
     | 
| 
       2457 
2451 
     | 
    
         
             
            <div class="section" id="term-extract-operator">
         
     | 
| 
       2458 
     | 
    
         
            -
            <span id="script-syntax-term-extract-operator"></span><h3>7. 
     | 
| 
       2459 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">_key</span> <span class="pre">*T</span> <span class="pre">"document"</span></code>.</p>
         
     | 
| 
       2460 
     | 
    
         
            -
            <p>The operator extracts terms from <code class="docutils literal"><span class="pre">document</span></code>. Terms must be
         
     | 
| 
       2461 
     | 
    
         
            -
            registered as keys of the table of <code class="docutils literal"><span class="pre">_key</span></code>.</p>
         
     | 
| 
       2462 
     | 
    
         
            -
            <p>Note that the table must be patricia trie (<code class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></code>) or
         
     | 
| 
       2463 
     | 
    
         
            -
            double array trie (<code class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></code>). You can 
     | 
| 
       2464 
     | 
    
         
            -
            (<code class="docutils literal"><span class="pre">TABLE_HASH_KEY</span></code>) and array (<code class="docutils literal"><span class="pre">TABLE_NO_KEY</span></code>) because they don 
     | 
| 
      
 2452 
     | 
    
         
            +
            <span id="script-syntax-term-extract-operator"></span><h3>7.13.2.9.6. Term extract operator<a class="headerlink" href="#term-extract-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 2453 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">_key</span> <span class="pre">*T</span> <span class="pre">"document"</span></code>.</p>
         
     | 
| 
      
 2454 
     | 
    
         
            +
            <p>The operator extracts terms from <code class="docutils literal notranslate"><span class="pre">document</span></code>. Terms must be
         
     | 
| 
      
 2455 
     | 
    
         
            +
            registered as keys of the table of <code class="docutils literal notranslate"><span class="pre">_key</span></code>.</p>
         
     | 
| 
      
 2456 
     | 
    
         
            +
            <p>Note that the table must be patricia trie (<code class="docutils literal notranslate"><span class="pre">TABLE_PAT_KEY</span></code>) or
         
     | 
| 
      
 2457 
     | 
    
         
            +
            double array trie (<code class="docutils literal notranslate"><span class="pre">TABLE_DAT_KEY</span></code>). You can’t use hash table
         
     | 
| 
      
 2458 
     | 
    
         
            +
            (<code class="docutils literal notranslate"><span class="pre">TABLE_HASH_KEY</span></code>) and array (<code class="docutils literal notranslate"><span class="pre">TABLE_NO_KEY</span></code>) because they don’t
         
     | 
| 
       2465 
2459 
     | 
    
         
             
            support longest common prefix search. Longest common prefix search is
         
     | 
| 
       2466 
2460 
     | 
    
         
             
            used to implement the operator.</p>
         
     | 
| 
       2467 
2461 
     | 
    
         
             
            <p>Here is a simple example.</p>
         
     | 
| 
       2468 
2462 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2469 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>table_create Words TABLE_PAT_KEY ShortText --normalizer NormalizerAuto
         
     | 
| 
      
 2463 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>table_create Words TABLE_PAT_KEY ShortText --normalizer NormalizerAuto
         
     | 
| 
       2470 
2464 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
       2471 
2465 
     | 
    
         
             
            load --table Words
         
     | 
| 
       2472 
2466 
     | 
    
         
             
            [
         
     | 
| 
         @@ -2505,28 +2499,28 @@ select Words --filter '_key *T "Groonga is the successor project to Sen 
     | 
|
| 
       2505 
2499 
     | 
    
         
             
            # ]
         
     | 
| 
       2506 
2500 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2507 
2501 
     | 
    
         
             
            </div>
         
     | 
| 
       2508 
     | 
    
         
            -
            <p>The expression extrcts terms that included in document <code class="docutils literal"><span class="pre">Groonga</span> <span class="pre">is</span>
         
     | 
| 
       2509 
     | 
    
         
            -
            <span class="pre">the</span> <span class="pre">successor</span> <span class="pre">project</span> <span class="pre">to</span> <span class="pre">Senna.</span></code>. In this case, <code class="docutils literal"><span class="pre">NormalizerAuto</span></code>
         
     | 
| 
       2510 
     | 
    
         
            -
            normalizer is specified to <code class="docutils literal"><span class="pre">Words</span></code>. So <code class="docutils literal"><span class="pre">Groonga</span></code> can be extracted
         
     | 
| 
       2511 
     | 
    
         
            -
            even if it is loaded as <code class="docutils literal"><span class="pre">groonga</span></code> into <code class="docutils literal"><span class="pre">Words</span></code>. All of extracted
         
     | 
| 
      
 2502 
     | 
    
         
            +
            <p>The expression extrcts terms that included in document <code class="docutils literal notranslate"><span class="pre">Groonga</span> <span class="pre">is</span>
         
     | 
| 
      
 2503 
     | 
    
         
            +
            <span class="pre">the</span> <span class="pre">successor</span> <span class="pre">project</span> <span class="pre">to</span> <span class="pre">Senna.</span></code>. In this case, <code class="docutils literal notranslate"><span class="pre">NormalizerAuto</span></code>
         
     | 
| 
      
 2504 
     | 
    
         
            +
            normalizer is specified to <code class="docutils literal notranslate"><span class="pre">Words</span></code>. So <code class="docutils literal notranslate"><span class="pre">Groonga</span></code> can be extracted
         
     | 
| 
      
 2505 
     | 
    
         
            +
            even if it is loaded as <code class="docutils literal notranslate"><span class="pre">groonga</span></code> into <code class="docutils literal notranslate"><span class="pre">Words</span></code>. All of extracted
         
     | 
| 
       2512 
2506 
     | 
    
         
             
            terms are also normalized.</p>
         
     | 
| 
       2513 
2507 
     | 
    
         
             
            </div>
         
     | 
| 
       2514 
2508 
     | 
    
         
             
            <div class="section" id="regular-expression-operator">
         
     | 
| 
       2515 
     | 
    
         
            -
            <span id="script-syntax-regular-expression-operator"></span><h3>7. 
     | 
| 
      
 2509 
     | 
    
         
            +
            <span id="script-syntax-regular-expression-operator"></span><h3>7.13.2.9.7. Regular expression operator<a class="headerlink" href="#regular-expression-operator" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       2516 
2510 
     | 
    
         
             
            <div class="versionadded">
         
     | 
| 
       2517 
     | 
    
         
            -
            <p><span class="versionmodified">New in version 5.0.1.</span></p>
         
     | 
| 
      
 2511 
     | 
    
         
            +
            <p><span class="versionmodified added">New in version 5.0.1.</span></p>
         
     | 
| 
       2518 
2512 
     | 
    
         
             
            </div>
         
     | 
| 
       2519 
     | 
    
         
            -
            <p>Its syntax is <code class="docutils literal"><span class="pre">column</span> <span class="pre">@~</span> <span class="pre">"pattern"</span></code>.</p>
         
     | 
| 
      
 2513 
     | 
    
         
            +
            <p>Its syntax is <code class="docutils literal notranslate"><span class="pre">column</span> <span class="pre">@~</span> <span class="pre">"pattern"</span></code>.</p>
         
     | 
| 
       2520 
2514 
     | 
    
         
             
            <p>The operator searches records by the regular expression
         
     | 
| 
       2521 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">pattern</span></code>. If a record 
     | 
| 
      
 2515 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">pattern</span></code>. If a record’s <code class="docutils literal notranslate"><span class="pre">column</span></code> value is matched to <code class="docutils literal notranslate"><span class="pre">pattern</span></code>,
         
     | 
| 
       2522 
2516 
     | 
    
         
             
            the record is matched.</p>
         
     | 
| 
       2523 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">pattern</span></code> must be valid regular expression syntax. See
         
     | 
| 
      
 2517 
     | 
    
         
            +
            <p><code class="docutils literal notranslate"><span class="pre">pattern</span></code> must be valid regular expression syntax. See
         
     | 
| 
       2524 
2518 
     | 
    
         
             
            <a class="reference internal" href="../regular_expression.html"><span class="doc">Regular expression</span></a> about regular expression syntax
         
     | 
| 
       2525 
2519 
     | 
    
         
             
            details.</p>
         
     | 
| 
       2526 
     | 
    
         
            -
            <p>The following example uses <code class="docutils literal"><span class="pre">.roonga</span></code> as pattern. It matches
         
     | 
| 
       2527 
     | 
    
         
            -
            <code class="docutils literal"><span class="pre">Groonga</span></code>, <code class="docutils literal"><span class="pre">Mroonga</span></code> and so on.</p>
         
     | 
| 
      
 2520 
     | 
    
         
            +
            <p>The following example uses <code class="docutils literal notranslate"><span class="pre">.roonga</span></code> as pattern. It matches
         
     | 
| 
      
 2521 
     | 
    
         
            +
            <code class="docutils literal notranslate"><span class="pre">Groonga</span></code>, <code class="docutils literal notranslate"><span class="pre">Mroonga</span></code> and so on.</p>
         
     | 
| 
       2528 
2522 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2529 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --filter 'content @~ ".roonga"'
         
     | 
| 
      
 2523 
     | 
    
         
            +
            <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>select Entries --filter 'content @~ ".roonga"'
         
     | 
| 
       2530 
2524 
     | 
    
         
             
            # [
         
     | 
| 
       2531 
2525 
     | 
    
         
             
            #   [
         
     | 
| 
       2532 
2526 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2575,7 +2569,7 @@ details.</p> 
     | 
|
| 
       2575 
2569 
     | 
    
         
             
            </div>
         
     | 
| 
       2576 
2570 
     | 
    
         
             
            <p>In most cases, regular expression is evaluated sequentially. So it may
         
     | 
| 
       2577 
2571 
     | 
    
         
             
            be slow against many records.</p>
         
     | 
| 
       2578 
     | 
    
         
            -
            <p>In some cases, Groonga evaluates regular expression by index. It 
     | 
| 
      
 2572 
     | 
    
         
            +
            <p>In some cases, Groonga evaluates regular expression by index. It’s
         
     | 
| 
       2579 
2573 
     | 
    
         
             
            very fast. See <a class="reference internal" href="../regular_expression.html"><span class="doc">Regular expression</span></a> for details.</p>
         
     | 
| 
       2580 
2574 
     | 
    
         
             
            </div>
         
     | 
| 
       2581 
2575 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -2587,87 +2581,87 @@ very fast. See <a class="reference internal" href="../regular_expression.html">< 
     | 
|
| 
       2587 
2581 
     | 
    
         
             
                  </div>
         
     | 
| 
       2588 
2582 
     | 
    
         
             
                  <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
         
     | 
| 
       2589 
2583 
     | 
    
         
             
                    <div class="sphinxsidebarwrapper">
         
     | 
| 
       2590 
     | 
    
         
            -
              <h3><a href="../../index.html">Table  
     | 
| 
      
 2584 
     | 
    
         
            +
              <h3><a href="../../index.html">Table of Contents</a></h3>
         
     | 
| 
       2591 
2585 
     | 
    
         
             
              <ul>
         
     | 
| 
       2592 
     | 
    
         
            -
            <li><a class="reference internal" href="#">7. 
     | 
| 
       2593 
     | 
    
         
            -
            <li><a class="reference internal" href="#security">7. 
     | 
| 
       2594 
     | 
    
         
            -
            <li><a class="reference internal" href="#sample-data">7. 
     | 
| 
       2595 
     | 
    
         
            -
            <li><a class="reference internal" href="#literals">7. 
     | 
| 
       2596 
     | 
    
         
            -
            <li><a class="reference internal" href="#integer">7. 
     | 
| 
       2597 
     | 
    
         
            -
            <li><a class="reference internal" href="#float">7. 
     | 
| 
       2598 
     | 
    
         
            -
            <li><a class="reference internal" href="#string">7. 
     | 
| 
       2599 
     | 
    
         
            -
            <li><a class="reference internal" href="#boolean">7. 
     | 
| 
       2600 
     | 
    
         
            -
            <li><a class="reference internal" href="#null">7. 
     | 
| 
       2601 
     | 
    
         
            -
            <li><a class="reference internal" href="#time">7. 
     | 
| 
       2602 
     | 
    
         
            -
            <li><a class="reference internal" href="#geo-point">7. 
     | 
| 
       2603 
     | 
    
         
            -
            <li><a class="reference internal" href="#array">7. 
     | 
| 
       2604 
     | 
    
         
            -
            <li><a class="reference internal" href="#object-literal">7. 
     | 
| 
      
 2586 
     | 
    
         
            +
            <li><a class="reference internal" href="#">7.13.2. Script syntax</a><ul>
         
     | 
| 
      
 2587 
     | 
    
         
            +
            <li><a class="reference internal" href="#security">7.13.2.1. Security</a></li>
         
     | 
| 
      
 2588 
     | 
    
         
            +
            <li><a class="reference internal" href="#sample-data">7.13.2.2. Sample data</a></li>
         
     | 
| 
      
 2589 
     | 
    
         
            +
            <li><a class="reference internal" href="#literals">7.13.2.3. Literals</a><ul>
         
     | 
| 
      
 2590 
     | 
    
         
            +
            <li><a class="reference internal" href="#integer">7.13.2.3.1. Integer</a></li>
         
     | 
| 
      
 2591 
     | 
    
         
            +
            <li><a class="reference internal" href="#float">7.13.2.3.2. Float</a></li>
         
     | 
| 
      
 2592 
     | 
    
         
            +
            <li><a class="reference internal" href="#string">7.13.2.3.3. String</a></li>
         
     | 
| 
      
 2593 
     | 
    
         
            +
            <li><a class="reference internal" href="#boolean">7.13.2.3.4. Boolean</a></li>
         
     | 
| 
      
 2594 
     | 
    
         
            +
            <li><a class="reference internal" href="#null">7.13.2.3.5. Null</a></li>
         
     | 
| 
      
 2595 
     | 
    
         
            +
            <li><a class="reference internal" href="#time">7.13.2.3.6. Time</a></li>
         
     | 
| 
      
 2596 
     | 
    
         
            +
            <li><a class="reference internal" href="#geo-point">7.13.2.3.7. Geo point</a></li>
         
     | 
| 
      
 2597 
     | 
    
         
            +
            <li><a class="reference internal" href="#array">7.13.2.3.8. Array</a></li>
         
     | 
| 
      
 2598 
     | 
    
         
            +
            <li><a class="reference internal" href="#object-literal">7.13.2.3.9. Object literal</a></li>
         
     | 
| 
       2605 
2599 
     | 
    
         
             
            </ul>
         
     | 
| 
       2606 
2600 
     | 
    
         
             
            </li>
         
     | 
| 
       2607 
     | 
    
         
            -
            <li><a class="reference internal" href="#control-syntaxes">7. 
     | 
| 
       2608 
     | 
    
         
            -
            <li><a class="reference internal" href="#grouping">7. 
     | 
| 
       2609 
     | 
    
         
            -
            <li><a class="reference internal" href="#function-call">7. 
     | 
| 
       2610 
     | 
    
         
            -
            <li><a class="reference internal" href="#basic-operators">7. 
     | 
| 
       2611 
     | 
    
         
            -
            <li><a class="reference internal" href="#arithmetic-operators">7. 
     | 
| 
       2612 
     | 
    
         
            -
            <li><a class="reference internal" href="#addition-operator">7. 
     | 
| 
       2613 
     | 
    
         
            -
            <li><a class="reference internal" href="#subtraction-operator">7. 
     | 
| 
       2614 
     | 
    
         
            -
            <li><a class="reference internal" href="#multiplication-operator">7. 
     | 
| 
       2615 
     | 
    
         
            -
            <li><a class="reference internal" href="#division-operator">7. 
     | 
| 
      
 2601 
     | 
    
         
            +
            <li><a class="reference internal" href="#control-syntaxes">7.13.2.4. Control syntaxes</a></li>
         
     | 
| 
      
 2602 
     | 
    
         
            +
            <li><a class="reference internal" href="#grouping">7.13.2.5. Grouping</a></li>
         
     | 
| 
      
 2603 
     | 
    
         
            +
            <li><a class="reference internal" href="#function-call">7.13.2.6. Function call</a></li>
         
     | 
| 
      
 2604 
     | 
    
         
            +
            <li><a class="reference internal" href="#basic-operators">7.13.2.7. Basic operators</a><ul>
         
     | 
| 
      
 2605 
     | 
    
         
            +
            <li><a class="reference internal" href="#arithmetic-operators">7.13.2.7.1. Arithmetic operators</a><ul>
         
     | 
| 
      
 2606 
     | 
    
         
            +
            <li><a class="reference internal" href="#addition-operator">7.13.2.7.1.1. Addition operator</a></li>
         
     | 
| 
      
 2607 
     | 
    
         
            +
            <li><a class="reference internal" href="#subtraction-operator">7.13.2.7.1.2. Subtraction operator</a></li>
         
     | 
| 
      
 2608 
     | 
    
         
            +
            <li><a class="reference internal" href="#multiplication-operator">7.13.2.7.1.3. Multiplication operator</a></li>
         
     | 
| 
      
 2609 
     | 
    
         
            +
            <li><a class="reference internal" href="#division-operator">7.13.2.7.1.4. Division operator</a></li>
         
     | 
| 
       2616 
2610 
     | 
    
         
             
            </ul>
         
     | 
| 
       2617 
2611 
     | 
    
         
             
            </li>
         
     | 
| 
       2618 
     | 
    
         
            -
            <li><a class="reference internal" href="#logical-operators">7. 
     | 
| 
       2619 
     | 
    
         
            -
            <li><a class="reference internal" href="#logical-not-operator">7. 
     | 
| 
       2620 
     | 
    
         
            -
            <li><a class="reference internal" href="#logical-and-operator">7. 
     | 
| 
       2621 
     | 
    
         
            -
            <li><a class="reference internal" href="#logical-or-operator">7. 
     | 
| 
       2622 
     | 
    
         
            -
            <li><a class="reference internal" href="#logical-and-not-operator">7. 
     | 
| 
      
 2612 
     | 
    
         
            +
            <li><a class="reference internal" href="#logical-operators">7.13.2.7.2. Logical operators</a><ul>
         
     | 
| 
      
 2613 
     | 
    
         
            +
            <li><a class="reference internal" href="#logical-not-operator">7.13.2.7.2.1. Logical NOT operator</a></li>
         
     | 
| 
      
 2614 
     | 
    
         
            +
            <li><a class="reference internal" href="#logical-and-operator">7.13.2.7.2.2. Logical AND operator</a></li>
         
     | 
| 
      
 2615 
     | 
    
         
            +
            <li><a class="reference internal" href="#logical-or-operator">7.13.2.7.2.3. Logical OR operator</a></li>
         
     | 
| 
      
 2616 
     | 
    
         
            +
            <li><a class="reference internal" href="#logical-and-not-operator">7.13.2.7.2.4. Logical AND NOT operator</a></li>
         
     | 
| 
       2623 
2617 
     | 
    
         
             
            </ul>
         
     | 
| 
       2624 
2618 
     | 
    
         
             
            </li>
         
     | 
| 
       2625 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-operators">7. 
     | 
| 
       2626 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-not-operator">7. 
     | 
| 
       2627 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-and-operator">7. 
     | 
| 
      
 2619 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-operators">7.13.2.7.3. Bitwise operators</a><ul>
         
     | 
| 
      
 2620 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-not-operator">7.13.2.7.3.1. Bitwise NOT operator</a></li>
         
     | 
| 
      
 2621 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-and-operator">7.13.2.7.3.2. Bitwise AND operator</a></li>
         
     | 
| 
       2628 
2622 
     | 
    
         
             
            </ul>
         
     | 
| 
       2629 
2623 
     | 
    
         
             
            </li>
         
     | 
| 
       2630 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-or-operator">7. 
     | 
| 
       2631 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-xor-operator">7. 
     | 
| 
       2632 
     | 
    
         
            -
            <li><a class="reference internal" href="#shift-operators">7. 
     | 
| 
       2633 
     | 
    
         
            -
            <li><a class="reference internal" href="#left-shift-operator">7. 
     | 
| 
       2634 
     | 
    
         
            -
            <li><a class="reference internal" href="#signed-right-shift-operator">7. 
     | 
| 
       2635 
     | 
    
         
            -
            <li><a class="reference internal" href="#unsigned-right-shift-operator">7. 
     | 
| 
      
 2624 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-or-operator">7.13.2.7.4. Bitwise OR operator</a></li>
         
     | 
| 
      
 2625 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-xor-operator">7.13.2.7.5. Bitwise XOR operator</a></li>
         
     | 
| 
      
 2626 
     | 
    
         
            +
            <li><a class="reference internal" href="#shift-operators">7.13.2.7.6. Shift operators</a><ul>
         
     | 
| 
      
 2627 
     | 
    
         
            +
            <li><a class="reference internal" href="#left-shift-operator">7.13.2.7.6.1. Left shift operator</a></li>
         
     | 
| 
      
 2628 
     | 
    
         
            +
            <li><a class="reference internal" href="#signed-right-shift-operator">7.13.2.7.6.2. Signed right shift operator</a></li>
         
     | 
| 
      
 2629 
     | 
    
         
            +
            <li><a class="reference internal" href="#unsigned-right-shift-operator">7.13.2.7.6.3. Unsigned right shift operator</a></li>
         
     | 
| 
       2636 
2630 
     | 
    
         
             
            </ul>
         
     | 
| 
       2637 
2631 
     | 
    
         
             
            </li>
         
     | 
| 
       2638 
     | 
    
         
            -
            <li><a class="reference internal" href="#comparison-operators">7. 
     | 
| 
       2639 
     | 
    
         
            -
            <li><a class="reference internal" href="#equal-operator">7. 
     | 
| 
       2640 
     | 
    
         
            -
            <li><a class="reference internal" href="#not-equal-operator">7. 
     | 
| 
       2641 
     | 
    
         
            -
            <li><a class="reference internal" href="#less-than-operator">7. 
     | 
| 
       2642 
     | 
    
         
            -
            <li><a class="reference internal" href="#less-than-or-equal-to-operator">7. 
     | 
| 
       2643 
     | 
    
         
            -
            <li><a class="reference internal" href="#greater-than-operator">7. 
     | 
| 
       2644 
     | 
    
         
            -
            <li><a class="reference internal" href="#greater-than-or-equal-to-operator">7. 
     | 
| 
      
 2632 
     | 
    
         
            +
            <li><a class="reference internal" href="#comparison-operators">7.13.2.7.7. Comparison operators</a><ul>
         
     | 
| 
      
 2633 
     | 
    
         
            +
            <li><a class="reference internal" href="#equal-operator">7.13.2.7.7.1. Equal operator</a></li>
         
     | 
| 
      
 2634 
     | 
    
         
            +
            <li><a class="reference internal" href="#not-equal-operator">7.13.2.7.7.2. Not equal operator</a></li>
         
     | 
| 
      
 2635 
     | 
    
         
            +
            <li><a class="reference internal" href="#less-than-operator">7.13.2.7.7.3. Less than operator</a></li>
         
     | 
| 
      
 2636 
     | 
    
         
            +
            <li><a class="reference internal" href="#less-than-or-equal-to-operator">7.13.2.7.7.4. Less than or equal to operator</a></li>
         
     | 
| 
      
 2637 
     | 
    
         
            +
            <li><a class="reference internal" href="#greater-than-operator">7.13.2.7.7.5. Greater than operator</a></li>
         
     | 
| 
      
 2638 
     | 
    
         
            +
            <li><a class="reference internal" href="#greater-than-or-equal-to-operator">7.13.2.7.7.6. Greater than or equal to operator</a></li>
         
     | 
| 
       2645 
2639 
     | 
    
         
             
            </ul>
         
     | 
| 
       2646 
2640 
     | 
    
         
             
            </li>
         
     | 
| 
       2647 
2641 
     | 
    
         
             
            </ul>
         
     | 
| 
       2648 
2642 
     | 
    
         
             
            </li>
         
     | 
| 
       2649 
     | 
    
         
            -
            <li><a class="reference internal" href="#assignment-operators">7. 
     | 
| 
       2650 
     | 
    
         
            -
            <li><a class="reference internal" href="#addition-assignment-operator">7. 
     | 
| 
       2651 
     | 
    
         
            -
            <li><a class="reference internal" href="#subtraction-assignment-operator">7. 
     | 
| 
       2652 
     | 
    
         
            -
            <li><a class="reference internal" href="#multiplication-assignment-operator">7. 
     | 
| 
       2653 
     | 
    
         
            -
            <li><a class="reference internal" href="#division-assignment-operator">7. 
     | 
| 
       2654 
     | 
    
         
            -
            <li><a class="reference internal" href="#modulo-assignment-operator">7. 
     | 
| 
       2655 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-left-shift-assignment-operator">7. 
     | 
| 
       2656 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-signed-right-shift-assignment-operator">7. 
     | 
| 
       2657 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-unsigned-right-shift-assignment-operator">7. 
     | 
| 
       2658 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-and-assignment-operator">7. 
     | 
| 
       2659 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-or-assignment-operator">7. 
     | 
| 
       2660 
     | 
    
         
            -
            <li><a class="reference internal" href="#bitwise-xor-assignment-operator">7. 
     | 
| 
      
 2643 
     | 
    
         
            +
            <li><a class="reference internal" href="#assignment-operators">7.13.2.8. Assignment operators</a><ul>
         
     | 
| 
      
 2644 
     | 
    
         
            +
            <li><a class="reference internal" href="#addition-assignment-operator">7.13.2.8.1. Addition assignment operator</a></li>
         
     | 
| 
      
 2645 
     | 
    
         
            +
            <li><a class="reference internal" href="#subtraction-assignment-operator">7.13.2.8.2. Subtraction assignment operator</a></li>
         
     | 
| 
      
 2646 
     | 
    
         
            +
            <li><a class="reference internal" href="#multiplication-assignment-operator">7.13.2.8.3. Multiplication assignment operator</a></li>
         
     | 
| 
      
 2647 
     | 
    
         
            +
            <li><a class="reference internal" href="#division-assignment-operator">7.13.2.8.4. Division assignment operator</a></li>
         
     | 
| 
      
 2648 
     | 
    
         
            +
            <li><a class="reference internal" href="#modulo-assignment-operator">7.13.2.8.5. Modulo assignment operator</a></li>
         
     | 
| 
      
 2649 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-left-shift-assignment-operator">7.13.2.8.6. Bitwise left shift assignment operator</a></li>
         
     | 
| 
      
 2650 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-signed-right-shift-assignment-operator">7.13.2.8.7. Bitwise signed right shift assignment operator</a></li>
         
     | 
| 
      
 2651 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-unsigned-right-shift-assignment-operator">7.13.2.8.8. Bitwise unsigned right shift assignment operator</a></li>
         
     | 
| 
      
 2652 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-and-assignment-operator">7.13.2.8.9. Bitwise AND assignment operator</a></li>
         
     | 
| 
      
 2653 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-or-assignment-operator">7.13.2.8.10. Bitwise OR assignment operator</a></li>
         
     | 
| 
      
 2654 
     | 
    
         
            +
            <li><a class="reference internal" href="#bitwise-xor-assignment-operator">7.13.2.8.11. Bitwise XOR assignment operator</a></li>
         
     | 
| 
       2661 
2655 
     | 
    
         
             
            </ul>
         
     | 
| 
       2662 
2656 
     | 
    
         
             
            </li>
         
     | 
| 
       2663 
     | 
    
         
            -
            <li><a class="reference internal" href="#original-operators">7. 
     | 
| 
       2664 
     | 
    
         
            -
            <li><a class="reference internal" href="#match-operator">7. 
     | 
| 
       2665 
     | 
    
         
            -
            <li><a class="reference internal" href="#prefix-search-operator">7. 
     | 
| 
       2666 
     | 
    
         
            -
            <li><a class="reference internal" href="#suffix-search-operator">7. 
     | 
| 
       2667 
     | 
    
         
            -
            <li><a class="reference internal" href="#near-search-operator">7. 
     | 
| 
       2668 
     | 
    
         
            -
            <li><a class="reference internal" href="#similar-search">7. 
     | 
| 
       2669 
     | 
    
         
            -
            <li><a class="reference internal" href="#term-extract-operator">7. 
     | 
| 
       2670 
     | 
    
         
            -
            <li><a class="reference internal" href="#regular-expression-operator">7. 
     | 
| 
      
 2657 
     | 
    
         
            +
            <li><a class="reference internal" href="#original-operators">7.13.2.9. Original operators</a><ul>
         
     | 
| 
      
 2658 
     | 
    
         
            +
            <li><a class="reference internal" href="#match-operator">7.13.2.9.1. Match operator</a></li>
         
     | 
| 
      
 2659 
     | 
    
         
            +
            <li><a class="reference internal" href="#prefix-search-operator">7.13.2.9.2. Prefix search operator</a></li>
         
     | 
| 
      
 2660 
     | 
    
         
            +
            <li><a class="reference internal" href="#suffix-search-operator">7.13.2.9.3. Suffix search operator</a></li>
         
     | 
| 
      
 2661 
     | 
    
         
            +
            <li><a class="reference internal" href="#near-search-operator">7.13.2.9.4. Near search operator</a></li>
         
     | 
| 
      
 2662 
     | 
    
         
            +
            <li><a class="reference internal" href="#similar-search">7.13.2.9.5. Similar search</a></li>
         
     | 
| 
      
 2663 
     | 
    
         
            +
            <li><a class="reference internal" href="#term-extract-operator">7.13.2.9.6. Term extract operator</a></li>
         
     | 
| 
      
 2664 
     | 
    
         
            +
            <li><a class="reference internal" href="#regular-expression-operator">7.13.2.9.7. Regular expression operator</a></li>
         
     | 
| 
       2671 
2665 
     | 
    
         
             
            </ul>
         
     | 
| 
       2672 
2666 
     | 
    
         
             
            </li>
         
     | 
| 
       2673 
2667 
     | 
    
         
             
            </ul>
         
     | 
| 
         @@ -2676,18 +2670,18 @@ very fast. See <a class="reference internal" href="../regular_expression.html">< 
     | 
|
| 
       2676 
2670 
     | 
    
         | 
| 
       2677 
2671 
     | 
    
         
             
              <h4>Previous topic</h4>
         
     | 
| 
       2678 
2672 
     | 
    
         
             
              <p class="topless"><a href="query_syntax.html"
         
     | 
| 
       2679 
     | 
    
         
            -
                                    title="previous chapter">7. 
     | 
| 
      
 2673 
     | 
    
         
            +
                                    title="previous chapter">7.13.1. Query syntax</a></p>
         
     | 
| 
       2680 
2674 
     | 
    
         
             
              <h4>Next topic</h4>
         
     | 
| 
       2681 
2675 
     | 
    
         
             
              <p class="topless"><a href="../regular_expression.html"
         
     | 
| 
       2682 
     | 
    
         
            -
                                    title="next chapter">7. 
     | 
| 
      
 2676 
     | 
    
         
            +
                                    title="next chapter">7.14. Regular expression</a></p>
         
     | 
| 
       2683 
2677 
     | 
    
         
             
            <div id="searchbox" style="display: none" role="search">
         
     | 
| 
       2684 
2678 
     | 
    
         
             
              <h3>Quick search</h3>
         
     | 
| 
      
 2679 
     | 
    
         
            +
                <div class="searchformwrapper">
         
     | 
| 
       2685 
2680 
     | 
    
         
             
                <form class="search" action="../../search.html" method="get">
         
     | 
| 
       2686 
     | 
    
         
            -
                  < 
     | 
| 
       2687 
     | 
    
         
            -
                  < 
     | 
| 
       2688 
     | 
    
         
            -
                  <input type="hidden" name="check_keywords" value="yes" />
         
     | 
| 
       2689 
     | 
    
         
            -
                  <input type="hidden" name="area" value="default" />
         
     | 
| 
      
 2681 
     | 
    
         
            +
                  <input type="text" name="q" />
         
     | 
| 
      
 2682 
     | 
    
         
            +
                  <input type="submit" value="Go" />
         
     | 
| 
       2690 
2683 
     | 
    
         
             
                </form>
         
     | 
| 
      
 2684 
     | 
    
         
            +
                </div>
         
     | 
| 
       2691 
2685 
     | 
    
         
             
            </div>
         
     | 
| 
       2692 
2686 
     | 
    
         
             
            <script type="text/javascript">$('#searchbox').show(0);</script>
         
     | 
| 
       2693 
2687 
     | 
    
         
             
                    </div>
         
     | 
| 
         @@ -2701,18 +2695,18 @@ very fast. See <a class="reference internal" href="../regular_expression.html">< 
     | 
|
| 
       2701 
2695 
     | 
    
         
             
                      <a href="../../genindex.html" title="General Index"
         
     | 
| 
       2702 
2696 
     | 
    
         
             
                         >index</a></li>
         
     | 
| 
       2703 
2697 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       2704 
     | 
    
         
            -
                      <a href="../regular_expression.html" title="7. 
     | 
| 
      
 2698 
     | 
    
         
            +
                      <a href="../regular_expression.html" title="7.14. Regular expression"
         
     | 
| 
       2705 
2699 
     | 
    
         
             
                         >next</a> |</li>
         
     | 
| 
       2706 
2700 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       2707 
     | 
    
         
            -
                      <a href="query_syntax.html" title="7. 
     | 
| 
      
 2701 
     | 
    
         
            +
                      <a href="query_syntax.html" title="7.13.1. Query syntax"
         
     | 
| 
       2708 
2702 
     | 
    
         
             
                         >previous</a> |</li>
         
     | 
| 
       2709 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 2703 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v9.0.2 documentation</a> »</li>
         
     | 
| 
       2710 
2704 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       2711 
     | 
    
         
            -
                      <li class="nav-item nav-item-2"><a href="../grn_expr.html" >7. 
     | 
| 
      
 2705 
     | 
    
         
            +
                      <li class="nav-item nav-item-2"><a href="../grn_expr.html" >7.13. grn_expr</a> »</li> 
         
     | 
| 
       2712 
2706 
     | 
    
         
             
                  </ul>
         
     | 
| 
       2713 
2707 
     | 
    
         
             
                </div>
         
     | 
| 
       2714 
2708 
     | 
    
         
             
                <div class="footer" role="contentinfo">
         
     | 
| 
       2715 
     | 
    
         
            -
                    © Copyright 2009- 
     | 
| 
      
 2709 
     | 
    
         
            +
                    © Copyright 2009-2019, Brazil, Inc.
         
     | 
| 
       2716 
2710 
     | 
    
         
             
                </div>
         
     | 
| 
       2717 
2711 
     | 
    
         
             
              </body>
         
     | 
| 
       2718 
2712 
     | 
    
         
             
            </html>
         
     |