rroonga 4.0.0-x86-mingw32 → 4.0.1-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (449) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +6 -0
  3. data/doc/text/news.textile +26 -0
  4. data/ext/groonga/rb-grn-column.c +42 -2
  5. data/ext/groonga/rb-grn-index-column.c +57 -159
  6. data/ext/groonga/rb-grn-object.c +7 -0
  7. data/ext/groonga/rb-grn-table.c +19 -3
  8. data/ext/groonga/rb-grn-utils.c +4 -1
  9. data/ext/groonga/rb-grn-variable-size-column.c +405 -5
  10. data/ext/groonga/rb-grn.h +18 -1
  11. data/lib/1.9/groonga.so +0 -0
  12. data/lib/2.0/groonga.so +0 -0
  13. data/lib/2.1/groonga.so +0 -0
  14. data/lib/groonga/dumper.rb +46 -22
  15. data/lib/groonga/expression-builder.rb +2 -4
  16. data/lib/groonga/schema.rb +16 -234
  17. data/rroonga-build.rb +3 -3
  18. data/rroonga.gemspec +1 -1
  19. data/test/test-array.rb +6 -5
  20. data/test/test-column.rb +0 -14
  21. data/test/test-database.rb +6 -5
  22. data/test/test-double-array-trie.rb +6 -5
  23. data/test/test-expression.rb +2 -2
  24. data/test/test-hash.rb +6 -5
  25. data/test/test-index-column.rb +163 -33
  26. data/test/test-patricia-trie.rb +6 -5
  27. data/test/test-schema-dumper.rb +39 -7
  28. data/test/test-table-dumper.rb +46 -1
  29. data/test/test-table-select-weight.rb +12 -0
  30. data/test/test-variable-size-column.rb +87 -3
  31. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  32. data/vendor/local/bin/groonga.exe +0 -0
  33. data/vendor/local/bin/libgroonga-0.dll +0 -0
  34. data/vendor/local/bin/libmecab-1.dll +0 -0
  35. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  36. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  37. data/vendor/local/bin/mecab.exe +0 -0
  38. data/vendor/local/include/groonga/groonga.h +6 -1
  39. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  40. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  41. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  42. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  43. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  44. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  45. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  46. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  47. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  48. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  49. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  50. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  51. data/vendor/local/lib/libgroonga.a +0 -0
  52. data/vendor/local/lib/libgroonga.dll.a +0 -0
  53. data/vendor/local/lib/libmecab.a +0 -0
  54. data/vendor/local/lib/libmecab.dll.a +0 -0
  55. data/vendor/local/lib/libmsgpack.a +0 -0
  56. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  57. data/vendor/local/lib/libmsgpackc.a +0 -0
  58. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  59. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  60. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  61. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  62. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  63. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  64. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  65. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  66. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
  67. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  68. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  69. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  70. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  71. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  72. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
  73. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  74. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +41 -0
  75. data/vendor/local/share/doc/groonga/en/html/_sources/reference/column.txt +25 -0
  76. data/vendor/local/share/doc/groonga/en/html/_sources/reference/columns/vector.txt +333 -0
  77. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
  78. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +1 -2
  79. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +37 -17
  80. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +4 -5
  81. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +1 -2
  82. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +99 -0
  83. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +1 -1
  84. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -2
  85. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +128 -4
  86. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +11 -1
  87. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +3 -2
  88. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +1 -1
  89. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +1 -1
  90. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +1 -1
  91. data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
  92. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  93. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  94. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  95. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  96. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
  97. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  98. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
  99. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  100. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  101. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  102. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  103. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  104. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  105. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  106. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  107. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  108. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  109. data/vendor/local/share/doc/groonga/en/html/genindex.html +11 -11
  110. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
  111. data/vendor/local/share/doc/groonga/en/html/index.html +68 -67
  112. data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
  113. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  114. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
  115. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  116. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  117. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  118. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
  119. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  120. data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
  121. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  122. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  123. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  124. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  125. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  126. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  127. data/vendor/local/share/doc/groonga/en/html/news.html +247 -200
  128. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  129. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +24 -24
  130. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +26 -26
  131. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +26 -26
  132. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +26 -26
  133. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +26 -26
  134. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +26 -26
  135. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +26 -26
  136. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +24 -24
  137. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +26 -26
  138. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +26 -26
  139. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +26 -26
  140. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +26 -26
  141. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +26 -26
  142. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +26 -26
  143. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +26 -26
  144. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +26 -26
  145. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +26 -26
  146. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +26 -26
  147. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +26 -26
  148. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +26 -26
  149. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +22 -22
  150. data/vendor/local/share/doc/groonga/en/html/reference/api.html +38 -38
  151. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/reference/column.html +153 -0
  153. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +857 -0
  154. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +7 -7
  155. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +7 -7
  156. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +7 -7
  157. data/vendor/local/share/doc/groonga/en/html/reference/command.html +8 -8
  158. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +8 -8
  159. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +7 -7
  160. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +7 -7
  161. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +8 -9
  162. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +7 -7
  163. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +7 -7
  164. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +47 -26
  165. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +7 -7
  166. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +7 -7
  167. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +8 -9
  168. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +7 -7
  169. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +7 -7
  170. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +7 -7
  171. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +7 -7
  172. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +7 -7
  173. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +10 -10
  174. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +7 -7
  175. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +7 -7
  176. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +7 -7
  177. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +7 -7
  178. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +193 -7
  179. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +7 -7
  180. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +12 -12
  181. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +7 -7
  182. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +8 -8
  183. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +7 -7
  184. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +7 -7
  185. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +7 -7
  186. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +8 -9
  187. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +7 -7
  188. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +7 -7
  189. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +10 -10
  190. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +7 -7
  191. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +7 -7
  192. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +165 -13
  193. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +25 -8
  194. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +7 -7
  195. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +12 -12
  196. data/vendor/local/share/doc/groonga/en/html/reference/function.html +28 -28
  197. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +40 -40
  198. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +32 -32
  199. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +50 -50
  200. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +32 -32
  201. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +32 -32
  202. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +34 -34
  203. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +30 -30
  204. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +46 -46
  205. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +32 -32
  206. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +32 -32
  207. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +36 -36
  208. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +62 -62
  209. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +140 -140
  210. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +22 -22
  211. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +24 -24
  212. data/vendor/local/share/doc/groonga/en/html/reference/log.html +26 -26
  213. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +31 -31
  214. data/vendor/local/share/doc/groonga/en/html/reference/output.html +8 -8
  215. data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +22 -22
  216. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +36 -36
  217. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +18 -18
  218. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +13 -13
  219. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +17 -17
  220. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +38 -38
  221. data/vendor/local/share/doc/groonga/en/html/reference/types.html +8 -8
  222. data/vendor/local/share/doc/groonga/en/html/reference.html +69 -68
  223. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  224. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  225. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  226. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  227. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +9 -9
  228. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  229. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  230. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  231. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  232. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  234. data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
  235. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  238. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  240. data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
  241. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  243. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  244. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  246. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  247. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +8 -8
  248. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  249. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  250. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  251. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +12 -12
  252. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  253. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  254. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  255. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  256. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  257. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
  258. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  259. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  260. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  261. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  262. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  263. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
  264. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  265. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +41 -0
  266. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/column.txt +25 -0
  267. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/columns/vector.txt +333 -0
  268. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
  269. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +1 -2
  270. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +37 -17
  271. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +4 -5
  272. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +1 -2
  273. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +99 -0
  274. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +1 -1
  275. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -2
  276. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +128 -4
  277. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +11 -1
  278. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +3 -2
  279. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +1 -1
  280. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +1 -1
  281. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +1 -1
  282. data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
  283. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  284. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  285. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  286. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  287. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
  288. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  289. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
  290. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  291. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  292. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  293. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  294. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  295. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  296. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  297. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  298. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  299. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  300. data/vendor/local/share/doc/groonga/ja/html/genindex.html +11 -11
  301. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
  302. data/vendor/local/share/doc/groonga/ja/html/index.html +67 -66
  303. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
  304. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  305. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
  306. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  307. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  308. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  309. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
  310. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  311. data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
  312. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  313. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  314. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  315. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  316. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  317. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  318. data/vendor/local/share/doc/groonga/ja/html/news.html +262 -200
  319. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  320. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +22 -22
  321. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -24
  322. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +24 -24
  323. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +24 -24
  324. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +24 -24
  325. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +24 -24
  326. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +24 -24
  327. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -22
  328. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +24 -24
  329. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +24 -24
  330. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +24 -24
  331. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +24 -24
  332. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +24 -24
  333. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +24 -24
  334. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +24 -24
  335. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +24 -24
  336. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -24
  337. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -24
  338. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +24 -24
  339. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +24 -24
  340. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +20 -20
  341. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +35 -35
  342. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  343. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +150 -0
  344. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +824 -0
  345. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  346. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  347. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  348. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  349. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +6 -6
  350. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  351. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  352. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +6 -6
  353. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  354. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  355. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +45 -24
  356. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  357. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  358. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +6 -6
  359. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  360. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  361. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
  362. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  363. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  364. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +8 -7
  365. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  366. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  367. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
  368. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
  369. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +174 -5
  370. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  371. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +10 -10
  372. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  373. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +6 -6
  374. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  375. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  376. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
  377. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +6 -6
  378. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  379. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
  380. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +8 -8
  381. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  382. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  383. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +167 -11
  384. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +23 -6
  385. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  386. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  387. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -25
  388. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +38 -38
  389. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +30 -30
  390. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +48 -48
  391. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +30 -30
  392. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +30 -30
  393. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +32 -32
  394. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +28 -28
  395. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +44 -44
  396. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +30 -30
  397. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +30 -30
  398. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +34 -34
  399. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +60 -60
  400. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +138 -138
  401. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +19 -19
  402. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -21
  403. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +23 -23
  404. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +28 -28
  405. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  406. data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +19 -19
  407. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +34 -34
  408. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +15 -15
  409. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +10 -10
  410. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +14 -14
  411. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +35 -35
  412. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
  413. data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -68
  414. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  415. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  416. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  417. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  418. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  419. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  420. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  421. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  422. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  423. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  424. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  425. data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
  426. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
  427. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  428. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  429. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  430. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  431. data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
  432. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  433. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  434. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  435. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  436. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  437. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  438. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +8 -8
  439. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  440. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  441. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  442. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +12 -12
  443. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  444. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  445. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  446. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  447. data/vendor/local/share/man/ja/man1/groonga.1 +526 -73
  448. data/vendor/local/share/man/man1/groonga.1 +552 -80
  449. metadata +148 -139
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2009-2012 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -417,12 +417,13 @@ class PatriciaTrieTest < Test::Unit::TestCase
417
417
  :key_type => "ShortText")
