rroonga 6.0.4-x86-mingw32 → 6.0.5-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (618) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +39 -0
  3. data/ext/groonga/rb-grn-id.c +56 -0
  4. data/ext/groonga/rb-grn-name.c +55 -0
  5. data/ext/groonga/rb-grn-object.c +166 -0
  6. data/ext/groonga/rb-grn.h +3 -1
  7. data/ext/groonga/rb-groonga.c +2 -0
  8. data/lib/2.1/groonga.so +0 -0
  9. data/lib/2.2/groonga.so +0 -0
  10. data/lib/2.3/groonga.so +0 -0
  11. data/rroonga-build.rb +3 -3
  12. data/test/test-column.rb +34 -0
  13. data/test/test-database.rb +21 -0
  14. data/test/test-id.rb +47 -0
  15. data/test/test-name.rb +34 -0
  16. data/test/test-table.rb +1 -1
  17. data/vendor/local/bin/grndb.exe +0 -0
  18. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  19. data/vendor/local/bin/groonga.exe +0 -0
  20. data/vendor/local/bin/libgroonga-0.dll +0 -0
  21. data/vendor/local/bin/libmecab-2.dll +0 -0
  22. data/vendor/local/bin/libmsgpack-4.dll +0 -0
  23. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  24. data/vendor/local/bin/libonig-5.dll +0 -0
  25. data/vendor/local/bin/lz4.exe +0 -0
  26. data/vendor/local/bin/lz4c.exe +0 -0
  27. data/vendor/local/bin/lz4cat +0 -0
  28. data/vendor/local/bin/mecab.exe +0 -0
  29. data/vendor/local/bin/zlib1.dll +0 -0
  30. data/vendor/local/include/groonga/groonga.h +1 -0
  31. data/vendor/local/include/groonga/groonga/groonga.h +5 -0
  32. data/vendor/local/include/groonga/groonga/id.h +30 -0
  33. data/vendor/local/include/groonga/groonga/nfkc.h +1 -1
  34. data/vendor/local/include/groonga/groonga/obj.h +9 -0
  35. data/vendor/local/include/groonga/groonga/table.h +12 -1
  36. data/vendor/local/include/groonga/groonga/time.h +14 -0
  37. data/vendor/local/lib/groonga/plugins/expression_rewriters/optimizer.rb +1 -1
  38. data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
  39. data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
  40. data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
  41. data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
  42. data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
  43. data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
  44. data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
  45. data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
  46. data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
  47. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  48. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  49. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  50. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  51. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  52. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  53. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  54. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  55. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  56. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  57. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  58. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  59. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  60. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  61. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  62. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  63. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  64. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  65. data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +40 -2
  66. data/vendor/local/lib/groonga/scripts/ruby/expression_tree.rb +4 -0
  67. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/accessor.rb +14 -0
  68. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +1 -1
  69. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/index_column.rb +14 -0
  70. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/options.rb +14 -0
  71. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/procedure.rb +18 -0
  72. data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +20 -1
  73. data/vendor/local/lib/libgroonga.a +0 -0
  74. data/vendor/local/lib/libgroonga.dll.a +0 -0
  75. data/vendor/local/lib/liblz4.a +0 -0
  76. data/vendor/local/lib/liblz4.dll +0 -0
  77. data/vendor/local/lib/liblz4.dll.1 +0 -0
  78. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  79. data/vendor/local/lib/libmecab.a +0 -0
  80. data/vendor/local/lib/libmecab.dll.a +0 -0
  81. data/vendor/local/lib/libmsgpack.a +0 -0
  82. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  83. data/vendor/local/lib/libmsgpackc.a +0 -0
  84. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  85. data/vendor/local/lib/libonig.a +0 -0
  86. data/vendor/local/lib/libonig.dll.a +0 -0
  87. data/vendor/local/lib/libz.a +0 -0
  88. data/vendor/local/lib/libz.dll.a +0 -0
  89. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  90. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  91. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  92. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  93. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  94. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  95. data/vendor/local/sbin/groonga-httpd.exe +0 -0
  96. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  97. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/cooperation.txt +8 -8
  98. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
  99. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  100. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  101. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  102. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
  103. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  104. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
  105. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  106. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +71 -1
  107. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/return_code.txt +1 -0
  108. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/io_flush.txt +2 -5
  109. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +1 -1
  110. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +1 -1
  111. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_table_remove.txt +1 -1
  112. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/query_expand.txt +38 -0
  113. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +1 -1
  114. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
  115. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +1 -1
  116. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/fuzzy_search.txt +23 -0
  117. data/vendor/local/share/doc/groonga/en/html/_sources/reference/token_filters.txt +3 -3
  118. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +1 -25
  119. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  120. data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
  121. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  122. data/vendor/local/share/doc/groonga/en/html/contribution.html +6 -6
  123. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  124. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
  125. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
  126. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
  127. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
  128. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  129. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +15 -15
  130. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  131. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
  132. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  133. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  135. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  136. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  137. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
  138. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  139. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  142. data/vendor/local/share/doc/groonga/en/html/index.html +51 -49
  143. data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
  145. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  146. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
  147. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  148. data/vendor/local/share/doc/groonga/en/html/install/others.html +9 -9
  149. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  150. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
  151. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  152. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  153. data/vendor/local/share/doc/groonga/en/html/news.html +193 -131
  154. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  158. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
  162. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  164. data/vendor/local/share/doc/groonga/en/html/reference.html +51 -49
  165. data/vendor/local/share/doc/groonga/en/html/reference/alias.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  167. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
  168. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
  169. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
  170. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
  171. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +5 -5
  172. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
  173. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
  174. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
  175. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  176. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
  178. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
  182. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
  185. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
  186. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
  187. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
  198. data/vendor/local/share/doc/groonga/en/html/reference/command.html +27 -26
  199. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +6 -5
  205. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  212. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
  215. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
  216. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
  217. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  218. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  219. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +7 -10
  222. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  223. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +5 -5
  224. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +5 -5
  225. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +5 -5
  226. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
  227. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  228. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  229. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
  230. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
  231. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
  232. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
  234. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +6 -6
  235. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
  238. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
  240. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
  241. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +10 -10
  242. data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +177 -0
  243. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +26 -26
  244. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +25 -25
  245. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +25 -25
  246. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +27 -27
  247. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +31 -31
  248. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +30 -30
  249. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +30 -30
  250. data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +67 -67
  251. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +111 -111
  252. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +31 -31
  253. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +29 -29
  254. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +27 -27
  255. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +51 -51
  256. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +25 -25
  257. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +41 -41
  258. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +31 -31
  259. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +42 -42
  260. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +31 -31
  261. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +43 -43
  262. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +25 -25
  263. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +25 -25
  264. data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +5 -5
  265. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  266. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
  267. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
  268. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +5 -5
  269. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
  270. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  271. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  272. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +6 -6
  273. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
  274. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
  275. data/vendor/local/share/doc/groonga/en/html/reference/function.html +29 -28
  276. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
  277. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +10 -10
  278. data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +159 -0
  279. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +46 -46
  280. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +27 -27
  281. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +27 -27
  282. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +39 -39
  283. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +33 -33
  284. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +29 -29
  285. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +29 -29
  286. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +25 -25
  287. data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +23 -23
  288. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +31 -31
  289. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +41 -41
  290. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +27 -27
  291. data/vendor/local/share/doc/groonga/en/html/reference/functions/record_number.html +23 -23
  292. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +27 -27
  293. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +31 -31
  294. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +23 -23
  295. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +23 -23
  296. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +23 -23
  297. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +23 -23
  298. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +23 -23
  299. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +23 -23
  300. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +23 -23
  301. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +23 -23
  302. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  303. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  304. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
  305. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
  306. data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
  307. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  308. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +9 -9
  309. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +5 -5
  310. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +5 -5
  311. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  312. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  313. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  314. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
  315. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
  316. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
  317. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
  318. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +5 -5
  319. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +5 -5
  320. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +5 -5
  321. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +5 -5
  322. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +5 -5
  323. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +5 -5
  324. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  325. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +8 -8
  326. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  327. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +5 -5
  328. data/vendor/local/share/doc/groonga/en/html/reference/types.html +9 -9
  329. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  330. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  331. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  332. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  333. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  334. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  335. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  336. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  337. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
  338. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  339. data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
  340. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  341. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  342. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  343. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  344. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  345. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  346. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  347. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  348. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  349. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  350. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  351. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  352. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  353. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  354. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  355. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  356. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  357. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  358. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/cooperation.txt +8 -8
  359. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
  360. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  361. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  362. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  363. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
  364. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  365. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
  366. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  367. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +71 -1
  368. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/return_code.txt +1 -0
  369. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/io_flush.txt +2 -5
  370. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +1 -1
  371. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +1 -1
  372. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_table_remove.txt +1 -1
  373. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/query_expand.txt +38 -0
  374. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +1 -1
  375. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
  376. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +1 -1
  377. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/fuzzy_search.txt +23 -0
  378. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/token_filters.txt +3 -3
  379. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +1 -25
  380. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  381. data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
  382. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  383. data/vendor/local/share/doc/groonga/ja/html/contribution.html +6 -6
  384. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  385. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
  386. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
  387. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
  388. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
  389. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  390. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +15 -15
  391. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  392. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
  393. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  394. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  395. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  396. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  397. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  398. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
  399. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  400. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  401. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  402. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  403. data/vendor/local/share/doc/groonga/ja/html/index.html +51 -49
  404. data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
  405. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
  406. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  407. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
  408. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  409. data/vendor/local/share/doc/groonga/ja/html/install/others.html +9 -9
  410. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  411. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
  412. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  413. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  414. data/vendor/local/share/doc/groonga/ja/html/news.html +195 -131
  415. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  416. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  417. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  418. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  419. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
  420. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
  421. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
  422. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
  423. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  424. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  425. data/vendor/local/share/doc/groonga/ja/html/reference.html +51 -49
  426. data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +5 -5
  427. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  428. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +5 -5
  429. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
  430. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
  431. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
  432. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +5 -5
  433. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +5 -5
  434. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
  435. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
  436. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
  437. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
  438. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
  439. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
  440. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
  441. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
  442. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
  443. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
  444. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
  445. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
  446. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
  447. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
  448. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +5 -5
  449. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
  450. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
  451. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +5 -5
  452. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +5 -5
  453. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  454. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
  455. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
  456. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
  457. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
  458. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
  459. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +27 -26
  460. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  461. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  462. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
  463. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
  464. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +5 -5
  465. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +6 -5
  466. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  467. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  468. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  469. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
  470. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  471. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  472. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  473. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
  474. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
  475. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
  476. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
  477. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
  478. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  479. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  480. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  481. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  482. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +7 -10
  483. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  484. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +5 -5
  485. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +5 -5
  486. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +5 -5
  487. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
  488. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  489. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  490. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
  491. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
  492. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
  493. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +5 -5
  494. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
  495. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +7 -7
  496. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
  497. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
  498. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
  499. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +5 -5
  500. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +5 -5
  501. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +5 -5
  502. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +10 -10
  503. data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +178 -0
  504. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +26 -26
  505. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +25 -25
  506. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +25 -25
  507. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +27 -27
  508. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +31 -31
  509. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +30 -30
  510. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +30 -30
  511. data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +67 -67
  512. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +112 -112
  513. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +31 -31
  514. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +29 -29
  515. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +27 -27
  516. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +51 -51
  517. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +25 -25
  518. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +41 -41
  519. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +31 -31
  520. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +42 -42
  521. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +31 -31
  522. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +43 -43
  523. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +25 -25
  524. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +25 -25
  525. data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +5 -5
  526. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  527. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
  528. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  529. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
  530. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
  531. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  532. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  533. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +6 -6
  534. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
  535. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  536. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +29 -28
  537. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
  538. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +10 -10
  539. data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +160 -0
  540. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +46 -46
  541. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +27 -27
  542. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +27 -27
  543. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +39 -39
  544. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +33 -33
  545. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +29 -29
  546. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +29 -29
  547. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +25 -25
  548. data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +23 -23
  549. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +31 -31
  550. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +41 -41
  551. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +27 -27
  552. data/vendor/local/share/doc/groonga/ja/html/reference/functions/record_number.html +23 -23
  553. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +27 -27
  554. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -31
  555. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +23 -23
  556. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +23 -23
  557. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +23 -23
  558. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +23 -23
  559. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +23 -23
  560. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +23 -23
  561. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +23 -23
  562. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +23 -23
  563. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  564. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
  565. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
  566. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
  567. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
  568. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  569. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +9 -9
  570. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +5 -5
  571. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +5 -5
  572. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  573. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  574. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  575. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
  576. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
  577. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +5 -5
  578. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
  579. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +5 -5
  580. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +5 -5
  581. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +5 -5
  582. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +5 -5
  583. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +5 -5
  584. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +5 -5
  585. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  586. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +8 -8
  587. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  588. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
  589. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +9 -9
  590. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  591. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  592. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  593. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  594. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  595. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  596. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  597. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  598. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
  599. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  600. data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
  601. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  602. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  603. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  604. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  605. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  606. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  607. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  608. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  609. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  610. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  611. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  612. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  613. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  614. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  615. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  616. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  617. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  618. metadata +21 -2