418
418
  users.define_column("name", "ShortText")
419
419
  users.define_column("address", "ShortText")
420
- 1000.times do |i|
420
+ large_data = "x" * (2 ** 16)
421
+ 100.times do |i|
421
422
  users.add("user #{i}",
422
- :name => "user #{i}" * 1000,
423
- :address => "address #{i}" * 1000)
423
+ :name => "user #{i}" + large_data,
424
+ :address => "address #{i}" + large_data)
424
425
  end
425
- assert_equal(3, users.defrag)
426
+ assert_equal(2, users.defrag)
426
427
  end
427
428
 
428
429
  def test_rename
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2013 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -96,14 +96,26 @@ class SchemaDumperTest < Test::Unit::TestCase
96
96
  schema.create_table("Terms",
97
97
  :type => :patricia_trie,
98
98
  :key_type => "ShortText",
99
- :key_normalize => true,
100
- :default_tokenizer => "TokenBigram") do |table|
99
+ :default_tokenizer => "TokenBigram",
100
+ :normalizer => "NormalizerAuto") do |table|
101
101
  table.index("Items", "_key")
102
102
  table.index("Items", "title")
103
103
  end
104
104
  end
105
105
  end
106
106
 
107
+ def define_weight_vector_schema
108
+ Groonga::Schema.define do |schema|
109
+ schema.create_table("Memos",
110
+ :type => :patricia_trie,
111
+ :key_type => "ShortText") do |table|
112
+ table.short_text("tags",
113
+ :type => :vector,
114
+ :with_weight => true)
115
+ end
116
+ end
117
+ end
118
+
107
119
  def define_double_array_trie_schema
108
120
  Groonga::Schema.define do |schema|
109
121
  schema.create_table("Accounts",
@@ -208,14 +220,26 @@ end
208
220
  create_table("Terms",
209
221
  :type => :patricia_trie,
210
222
  :key_type => "ShortText",
211
- :key_normalize => true,
212
223
  :default_tokenizer => "TokenBigram",
224
+ :normalizer => "NormalizerAuto",
213
225
  :force => true) do |table|
214
226
  end
215
227
 
216
228
  change_table("Terms") do |table|
217
- table.index("Items", "_key", :name => "Items__key")
218
- table.index("Items", "title", :name => "Items_title")
229
+ table.index("Items", "_key", :name => "Items__key", :with_position => true)
230
+ table.index("Items", "title", :name => "Items_title", :with_position => true)
231
+ end
232
+ SCHEMA
233
+ end
234
+
235
+ def test_weight_vector
236
+ define_weight_vector_schema
237
+ assert_equal(<<-SCHEMA, dump)
238
+ create_table("Memos",
239
+ :type => :patricia_trie,
240
+ :key_type => "ShortText",
241
+ :force => true) do |table|
242
+ table.short_text("tags", :type => :vector, :with_weight => true)
219
243
  end
220
244
  SCHEMA
221
245
  end
@@ -282,13 +306,21 @@ column_create Comments item COLUMN_SCALAR Items
282
306
  table_create Items TABLE_HASH_KEY --key_type ShortText
283
307
  column_create Items title COLUMN_SCALAR ShortText
284
308
 
285
- table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE --key_type ShortText --default_tokenizer TokenBigram
309
+ table_create Terms TABLE_PAT_KEY --key_type ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
286
310
 
287
311
  column_create Terms Items__key COLUMN_INDEX|WITH_POSITION Items _key
288
312
  column_create Terms Items_title COLUMN_INDEX|WITH_POSITION Items title
289
313
  SCHEMA
290
314
  end
291
315
 
316
+ def test_weight_vector
317
+ define_weight_vector_schema
318
+ assert_equal(<<-SCHEMA, dump)
319
+ table_create Memos TABLE_PAT_KEY --key_type ShortText
320
+ column_create Memos tags COLUMN_VECTOR|WITH_WEIGHT ShortText
321
+ SCHEMA
322
+ end
323
+
292
324
  def test_double_array_trie
293
325
  define_double_array_trie_schema
294
326
  assert_equal(<<-SCHEMA, dump)
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2011-2012 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2011-2014 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -350,4 +350,49 @@ load --table Users
350
350
  EOS
351
351
  end
352
352
  end
353
+
354
+ class WeightVectorIndexTest < self
355
+ def setup
356
+ Groonga::Schema.define do |schema|
357
+ schema.create_table("Products",
358
+ :type => :patricia_trie,
359
+ :key_type => "ShortText") do |table|
360
+ table.short_text("tags",
361
+ :type => :vector,
362
+ :with_weight => true)
363
+ end
364
+ end
365
+ end
366
+
367
+ def products
368
+ Groonga["Products"]
369
+ end
370
+
371
+ def test_weight
372
+ products.add("Groonga", :tags => [
373
+ {
374
+ :value => "groonga",
375
+ :weight => 100,
376
+ },
377
+ ])
378
+ products.add("Mroonga", :tags => [
379
+ {
380
+ :value => "mroonga",
381
+ :weight => 100,
382
+ },
383
+ {
384
+ :value => "groonga",
385
+ :weight => 10,
386
+ },
387
+ ])
388
+ assert_equal(<<-COMMAND, dump("Products"))
389
+ load --table Products
390
+ [
391
+ [\"_key\",\"tags\"],
392
+ [\"Groonga\",{\"groonga\":100}],
393
+ [\"Mroonga\",{\"groonga\":10,\"mroonga\":100}]
394
+ ]
395
+ COMMAND
396
+ end
397
+ end
353
398
  end
@@ -120,4 +120,16 @@ class TableSelectWeightTest < Test::Unit::TestCase
120
120
  [record.title, record.score]
121
121
  end
122
122
  end
123
+
124
+ def test_one_column_only
125
+ result = @comments.select do |record|
126
+ record.match("Hello") do |match_record|
127
+ match_record.title
128
+ end
129
+ end
130
+ assert_equal_select_result([["Hello", 1]],
131
+ result) do |record|
132
+ [record.title, record.score]
133
+ end
134
+ end
123
135
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -18,7 +18,10 @@ class VariableSizeColumnTest < Test::Unit::TestCase
18
18
 
19
19
  def setup
20
20
  setup_database
21
+ setup_schema
22
+ end
21
23
 
24
+ def setup_schema
22
25
  setup_users_table
23
26
  setup_users
24
27
  end
@@ -113,8 +116,9 @@ class VariableSizeColumnTest < Test::Unit::TestCase
113
116
  end
114
117
 
115
118
  def test_defrag
116
- 1000.times do |i|
117
- @users.add(:name => "user #{i}" * 1000)
119
+ large_data = "x" * (2 ** 16)
120
+ 100.times do |i|
121
+ @users.add(:name => "user #{i}" + large_data)
118
122
  end
119
123
  assert_equal(1, @name.defrag)
120
124
  end
@@ -232,5 +236,85 @@ class VariableSizeColumnTest < Test::Unit::TestCase
232
236
  groonga_org.modified_times.collect(&:key))
233
237
  end
234
238
  end
239
+
240
+ class WeightTest < self
241
+ def setup_schema
242
+ Groonga::Schema.define do |schema|
243
+ schema.create_table("Products",
244
+ :type => :patricia_trie,
245
+ :key_type => :short_text) do |table|
246
+ table.short_text("tags",
247
+ :type => :vector,
248
+ :with_weight => true)
249
+ end
250
+ end
251
+
252
+ @products = Groonga["Products"]
253
+ end
254
+
255
+ def test_string_key
256
+ groonga = @products.add("Groonga")
257
+ groonga.tags = [
258
+ {
259
+ "value" => "groonga",
260
+ "weight" => 100,
261
+ },
262
+ ]
263
+
264
+ assert_equal([
265
+ {
266
+ :value => "groonga",
267
+ :weight => 100,
268
+ },
269
+ ],
270
+ groonga.tags)
271
+ end
272
+
273
+ def test_array
274
+ groonga = @products.add("Groonga")
275
+ groonga.tags = [
276
+ {
277
+ :value => "groonga",
278
+ :weight => 100,
279
+ },
280
+ {
281
+ :value => "full text search",
282
+ :weight => 1000,
283
+ },
284
+ ]
285
+
286
+ assert_equal([
287
+ {
288
+ :value => "groonga",
289
+ :weight => 100,
290
+ },
291
+ {
292
+ :value => "full text search",
293
+ :weight => 1000,
294
+ },
295
+ ],
296
+ groonga.tags)
297
+ end
298
+
299
+ def test_hash
300
+ groonga = @products.add("Groonga")
301
+ groonga.tags = {
302
+ "groonga" => 100,
303
+ "full text search" => 1000,
304
+ }
305
+
306
+ assert_equal([
307
+ {
308
+ :value => "groonga",
309
+ :weight => 100,
310
+ },
311
+ {
312
+ :value => "full text search",
313
+ :weight => 1000,
314
+ },
315
+ ],
316
+ groonga.tags)
317
+ end
318
+ end
235
319
  end
236
320
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1204,7 +1204,11 @@ GRN_API grn_rc grn_text_time2rfc1123(grn_ctx *ctx, grn_obj *bulk, int sec);
1204
1204
  typedef struct _grn_obj_format grn_obj_format;
1205
1205
 
1206
1206
  #define GRN_OBJ_FORMAT_WITH_COLUMN_NAMES (0x01<<0)
1207
- #define GRN_OBJ_FORMAT_ASARRAY (0x01<<3)
1207
+ #define GRN_OBJ_FORMAT_AS_ARRAY (0x01<<3)
1208
+ /* Deprecated since 4.0.1. It will be removed at 5.0.0.
1209
+ Use GRN_OBJ_FORMAT_AS_ARRAY instead.*/
1210
+ #define GRN_OBJ_FORMAT_ASARRAY GRN_OBJ_FORMAT_AS_ARRAY
1211
+ #define GRN_OBJ_FORMAT_WITH_WEIGHT (0x01<<4)
1208
1212
 
1209
1213
  struct _grn_obj_format {
1210
1214
  grn_obj columns;
@@ -1691,6 +1695,7 @@ typedef unsigned int grn_expr_flags;
1691
1695
  #define GRN_EXPR_SYNTAX_QUERY (0x00)
1692
1696
  #define GRN_EXPR_SYNTAX_SCRIPT (0x01)
1693
1697
  #define GRN_EXPR_SYNTAX_OUTPUT_COLUMNS (0x20)
1698
+ #define GRN_EXPR_SYNTAX_ADJUSTER (0x40)
1694
1699
  #define GRN_EXPR_ALLOW_PRAGMA (0x02)
1695
1700
  #define GRN_EXPR_ALLOW_COLUMN (0x04)
1696
1701
  #define GRN_EXPR_ALLOW_UPDATE (0x08)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -11,10 +11,10 @@ pluginsdir=${libdir}/groonga/plugins
11
11
  groonga=${bindir}/groonga.exe
12
12
  groonga_httpd=${sbindir}/groonga-httpd.exe
13
13
  groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset.exe
14
- groonga_version=4.0.0
14
+ groonga_version=4.0.1
15
15
 
16
16
  Name: Groonga
17
17
  Description: An Embeddable Fulltext Search Engine
18
- Version: 4.0.0
18
+ Version: 4.0.1
19
19
  Libs: -L${libdir} -lgroonga
20
20
  Cflags: -I${includedir}/groonga
@@ -1,4 +1,4 @@
1
1
  # Sphinx build info version 1
2
2
  # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3
- config: 4af8da25a5f0f8c19df5f9bce6969edb
3
+ config: 33af4e772b9c6767bb9351f7c7dbb478
4
4
  tags: 645f666f9bcd5a90fca523b33c5a78b7
@@ -153,9 +153,9 @@ Install required packages to build groonga::
153
153
 
154
154
  Download source::
155
155
 
156
- % wget http://packages.groonga.org/source/groonga/groonga-4.0.0.tar.gz
157
- % tar xvzf groonga-4.0.0.tar.gz
158
- % cd groonga-4.0.0
156
+ % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
157
+ % tar xvzf groonga-4.0.1.tar.gz
158
+ % cd groonga-4.0.1
159
159
 
160
160
  Configure (see :ref:`source-configure` about ``configure`` options)::
161
161
 
@@ -145,9 +145,9 @@ Install required packages to build groonga::
145
145
 
146
146
  Download source::
147
147
 
148
- % wget http://packages.groonga.org/source/groonga/groonga-4.0.0.tar.gz
149
- % tar xvzf groonga-4.0.0.tar.gz
150
- % cd groonga-4.0.0
148
+ % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
149
+ % tar xvzf groonga-4.0.1.tar.gz
150
+ % cd groonga-4.0.1
151
151
 
152
152
  Configure (see :ref:`source-configure` about ``configure`` options)::
153
153
 
@@ -82,9 +82,9 @@ Install required packages to build groonga::
82
82
 
83
83
  Download source::
84
84
 
85
- % wget http://packages.groonga.org/source/groonga/groonga-4.0.0.tar.gz
86
- % tar xvzf groonga-4.0.0.tar.gz
87
- % cd groonga-4.0.0
85
+ % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
86
+ % tar xvzf groonga-4.0.1.tar.gz
87
+ % cd groonga-4.0.1
88
88
 
89
89
  Configure (see :ref:`source-configure` about ``configure`` options)::
90
90
 
@@ -40,9 +40,9 @@ Install `Xcode <https://developer.apple.com/xcode/>`_.
40
40
 
41
41
  Download source::
42
42
 
43
- % curl -O http://packages.groonga.org/source/groonga/groonga-4.0.0.tar.gz
44
- % tar xvzf groonga-4.0.0.tar.gz
45
- % cd groonga-4.0.0
43
+ % curl -O http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
44
+ % tar xvzf groonga-4.0.1.tar.gz
45
+ % cd groonga-4.0.1
46
46
 
47
47
  Configure (see :ref:`source-configure` about ``configure`` options)::
48
48
 
@@ -74,9 +74,9 @@ Build from source
74
74
  Groonga uses GNU build system. So the following is the simplest build
75
75
  steps::
76
76
 
77
- % wget http://packages.groonga.org/source/groonga/groonga-4.0.0.tar.gz
78
- % tar xvzf groonga-4.0.0.tar.gz
79
- % cd groonga-4.0.0
77
+ % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
78
+ % tar xvzf groonga-4.0.1.tar.gz
79
+ % cd groonga-4.0.1
80
80
  % ./configure
81
81
  % make
82
82
  % sudo make install
@@ -17,9 +17,9 @@ Install required packages to build groonga::
17
17
 
18
18
  Download source::
19
19
 
20
- % wget http://packages.groonga.org/source/groonga/groonga-4.0.0.tar.gz
21
- % gtar xvzf groonga-4.0.0.tar.gz
22
- % cd groonga-4.0.0
20
+ % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
21
+ % gtar xvzf groonga-4.0.1.tar.gz
22
+ % cd groonga-4.0.1
23
23
 
24
24
  Configure with ``CFLAGS="-m64" CXXFLAGS="-m64"`` variables. They are
25
25
  needed for building 64-bit version. To build 32-bit version, just
@@ -206,9 +206,9 @@ Install required packages to build groonga::
206
206
 
207
207
  Download source::
208
208
 
209
- % wget http://packages.groonga.org/source/groonga/groonga-4.0.0.tar.gz
210
- % tar xvzf groonga-4.0.0.tar.gz
211
- % cd groonga-4.0.0
209
+ % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
210
+ % tar xvzf groonga-4.0.1.tar.gz
211
+ % cd groonga-4.0.1
212
212
 
213
213
  Configure (see :ref:`source-configure` about ``configure`` options)::
214
214
 
@@ -21,14 +21,14 @@ Installer
21
21
  For 32-bit environment, download x86 executable binary from
22
22
  packages.groonga.org:
23
23
 
24
- * http://packages.groonga.org/windows/groonga/groonga-4.0.0-x86.exe
24
+ * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x86.exe
25
25
 
26
26
  Then run it.
27
27
 
28
28
  For 64-bit environment, download x64 executable binary from
29
29
  packages.goronga.org:
30
30
 
31
- * http://packages.groonga.org/windows/groonga/groonga-4.0.0-x64.exe
31
+ * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x64.exe
32
32
 
33
33
  Then run it.
34
34
 
@@ -41,14 +41,14 @@ zip
41
41
  For 32-bit environment, download x86 zip archive from
42
42
  packages.groonga.org:
43
43
 
44
- * http://packages.groonga.org/windows/groonga/groonga-4.0.0-x86.zip
44
+ * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x86.zip
45
45
 
46
46
  Then extract it.
47
47
 
48
48
  For 64-bit environment, download x64 zip archive from
49
49
  packages.groonga.org:
50
50
 
51
- * http://packages.groonga.org/windows/groonga/groonga-4.0.0-x64.zip
51
+ * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x64.zip
52
52
 
53
53
  Then extract it.
54
54
 
@@ -66,27 +66,27 @@ Windows. Here are required tools:
66
66
 
67
67
  Download zipped source from packages.groonga.org:
68
68
 
69
- * http://packages.groonga.org/source/groonga/groonga-4.0.0.zip
69
+ * http://packages.groonga.org/source/groonga/groonga-4.0.1.zip
70
70
 
71
71
  Then extract it.
72
72
 
73
73
  Move to the Groonga's source folder::
74
74
 
75
- > cd c:\Users\%USERNAME%\Downloads\groonga-4.0.0
75
+ > cd c:\Users\%USERNAME%\Downloads\groonga-4.0.1
76
76
 
77
77
  Configure by ``cmake``. The following commnad line is for 64-bit
78
78
  version. To build 32-bit version, use ``-G "Visual Studio 10"``
79
79
  parameter instead::
80
80
 
81
- groonga-4.0.0> cmake . -G "Visual Studio 10 Win64" -DCMAKE_INSTALL_PREFIX=C:\groonga
81
+ groonga-4.0.1> cmake . -G "Visual Studio 10 Win64" -DCMAKE_INSTALL_PREFIX=C:\groonga
82
82
 
83
83
  Build::
84
84
 
85
- groonga-4.0.0> cmake --build . --config Release
85
+ groonga-4.0.1> cmake --build . --config Release
86
86
 
87
87
  Install::
88
88
 
89
- groonga-4.0.0> cmake --build . --config Release --target Install
89
+ groonga-4.0.1> cmake --build . --config Release --target Install
90
90
 
91
91
  After the above steps, :doc:`/reference/executables/groonga` is found in
92
92
  ``c:\groonga\bin\groonga.exe``.
@@ -5,6 +5,47 @@
5
5
  News
6
6
  ====
7
7
 
8
+ .. _release-4-0-1:
9
+
10
+
11
+ Release 4.0.1 - 2014/03/29
12
+ --------------------------
13
+
14
+ Improvements
15
+ ^^^^^^^^^^^^
16
+
17
+ * [doc] Added a link in return value to detailed header description (:doc:`/reference/command/output_format`).
18
+ * Supported to inspect vector and object value in JSON load.
19
+ It shows more details about data which is failed to load.
20
+ * Added ``adjuster`` option to select command.
21
+ adjuster options accepts following syntax: INDEX_COLUMN @ STRING_LITERAL (* FACTOR).
22
+ * Supported :ref:`weight-vector-column`. You need to specify 'COLUMN_VECTOR|WITH_WEIGHT' flags
23
+ to create weight vector column.
24
+ * Added missing MIN/MAX macros on SunOS. [GitHub#154] [Patch by Sebastian Wiedenroth]
25
+ * Improved recycling garbage data. It suppress to increse database size.
26
+ * [doc] Added documentation about GET parameters for :doc:`/reference/executables/groonga-suggest-httpd`.
27
+ * [doc] Added documentation about :doc:`/reference/column`.
28
+ * [doc] Added documentation about :doc:`/reference/columns/vector`.
29
+ * [column_list] Supported to show weight vector column.
30
+ * [column_create] Added error check for creating multi column index without WITH_SECTION.
31
+ * [httpd] Enabled stub status module (NginxHttpStubStatusModule) for groonga-httpd. [Suggested by Masahiro Nagano]
32
+
33
+ Fixes
34
+ ^^^^^
35
+
36
+ * Fixed a bug that a division overflow caused a fatal error.
37
+ For example, it occurs when you execute 'COLUMN / -1' operation to Int32 or Int64 column. [#2307]
38
+ * Fixed a bug that '%' operations performs '/' operations. [#2307]
39
+ * [doc] Fixed a wrong documentation about :doc:`reference/commands/column_rename`.
40
+ * Fixed the issue that out of bound array element access may occurs. [GitHub#158] [Reported by dcb314]
41
+
42
+ Thanks
43
+ ^^^^^^
44
+
45
+ * nise_nabe
46
+ * Sebastian Wiedenroth
47
+ * dcb314
48
+
8
49
  .. _release-4-0-0:
9
50
 
10
51