@@ -366,4 +366,25 @@ class DatabaseTest < Test::Unit::TestCase
366
366
  @database.disk_usage)
367
367
  end
368
368
  end
369
+
370
+ class LastModifiedTest < self
371
+ setup :setup_database
372
+
373
+ def test_touch
374
+ assert_equal(Time.at(0), @database.last_modified)
375
+ @database.touch
376
+ assert_equal(Time.now.sec, @database.last_modified.sec)
377
+ end
378
+
379
+ def test_dirty?
380
+ omit("TODO: Enable this after Groonga 6.0.6 is released.")
381
+ assert do
382
+ not @database.dirty?
383
+ end
384
+ @database.touch
385
+ assert do
386
+ @database.dirty?
387
+ end
388
+ end
389
+ end
369
390
  end
data/test/test-id.rb ADDED
@@ -0,0 +1,47 @@
1
+ # Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License version 2.1 as published by the Free Software Foundation.
6
+ #
7
+ # This library is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10
+ # Lesser General Public License for more details.
11
+ #
12
+ # You should have received a copy of the GNU Lesser General Public
13
+ # License along with this library; if not, write to the Free Software
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
+
16
+ class IDTest < Test::Unit::TestCase
17
+ include GroongaTestUtils
18
+
19
+ setup :setup_database
20
+
21
+ test "NIL" do
22
+ assert_equal(0, Groonga::ID::NIL)
23
+ end
24
+
25
+ test "MAX" do
26
+ assert_equal(2 ** 30 - 1, Groonga::ID::MAX)
27
+ end
28
+
29
+ sub_test_case(".builtin?") do
30
+ test "true" do
31
+ assert do
32
+ Groonga::ID.builtin?(Groonga::Type::INT32)
33
+ end
34
+ end
35
+
36
+ test "false" do
37
+ Groonga::Schema.define do |schema|
38
+ schema.create_table("Users", :type => :hash)
39
+ end
40
+ users_id = Groonga["Users"].id
41
+
42
+ assert do
43
+ not Groonga::ID.builtin?(users_id)
44
+ end
45
+ end
46
+ end
47
+ end
data/test/test-name.rb ADDED
@@ -0,0 +1,34 @@
1
+ # Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License version 2.1 as published by the Free Software Foundation.
6
+ #
7
+ # This library is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10
+ # Lesser General Public License for more details.
11
+ #
12
+ # You should have received a copy of the GNU Lesser General Public
13
+ # License along with this library; if not, write to the Free Software
14
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
+
16
+ class NameTest < Test::Unit::TestCase
17
+ include GroongaTestUtils
18
+
19
+ setup :setup_database
20
+
21
+ sub_test_case(".column?") do
22
+ test "true" do
23
+ assert do
24
+ Groonga::Name.column?("Users.age")
25
+ end
26
+ end
27
+
28
+ test "false" do
29
+ assert do
30
+ not Groonga::Name.column?("Users")
31
+ end
32
+ end
33
+ end
34
+ end
data/test/test-table.rb CHANGED
@@ -561,7 +561,7 @@ class TableTest < Test::Unit::TestCase
561
561
  ruby_bookmarks = bookmarks.select {|record| (record["title"] == "Ruby") &
562
562
  (record["title"] == "Ruby") }
563
563
  all_bookmarks = bookmarks.select
564
- assert_equal([["groonga", 1], ["Ruby", 2]],
564
+ assert_equal([["groonga", 1.0], ["Ruby", 3.0]],
565
565
  all_bookmarks.merge!(ruby_bookmarks).collect do |record|
566
566
  [record[".title"], record.score]
567
567
  end)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -30,6 +30,7 @@
30
30
  #include "groonga/file_reader.h"
31
31
  #include "groonga/geo.h"
32
32
  #include "groonga/hash.h"
33
+ #include "groonga/id.h"
33
34
  #include "groonga/ii.h"
34
35
  #include "groonga/obj.h"
35
36
  #include "groonga/operator.h"
@@ -1606,6 +1606,11 @@ struct _grn_table_scan_hit {
1606
1606
  unsigned int length;
1607
1607
  };
1608
1608
 
1609
+ typedef struct {
1610
+ int64_t tv_sec;
1611
+ int32_t tv_nsec;
1612
+ } grn_timeval;
1613
+
1609
1614
  #ifdef __cplusplus
1610
1615
  }
1611
1616
  #endif
@@ -0,0 +1,30 @@
1
+ /* -*- c-basic-offset: 2 -*- */
2
+ /*
3
+ Copyright(C) 2016 Brazil
4
+
5
+ This library is free software; you can redistribute it and/or
6
+ modify it under the terms of the GNU Lesser General Public
7
+ License as published by the Free Software Foundation; either
8
+ version 2.1 of the License, or (at your option) any later version.
9
+
10
+ This library is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ Lesser General Public License for more details.
14
+
15
+ You should have received a copy of the GNU Lesser General Public
16
+ License along with this library; if not, write to the Free Software
17
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ */
19
+
20
+ #pragma once
21
+
22
+ #ifdef __cplusplus
23
+ extern "C" {
24
+ #endif
25
+
26
+ GRN_API grn_bool grn_id_is_builtin(grn_ctx *ctx, grn_id id);
27
+
28
+ #ifdef __cplusplus
29
+ }
30
+ #endif
@@ -24,7 +24,7 @@
24
24
  extern "C" {
25
25
  #endif
26
26
 
27
- GRN_API grn_char_type grn_nfkc_char_type(const unsigned char *str);
27
+ GRN_API grn_char_type grn_nfkc_char_type(const unsigned char *utf8);
28
28
 
29
29
  #ifdef __cplusplus
30
30
  }
@@ -34,6 +34,7 @@ GRN_API grn_bool grn_obj_is_builtin(grn_ctx *ctx, grn_obj *obj);
34
34
  GRN_API grn_bool grn_obj_is_table(grn_ctx *ctx, grn_obj *obj);
35
35
  GRN_API grn_bool grn_obj_is_column(grn_ctx *ctx, grn_obj *obj);
36
36
  GRN_API grn_bool grn_obj_is_reference_column(grn_ctx *ctx, grn_obj *obj);
37
+ GRN_API grn_bool grn_obj_is_index_column(grn_ctx *ctx, grn_obj *obj);
37
38
  GRN_API grn_bool grn_obj_is_accessor(grn_ctx *ctx, grn_obj *obj);
38
39
  GRN_API grn_bool grn_obj_is_key_accessor(grn_ctx *ctx, grn_obj *obj);
39
40
  GRN_API grn_bool grn_obj_is_type(grn_ctx *ctx, grn_obj *obj);
@@ -55,8 +56,16 @@ GRN_API grn_rc grn_obj_cast(grn_ctx *ctx,
55
56
 
56
57
  GRN_API grn_rc grn_obj_reindex(grn_ctx *ctx, grn_obj *obj);
57
58
 
59
+ GRN_API void grn_obj_touch(grn_ctx *ctx, grn_obj *obj, grn_timeval *tv);
60
+ GRN_API uint32_t grn_obj_get_last_modified(grn_ctx *ctx, grn_obj *obj);
61
+ GRN_API grn_bool grn_obj_is_dirty(grn_ctx *ctx, grn_obj *obj);
62
+
58
63
  GRN_API const char *grn_obj_type_to_string(uint8_t type);
59
64
 
65
+ GRN_API grn_bool grn_obj_name_is_column(grn_ctx *ctx,
66
+ const char *name,
67
+ int name_len);
68
+
60
69
  #ifdef __cplusplus
61
70
  }
62
71
  #endif
@@ -114,7 +114,7 @@ GRN_API grn_posting *grn_index_cursor_next(grn_ctx *ctx, grn_obj *ic, grn_id *ti
114
114
  } while (0)
115
115
 
116
116
  #define GRN_TABLE_EACH_BEGIN(ctx, table, cursor, id) do {\
117
- if (table) {\
117
+ if ((table)) {\
118
118
  grn_table_cursor *cursor;\
119
119
  cursor = grn_table_cursor_open((ctx), (table),\
120
120
  NULL, 0,\
@@ -124,6 +124,17 @@ GRN_API grn_posting *grn_index_cursor_next(grn_ctx *ctx, grn_obj *ic, grn_id *ti
124
124
  grn_id id;\
125
125
  while ((id = grn_table_cursor_next((ctx), cursor))) {
126
126
 
127
+ #define GRN_TABLE_EACH_BEGIN_FLAGS(ctx, table, cursor, id, flags) do {\
128
+ if ((table)) {\
129
+ grn_table_cursor *cursor;\
130
+ cursor = grn_table_cursor_open((ctx), (table),\
131
+ NULL, 0,\
132
+ NULL, 0,\
133
+ 0, -1, (flags));\
134
+ if (cursor) {\
135
+ grn_id id;\
136
+ while ((id = grn_table_cursor_next((ctx), cursor))) {
137
+
127
138
  #define GRN_TABLE_EACH_END(ctx, cursor)\
128
139
  }\
129
140
  grn_table_cursor_close((ctx), cursor);\
@@ -24,6 +24,18 @@
24
24
  extern "C" {
25
25
  #endif
26
26
 
27
+ #define GRN_TIMEVAL_TO_MSEC(timeval) \
28
+ (((timeval)->tv_sec * GRN_TIME_MSEC_PER_SEC) + \
29
+ ((timeval)->tv_nsec / GRN_TIME_NSEC_PER_MSEC))
30
+
31
+ #define GRN_TIME_NSEC_PER_SEC 1000000000
32
+ #define GRN_TIME_NSEC_PER_SEC_F 1000000000.0
33
+ #define GRN_TIME_NSEC_PER_MSEC 1000000
34
+ #define GRN_TIME_NSEC_PER_USEC (GRN_TIME_NSEC_PER_SEC / GRN_TIME_USEC_PER_SEC)
35
+ #define GRN_TIME_MSEC_PER_SEC 1000
36
+ #define GRN_TIME_NSEC_TO_USEC(nsec) ((nsec) / GRN_TIME_NSEC_PER_USEC)
37
+ #define GRN_TIME_USEC_TO_NSEC(usec) ((usec) * GRN_TIME_NSEC_PER_USEC)
38
+
27
39
  #define GRN_TIME_USEC_PER_SEC 1000000
28
40
  #define GRN_TIME_PACK(sec, usec) ((int64_t)(sec) * GRN_TIME_USEC_PER_SEC + (usec))
29
41
  #define GRN_TIME_UNPACK(time_value, sec, usec) do {\
@@ -31,6 +43,8 @@ extern "C" {
31
43
  usec = (time_value) % GRN_TIME_USEC_PER_SEC;\
32
44
  } while (0)
33
45
 
46
+ GRN_API grn_rc grn_timeval_now(grn_ctx *ctx, grn_timeval *tv);
47
+
34
48
  GRN_API void grn_time_now(grn_ctx *ctx, grn_obj *obj);
35
49
 
36
50
  #define GRN_TIME_NOW(ctx,obj) (grn_time_now((ctx), (obj)))
@@ -122,7 +122,7 @@ module Groonga
122
122
  end
123
123
  return nil if greater_node.nil? or less_node.nil?
124
124
 
125
- between = context["between"]
125
+ between = ExpressionTree::Procedure.new(context["between"])
126
126
  if greater_node.operator == Operator::GREATER
127
127
  greater_border = "exclude"
128
128
  else
@@ -73,6 +73,8 @@ module Groonga
73
73
  Operator::GREATER,
74
74
  Operator::GREATER_EQUAL
75
75
  size = estimate_range(data, index_column)
76
+ when Operator::PREFIX
77
+ size = estimate_prefix(data, index_column)
76
78
  when Operator::CALL
77
79
  size = estimate_call(data, index_column)
78
80
  end
@@ -89,6 +91,17 @@ module Groonga
89
91
  index_column
90
92
  end
91
93
 
94
+ def sampling_cursor_limit(n_terms)
95
+ limit = n_terms * 0.01
96
+ if limit < 10
97
+ 10
98
+ elsif limit > 1000
99
+ 1000
100
+ else
101
+ limit.to_i
102
+ end
103
+ end
104
+
92
105
  def estimate_match(data, index_column)
93
106
  index_column.estimate_size(:query => data.query.value)
94
107
  end
@@ -113,8 +126,13 @@ module Groonga
113
126
 
114
127
  def estimate_range(data, index_column)
115
128
  lexicon = index_column.lexicon
129
+ n_terms = lexicon.size
130
+ return 0 if n_terms.zero?
131
+
116
132
  value = data.query.value
117
- options = {}
133
+ options = {
134
+ :limit => sampling_cursor_limit(n_terms),
135
+ }
118
136
  case data.op
119
137
  when Operator::LESS
120
138
  options[:max] = value
@@ -130,7 +148,27 @@ module Groonga
130
148
  options[:flags] = TableCursorFlags::GE
131
149
  end
132
150
  TableCursor.open(lexicon, options) do |cursor|
133
- index_column.estimate_size(:lexicon_cursor => cursor)
151
+ size = index_column.estimate_size(:lexicon_cursor => cursor)
152
+ size += 1 if cursor.next != ID::NIL
153
+ size
154
+ end
155
+ end
156
+
157
+ def estimate_prefix(data, index_column)
158
+ lexicon = index_column.lexicon
159
+ n_terms = lexicon.size
160
+ return 0 if n_terms.zero?
161
+
162
+ value = data.query.value
163
+ options = {
164
+ :min => value,
165
+ :limit => sampling_cursor_limit(n_terms),
166
+ :flags => TableCursorFlags::PREFIX,
167
+ }
168
+ TableCursor.open(lexicon, options) do |cursor|
169
+ size = index_column.estimate_size(:lexicon_cursor => cursor)
170
+ size += 1 if cursor.next != ID::NIL
171
+ size
134
172
  end
135
173
  end
136
174
 
@@ -1,5 +1,9 @@
1
+ require "expression_tree/accessor"
1
2
  require "expression_tree/constant"
2
3
  require "expression_tree/binary_operation"
3
4
  require "expression_tree/function_call"
5
+ require "expression_tree/index_column"
4
6
  require "expression_tree/logical_operation"
7
+ require "expression_tree/options"
8
+ require "expression_tree/procedure"
5
9
  require "expression_tree/variable"