rroonga 2.0.7-x86-mingw32 → 2.0.8-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (403) hide show
  1. data/ext/groonga/rb-grn.h +1 -1
  2. data/lib/1.8/groonga.so +0 -0
  3. data/lib/1.9/groonga.so +0 -0
  4. data/rroonga-build.rb +1 -1
  5. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  6. data/vendor/local/bin/groonga.exe +0 -0
  7. data/vendor/local/bin/libgroonga-0.dll +0 -0
  8. data/vendor/local/bin/libmecab-1.dll +0 -0
  9. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  10. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  11. data/vendor/local/bin/mecab-config +2 -2
  12. data/vendor/local/bin/mecab.exe +0 -0
  13. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
  14. data/vendor/local/etc/groonga/synonyms.tsv +5 -0
  15. data/vendor/local/include/groonga/groonga.h +77 -4
  16. data/vendor/local/include/groonga/groonga/plugin.h +45 -15
  17. data/vendor/local/include/groonga/groonga/tokenizer.h +62 -12
  18. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  19. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  20. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  21. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +41 -0
  22. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  23. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  24. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  25. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  26. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  27. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  28. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  29. data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
  30. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  31. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  32. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  33. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  34. data/vendor/local/lib/libgroonga.a +0 -0
  35. data/vendor/local/lib/libgroonga.dll.a +0 -0
  36. data/vendor/local/lib/libgroonga.la +2 -2
  37. data/vendor/local/lib/libmecab.a +0 -0
  38. data/vendor/local/lib/libmecab.dll.a +0 -0
  39. data/vendor/local/lib/libmecab.la +1 -1
  40. data/vendor/local/lib/libmsgpack.a +0 -0
  41. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  42. data/vendor/local/lib/libmsgpack.la +1 -1
  43. data/vendor/local/lib/libmsgpackc.a +0 -0
  44. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  45. data/vendor/local/lib/libmsgpackc.la +1 -1
  46. data/vendor/local/lib/pkgconfig/groonga.pc +4 -3
  47. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  48. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  49. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  50. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  51. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  52. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  53. data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +3 -3
  54. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +23 -0
  55. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +24 -3
  56. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  57. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +13 -3
  58. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  59. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  60. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  61. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +42 -3
  62. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +26 -16
  63. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +12 -2
  64. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +96 -1
  65. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +3 -3
  66. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +20 -0
  67. data/vendor/local/share/doc/groonga/en/html/_sources/reference/{command_version.txt → command/command_version.txt} +0 -0
  68. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/output_format.txt +228 -0
  69. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/return_code.txt +110 -0
  70. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +59 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +2 -0
  72. data/vendor/local/share/doc/groonga/en/html/_sources/reference/function.txt +20 -0
  73. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +25 -8
  74. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +120 -0
  75. data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +3 -1
  76. data/vendor/local/share/doc/groonga/{ja/html/_sources/reference/functions.txt → en/html/_sources/reference/query_expanders.txt} +3 -3
  77. data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +153 -0
  78. data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +12 -2
  79. data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +214 -0
  80. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  81. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  82. data/vendor/local/share/doc/groonga/en/html/contribution.html +11 -10
  83. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  84. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  85. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
  86. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  87. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +42 -19
  88. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  89. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  90. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  91. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  92. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  93. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  94. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  95. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  96. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
  97. data/vendor/local/share/doc/groonga/en/html/index.html +62 -52
  98. data/vendor/local/share/doc/groonga/en/html/install.html +7 -6
  99. data/vendor/local/share/doc/groonga/en/html/install/centos.html +26 -8
  100. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  101. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +17 -8
  102. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  103. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  104. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  105. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +47 -10
  106. data/vendor/local/share/doc/groonga/en/html/install/windows.html +25 -16
  107. data/vendor/local/share/doc/groonga/en/html/limitations.html +23 -13
  108. data/vendor/local/share/doc/groonga/en/html/news.html +175 -67
  109. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  110. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  111. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  112. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  113. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  114. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  115. data/vendor/local/share/doc/groonga/en/html/reference.html +43 -41
  116. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  117. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  118. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  119. data/vendor/local/share/doc/groonga/en/html/reference/{commands.html → command.html} +49 -44
  120. data/vendor/local/share/doc/groonga/en/html/reference/{command_version.html → command/command_version.html} +46 -46
  121. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +356 -0
  122. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +248 -0
  123. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +33 -33
  124. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +32 -32
  125. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +32 -32
  126. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +32 -32
  127. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +32 -32
  128. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +32 -32
  129. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +34 -34
  130. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +32 -32
  131. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -32
  132. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +30 -30
  133. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +34 -34
  134. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +34 -34
  135. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +34 -34
  136. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +36 -36
  137. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +31 -31
  138. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +190 -0
  139. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +92 -92
  140. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +30 -30
  141. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +32 -32
  142. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +34 -34
  143. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +32 -32
  144. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +30 -30
  145. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +32 -32
  146. data/vendor/local/share/doc/groonga/en/html/reference/commands/view_add.html +32 -32
  147. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
  149. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
  150. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  151. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +6 -6
  153. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +6 -6
  155. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/reference/{functions.html → function.html} +15 -9
  158. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +13 -13
  159. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +98 -16
  160. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +8 -8
  161. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +8 -8
  162. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +8 -8
  163. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +13 -13
  164. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +303 -0
  165. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  167. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +11 -11
  168. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +12 -12
  169. data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
  170. data/vendor/local/share/doc/groonga/en/html/reference/output.html +10 -10
  171. data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +10 -10
  172. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +138 -0
  173. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +315 -0
  174. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +15 -15
  175. data/vendor/local/share/doc/groonga/en/html/reference/type.html +27 -27
  176. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  178. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +19 -8
  182. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/spec.html +12 -11
  185. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +412 -0
  186. data/vendor/local/share/doc/groonga/en/html/spec/search.html +22 -22
  187. data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  198. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  207. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  208. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +3 -3
  209. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +23 -0
  210. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +24 -3
  211. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  212. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +13 -3
  213. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  214. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  215. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  216. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +42 -3
  217. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +26 -16
  218. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +12 -2
  219. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +96 -1
  220. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +3 -3
  221. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +20 -0
  222. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/{command_version.txt → command/command_version.txt} +0 -0
  223. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/output_format.txt +228 -0
  224. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/return_code.txt +110 -0
  225. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +59 -0
  226. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +2 -0
  227. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/function.txt +20 -0
  228. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +25 -8
  229. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +120 -0
  230. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +3 -1
  231. data/vendor/local/share/doc/groonga/{source/reference/functions.txt → ja/html/_sources/reference/query_expanders.txt} +3 -3
  232. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +153 -0
  233. data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +12 -2
  234. data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +214 -0
  235. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  236. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  237. data/vendor/local/share/doc/groonga/ja/html/contribution.html +11 -10
  238. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  239. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  240. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
  241. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  242. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +42 -19
  243. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  244. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  245. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  246. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  247. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  248. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  249. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  250. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  251. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
  252. data/vendor/local/share/doc/groonga/ja/html/index.html +63 -53
  253. data/vendor/local/share/doc/groonga/ja/html/install.html +7 -6
  254. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +26 -8
  255. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  256. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +17 -8
  257. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  258. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  259. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  260. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +45 -10
  261. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +25 -16
  262. data/vendor/local/share/doc/groonga/ja/html/limitations.html +21 -11
  263. data/vendor/local/share/doc/groonga/ja/html/news.html +155 -68
  264. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  265. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  266. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  267. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  268. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  269. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  270. data/vendor/local/share/doc/groonga/ja/html/reference.html +44 -42
  271. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  272. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
  273. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  274. data/vendor/local/share/doc/groonga/ja/html/reference/{commands.html → command.html} +48 -44
  275. data/vendor/local/share/doc/groonga/ja/html/reference/{command_version.html → command/command_version.html} +47 -47
  276. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +331 -0
  277. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +237 -0
  278. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +33 -33
  279. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +32 -32
  280. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +32 -32
  281. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +32 -32
  282. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +32 -32
  283. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +32 -32
  284. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +34 -34
  285. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +32 -32
  286. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -32
  287. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +30 -30
  288. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +34 -34
  289. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +34 -34
  290. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +34 -34
  291. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +36 -36
  292. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +31 -31
  293. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +183 -0
  294. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +107 -107
  295. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +30 -30
  296. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +32 -32
  297. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +37 -37
  298. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +32 -32
  299. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +30 -30
  300. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +32 -32
  301. data/vendor/local/share/doc/groonga/ja/html/reference/commands/view_add.html +32 -32
  302. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
  303. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
  304. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
  305. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  306. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  307. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +6 -6
  308. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +9 -9
  309. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
  310. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  311. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  312. data/vendor/local/share/doc/groonga/ja/html/reference/{functions.html → function.html} +13 -9
  313. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +13 -13
  314. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +96 -15
  315. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +8 -8
  316. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +8 -8
  317. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +8 -8
  318. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +13 -13
  319. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +281 -0
  320. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +12 -12
  321. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +12 -12
  322. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +17 -17
  323. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +12 -12
  324. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +9 -9
  325. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +13 -13
  326. data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +10 -10
  327. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +139 -0
  328. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +278 -0
  329. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +15 -15
  330. data/vendor/local/share/doc/groonga/ja/html/reference/type.html +27 -27
  331. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  332. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  333. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  334. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  335. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  336. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +17 -8
  337. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  338. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  339. data/vendor/local/share/doc/groonga/ja/html/spec.html +12 -11
  340. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +404 -0
  341. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +22 -22
  342. data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
  343. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
  344. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  345. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  346. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  347. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  348. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  349. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  350. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  351. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +7 -7
  352. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  353. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  354. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  355. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  356. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  357. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  358. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  359. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  360. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  361. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  362. data/vendor/local/share/doc/groonga/source/contribution.txt +3 -3
  363. data/vendor/local/share/doc/groonga/source/contribution/development/release.txt +23 -0
  364. data/vendor/local/share/doc/groonga/source/example/reference/commands/register/query_expanders_tsv.log +4 -0
  365. data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_equator.log +26 -0
  366. data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_meridian.log +26 -0
  367. data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_the_date_line.log +26 -0
  368. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage.log +28 -0
  369. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_basic.log +29 -0
  370. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_setup.log +17 -0
  371. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_string_literal.log +28 -0
  372. data/vendor/local/share/doc/groonga/source/install/centos.txt +24 -3
  373. data/vendor/local/share/doc/groonga/source/install/debian.txt +3 -3
  374. data/vendor/local/share/doc/groonga/source/install/fedora.txt +13 -3
  375. data/vendor/local/share/doc/groonga/source/install/mac_os_x.txt +3 -3
  376. data/vendor/local/share/doc/groonga/source/install/others.txt +3 -3
  377. data/vendor/local/share/doc/groonga/source/install/solaris.txt +3 -3
  378. data/vendor/local/share/doc/groonga/source/install/ubuntu.txt +42 -3
  379. data/vendor/local/share/doc/groonga/source/install/windows.txt +26 -16
  380. data/vendor/local/share/doc/groonga/source/limitations.txt +12 -2
  381. data/vendor/local/share/doc/groonga/source/news.txt +96 -1
  382. data/vendor/local/share/doc/groonga/source/reference.txt +3 -3
  383. data/vendor/local/share/doc/groonga/source/reference/command.txt +20 -0
  384. data/vendor/local/share/doc/groonga/source/reference/{command_version.txt → command/command_version.txt} +0 -0
  385. data/vendor/local/share/doc/groonga/source/reference/command/output_format.txt +228 -0
  386. data/vendor/local/share/doc/groonga/source/reference/command/return_code.txt +110 -0
  387. data/vendor/local/share/doc/groonga/source/reference/commands/register.txt +59 -0
  388. data/vendor/local/share/doc/groonga/source/reference/commands/select.txt +2 -0
  389. data/vendor/local/share/doc/groonga/source/reference/function.txt +20 -0
  390. data/vendor/local/share/doc/groonga/source/reference/functions/geo_distance.txt +25 -8
  391. data/vendor/local/share/doc/groonga/source/reference/functions/snippet_html.txt +120 -0
  392. data/vendor/local/share/doc/groonga/source/reference/indexing.txt +3 -1
  393. data/vendor/local/share/doc/groonga/{en/html/_sources/reference/functions.txt → source/reference/query_expanders.txt} +3 -3
  394. data/vendor/local/share/doc/groonga/source/reference/query_expanders/tsv.txt +153 -0
  395. data/vendor/local/share/doc/groonga/source/server/http/comparison.txt +12 -2
  396. data/vendor/local/share/doc/groonga/source/spec/gqtp.txt +214 -0
  397. data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +5 -2
  398. data/vendor/local/share/man/ja/man1/groonga.1 +1589 -218
  399. data/vendor/local/share/man/man1/groonga.1 +1685 -190
  400. metadata +66 -18
  401. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands.txt +0 -15
  402. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands.txt +0 -15
  403. data/vendor/local/share/doc/groonga/source/reference/commands.txt +0 -15
data/ext/groonga/rb-grn.h CHANGED
@@ -76,7 +76,7 @@ RB_GRN_BEGIN_DECLS
76
76
 
77
77
  #define RB_GRN_MAJOR_VERSION 2
78
78
  #define RB_GRN_MINOR_VERSION 0
79
- #define RB_GRN_MICRO_VERSION 7
79
+ #define RB_GRN_MICRO_VERSION 8
80
80
 
81
81
  #define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
82
82
 
data/lib/1.8/groonga.so CHANGED
Binary file
data/lib/1.9/groonga.so CHANGED
Binary file
data/rroonga-build.rb CHANGED
@@ -19,7 +19,7 @@ module RroongaBuild
19
19
  module RequiredGroongaVersion
20
20
  MAJOR = 2
21
21
  MINOR = 0
22
- MICRO = 7
22
+ MICRO = 9
23
23
  VERSION = [MAJOR, MINOR, MICRO]
24
24
  end
25
25
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- prefix=/home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86
3
+ prefix=/home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86
4
4
  exec_prefix=${prefix}
5
5
  exec_prefix_set=no
6
6
 
@@ -107,7 +107,7 @@ while test $# -gt 0; do
107
107
  ;;
108
108
 
109
109
  --libexecdir)
110
- echo /home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86/libexec/mecab
110
+ echo /home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86/libexec/mecab
111
111
  ;;
112
112
 
113
113
  --sysconfdir)
Binary file
@@ -15,7 +15,7 @@ http {
15
15
  keepalive_timeout 65;
16
16
 
17
17
  # The default groonga database path.
18
- groonga_database /home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86/var/lib/groonga/db/db;
18
+ groonga_database /home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86/var/lib/groonga/db/db;
19
19
 
20
20
  # Create a groonga database automatically if the groonga database doesn't
21
21
  # exist.
@@ -37,7 +37,7 @@ http {
37
37
  }
38
38
 
39
39
  location / {
40
- root /home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86/share/groonga/html/admin;
40
+ root /home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86/share/groonga/html/admin;
41
41
  index index.html;
42
42
  }
43
43
 
@@ -0,0 +1,5 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # key[TAB]synonym1[TAB]synonym2[TAB]...
4
+ #
5
+ #groonga groonga rroonga mroonga
@@ -151,6 +151,23 @@ typedef enum {
151
151
  GRN_LOG_DUMP
152
152
  } grn_log_level;
153
153
 
154
+ /* query log flags */
155
+ #define GRN_QUERY_LOG_NONE (0x00)
156
+ #define GRN_QUERY_LOG_COMMAND (0x01<<0)
157
+ #define GRN_QUERY_LOG_RESULT_CODE (0x01<<1)
158
+ #define GRN_QUERY_LOG_DESTINATION (0x01<<2)
159
+ #define GRN_QUERY_LOG_CACHE (0x01<<3)
160
+ #define GRN_QUERY_LOG_SIZE (0x01<<4)
161
+ #define GRN_QUERY_LOG_SCORE (0x01<<5)
162
+ #define GRN_QUERY_LOG_ALL\
163
+ (GRN_QUERY_LOG_COMMAND |\
164
+ GRN_QUERY_LOG_RESULT_CODE |\
165
+ GRN_QUERY_LOG_DESTINATION |\
166
+ GRN_QUERY_LOG_CACHE |\
167
+ GRN_QUERY_LOG_SIZE |\
168
+ GRN_QUERY_LOG_SCORE)
169
+ #define GRN_QUERY_LOG_DEFAULT GRN_QUERY_LOG_ALL
170
+
154
171
  typedef enum {
155
172
  GRN_CONTENT_NONE = 0,
156
173
  GRN_CONTENT_TSV,
@@ -615,6 +632,8 @@ GRN_API const char *grn_plugin_get_suffix(void);
615
632
  /**
616
633
  * grn_proc_create:
617
634
  * @name: 作成するprocの名前。
635
+ * @name_size: The number of bytes of @name. If -1 is specified, @name
636
+ * is handled as a NULL terminated string.
618
637
  * @type: procの種類。
619
638
  * @init: 初期化関数のポインタ
620
639
  * @next: 実処理関数のポインタ
@@ -641,7 +660,7 @@ typedef enum {
641
660
  } grn_proc_type;
642
661
 
643
662
  GRN_API grn_obj *grn_proc_create(grn_ctx *ctx,
644
- const char *name, unsigned int name_size, grn_proc_type type,
663
+ const char *name, int name_size, grn_proc_type type,
645
664
  grn_proc_func *init, grn_proc_func *next, grn_proc_func *fin,
646
665
  unsigned int nvars, grn_expr_var *vars);
647
666
  /**
@@ -1985,6 +2004,8 @@ struct _grn_snip_mapping {
1985
2004
  #define GRN_SNIP_COPY_TAG (0x01<<1)
1986
2005
  #define GRN_SNIP_SKIP_LEADING_SPACES (0x01<<2)
1987
2006
 
2007
+ #define GRN_SNIP_MAPPING_HTML_ESCAPE ((grn_snip_mapping *)-1)
2008
+
1988
2009
  /* grn_snip_open() should return grn_obj * instead.
1989
2010
  * TODO: 3.0 */
1990
2011
  GRN_API grn_snip *grn_snip_open(grn_ctx *ctx, int flags, unsigned int width,
@@ -2048,6 +2069,35 @@ GRN_API grn_log_level grn_default_logger_get_max_level();
2048
2069
  }\
2049
2070
  } while (0)
2050
2071
 
2072
+ typedef struct _grn_query_logger_info grn_query_logger_info;
2073
+
2074
+ struct _grn_query_logger_info {
2075
+ unsigned int flags;
2076
+ grn_user_data *user_data;
2077
+ void (*log)(grn_ctx *ctx, unsigned int flag,
2078
+ const char *timestamp, const char *info, const char *message,
2079
+ grn_user_data *user_data);
2080
+ void (*reopen)(grn_ctx *ctx, grn_user_data *user_data);
2081
+ void (*fin)(grn_ctx *ctx, grn_user_data *user_data);
2082
+ };
2083
+
2084
+ GRN_API grn_rc grn_query_logger_info_set(grn_ctx *ctx, const grn_query_logger_info *info);
2085
+
2086
+ GRN_API void grn_query_logger_put(grn_ctx *ctx, unsigned int flag,
2087
+ const char *mark,
2088
+ const char *format, ...) GRN_ATTRIBUTE_PRINTF(4);
2089
+
2090
+ GRN_API grn_bool grn_query_logger_pass(grn_ctx *ctx, unsigned int flag);
2091
+
2092
+ GRN_API void grn_default_query_logger_set_flags(unsigned int flags);
2093
+ GRN_API unsigned int grn_default_query_logger_get_flags(void);
2094
+
2095
+ #define GRN_QUERY_LOG(ctx, flag, mark, format, ...) do {\
2096
+ if (grn_query_logger_pass(ctx, flag)) {\
2097
+ grn_query_logger_put(ctx, (flag), (mark), format, __VA_ARGS__);\
2098
+ }\
2099
+ } while (0)
2100
+
2051
2101
  /* grn_bulk */
2052
2102
 
2053
2103
  #define GRN_BULK_BUFSIZE (sizeof(grn_obj) - sizeof(grn_obj_header))
@@ -2134,6 +2184,7 @@ struct _grn_obj_format {
2134
2184
  int limit;
2135
2185
  int hits_offset;
2136
2186
  int flags;
2187
+ grn_obj *expression;
2137
2188
  };
2138
2189
 
2139
2190
  #define GRN_OBJ_FORMAT_INIT(format,format_nhits,format_offset,format_limit,format_hits_offset) do { \
@@ -2142,6 +2193,7 @@ struct _grn_obj_format {
2142
2193
  (format)->offset = (format_offset);\
2143
2194
  (format)->limit = (format_limit);\
2144
2195
  (format)->hits_offset = (format_hits_offset);\
2196
+ (format)->expression = NULL;\
2145
2197
  } while (0)
2146
2198
 
2147
2199
  #define GRN_OBJ_FORMAT_FIN(ctx,format) do {\
@@ -2149,6 +2201,7 @@ struct _grn_obj_format {
2149
2201
  grn_obj **columns = (grn_obj **)GRN_BULK_HEAD(&(format)->columns);\
2150
2202
  while (ncolumns--) { grn_obj_unlink((ctx), *columns++); }\
2151
2203
  GRN_OBJ_FIN((ctx), &(format)->columns);\
2204
+ if ((format)->expression) { GRN_OBJ_FIN((ctx), (format)->expression); } \
2152
2205
  } while (0)
2153
2206
 
2154
2207
  GRN_API void grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
@@ -2156,6 +2209,24 @@ GRN_API void grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type outp
2156
2209
  GRN_API void grn_output_envelope(grn_ctx *ctx, grn_rc rc,
2157
2210
  grn_obj *head, grn_obj *body, grn_obj *foot,
2158
2211
  const char *file, int line);
2212
+
2213
+ GRN_API void grn_ctx_output_array_open(grn_ctx *ctx,
2214
+ const char *name, int nelements);
2215
+ GRN_API void grn_ctx_output_array_close(grn_ctx *ctx);
2216
+ GRN_API void grn_ctx_output_map_open(grn_ctx *ctx,
2217
+ const char *name, int nelements);
2218
+ GRN_API void grn_ctx_output_map_close(grn_ctx *ctx);
2219
+ GRN_API void grn_ctx_output_int32(grn_ctx *ctx, int value);
2220
+ GRN_API void grn_ctx_output_int64(grn_ctx *ctx, long long int value);
2221
+ GRN_API void grn_ctx_output_float(grn_ctx *ctx, double value);
2222
+ GRN_API void grn_ctx_output_cstr(grn_ctx *ctx, const char *value);
2223
+ GRN_API void grn_ctx_output_str(grn_ctx *ctx,
2224
+ const char *value, unsigned int value_len);
2225
+ GRN_API void grn_ctx_output_bool(grn_ctx *ctx, grn_bool value);
2226
+ GRN_API void grn_ctx_output_obj(grn_ctx *ctx,
2227
+ grn_obj *value, grn_obj_format *format);
2228
+
2229
+
2159
2230
  GRN_API const char *grn_ctx_get_mime_type(grn_ctx *ctx);
2160
2231
  GRN_API void grn_ctx_recv_handler_set(grn_ctx *,
2161
2232
  void (*func)(grn_ctx *, int, void *),
@@ -2478,9 +2549,10 @@ GRN_API grn_rc grn_str_close(grn_ctx *ctx, grn_str *nstr);
2478
2549
 
2479
2550
  /* grn_string */
2480
2551
 
2481
- #define GRN_STRING_REMOVE_BLANK (0x01<<0)
2482
- #define GRN_STRING_WITH_TYPES (0x01<<1)
2483
- #define GRN_STRING_WITH_CHECKS (0x01<<2)
2552
+ #define GRN_STRING_REMOVE_BLANK (0x01<<0)
2553
+ #define GRN_STRING_WITH_TYPES (0x01<<1)
2554
+ #define GRN_STRING_WITH_CHECKS (0x01<<2)
2555
+ #define GRN_STRING_REMOVE_TOKENIZED_DELIMITER (0x01<<3)
2484
2556
 
2485
2557
  #define GRN_NORMALIZER_AUTO ((grn_obj *)1)
2486
2558
 
@@ -2576,6 +2648,7 @@ typedef unsigned int grn_expr_flags;
2576
2648
 
2577
2649
  #define GRN_EXPR_SYNTAX_QUERY (0x00)
2578
2650
  #define GRN_EXPR_SYNTAX_SCRIPT (0x01)
2651
+ #define GRN_EXPR_SYNTAX_OUTPUT_COLUMNS (0x20)
2579
2652
  #define GRN_EXPR_ALLOW_PRAGMA (0x02)
2580
2653
  #define GRN_EXPR_ALLOW_COLUMN (0x04)
2581
2654
  #define GRN_EXPR_ALLOW_UPDATE (0x08)
@@ -44,12 +44,12 @@ GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_FIN(grn_ctx *ctx);
44
44
  Don't call these functions directly. Use GRN_PLUGIN_MALLOC(),
45
45
  GRN_PLUGIN_REALLOC() and GRN_PLUGIN_FREE() instead.
46
46
  */
47
- void *grn_plugin_malloc(grn_ctx *ctx, size_t size, const char *file,
48
- int line, const char *func);
47
+ GRN_PLUGIN_EXPORT void *grn_plugin_malloc(grn_ctx *ctx, size_t size, const char *file,
48
+ int line, const char *func);
49
49
  void *grn_plugin_realloc(grn_ctx *ctx, void *ptr, size_t size,
50
50
  const char *file, int line, const char *func);
51
- void grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file,
52
- int line, const char *func);
51
+ GRN_PLUGIN_EXPORT void grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file,
52
+ int line, const char *func);
53
53
 
54
54
  /*
55
55
  GRN_PLUGIN_MALLOC() allocates `size' bytes and returns a pointer to the
@@ -86,17 +86,17 @@ void grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file,
86
86
  Don't call grn_plugin_set_error() directly. This function is used in
87
87
  GRN_PLUGIN_SET_ERROR().
88
88
  */
89
- void grn_plugin_set_error(grn_ctx *ctx, grn_log_level level,
90
- grn_rc error_code,
91
- const char *file, int line, const char *func,
92
- const char *format, ...) GRN_ATTRIBUTE_PRINTF(7);
89
+ GRN_PLUGIN_EXPORT void grn_plugin_set_error(grn_ctx *ctx, grn_log_level level,
90
+ grn_rc error_code,
91
+ const char *file, int line, const char *func,
92
+ const char *format, ...) GRN_ATTRIBUTE_PRINTF(7);
93
93
 
94
94
  /*
95
95
  Don't call these functions directly. grn_plugin_backtrace() and
96
96
  grn_plugin_logtrace() are used in GRN_PLUGIN_SET_ERROR().
97
97
  */
98
- void grn_plugin_backtrace(grn_ctx *ctx);
99
- void grn_plugin_logtrace(grn_ctx *ctx, grn_log_level level);
98
+ GRN_PLUGIN_EXPORT void grn_plugin_backtrace(grn_ctx *ctx);
99
+ GRN_PLUGIN_EXPORT void grn_plugin_logtrace(grn_ctx *ctx, grn_log_level level);
100
100
 
101
101
  /*
102
102
  Don't use GRN_PLUGIN_SET_ERROR() directly. This macro is used in
@@ -126,30 +126,60 @@ void grn_plugin_logtrace(grn_ctx *ctx, grn_log_level level);
126
126
  typedef struct _grn_plugin_mutex grn_plugin_mutex;
127
127
 
128
128
  /*
129
- grn_plugin_mutex_create() returns a pointer to a new object of
129
+ grn_plugin_mutex_open() returns a pointer to a new object of
130
130
  grn_plugin_mutex. Memory for the new object is obtained with
131
- GRN_PLUGIN_MALLOC(). grn_plugin_mutex_create() returns NULL if sufficient
131
+ GRN_PLUGIN_MALLOC(). grn_plugin_mutex_open() returns NULL if sufficient
132
132
  memory is not available.
133
133
  */
134
+ GRN_PLUGIN_EXPORT grn_plugin_mutex *grn_plugin_mutex_open(grn_ctx *ctx);
135
+
136
+ /*
137
+ grn_plugin_mutex_create() is deprecated. Use grn_plugin_mutex_open()
138
+ instead.
139
+ */
134
140
  grn_plugin_mutex *grn_plugin_mutex_create(grn_ctx *ctx);
135
141
 
136
142
  /*
137
- grn_plugin_mutex_destroy() finalizes an object of grn_plugin_mutex and then
143
+ grn_plugin_mutex_close() finalizes an object of grn_plugin_mutex and then
138
144
  frees memory allocated for that object.
139
145
  */
146
+ GRN_PLUGIN_EXPORT void grn_plugin_mutex_close(grn_ctx *ctx, grn_plugin_mutex *mutex);
147
+
148
+ /*
149
+ grn_plugin_mutex_destroy() is deprecated. Use grn_plugin_mutex_close()
150
+ instead.
151
+ */
140
152
  void grn_plugin_mutex_destroy(grn_ctx *ctx, grn_plugin_mutex *mutex);
141
153
 
142
154
  /*
143
155
  grn_plugin_mutex_lock() locks a mutex object. If the object is already
144
156
  locked, the calling thread waits until the object will be unlocked.
145
157
  */
146
- void grn_plugin_mutex_lock(grn_ctx *ctx, grn_plugin_mutex *mutex);
158
+ GRN_PLUGIN_EXPORT void grn_plugin_mutex_lock(grn_ctx *ctx, grn_plugin_mutex *mutex);
147
159
 
148
160
  /*
149
161
  grn_plugin_mutex_unlock() unlocks a mutex object. grn_plugin_mutex_unlock()
150
162
  should not be called for an unlocked object.
151
163
  */
152
- void grn_plugin_mutex_unlock(grn_ctx *ctx, grn_plugin_mutex *mutex);
164
+ GRN_PLUGIN_EXPORT void grn_plugin_mutex_unlock(grn_ctx *ctx, grn_plugin_mutex *mutex);
165
+
166
+ /*
167
+ grn_plugin_proc_alloc() allocates a `grn_obj` object.
168
+ You can use it in function that is registered as GRN_PROC_FUNCTION.
169
+ */
170
+ GRN_PLUGIN_EXPORT grn_obj *grn_plugin_proc_alloc(grn_ctx *ctx, grn_user_data *user_data,
171
+ grn_id domain, grn_obj_flags flags);
172
+
173
+ /*
174
+ grn_plugin_win32_base_dir() returns the groonga install directory.
175
+ The install directory is computed from the directory that has
176
+ `groonga.dll`. You can use the directory to generate install
177
+ directory aware path.
178
+
179
+ It only works on Windows. It returns `NULL` on other platforms.
180
+ */
181
+ GRN_PLUGIN_EXPORT const char *grn_plugin_win32_base_dir(void);
182
+
153
183
 
154
184
  #ifdef __cplusplus
155
185
  }
@@ -26,6 +26,9 @@
26
26
  extern "C" {
27
27
  #endif /* __cplusplus */
28
28
 
29
+ #define GRN_TOKENIZER_TOKENIZED_DELIMITER_UTF8 "\xEF\xBF\xBE"
30
+ #define GRN_TOKENIZER_TOKENIZED_DELIMITER_UTF8_LEN 3
31
+
29
32
  /*
30
33
  grn_tokenizer_charlen() returns the length (#bytes) of the first character
31
34
  in the string specified by `str_ptr' and `str_length'. If the starting bytes
@@ -43,6 +46,26 @@ int grn_tokenizer_charlen(grn_ctx *ctx, const char *str_ptr,
43
46
  int grn_tokenizer_isspace(grn_ctx *ctx, const char *str_ptr,
44
47
  unsigned int str_length, grn_encoding encoding);
45
48
 
49
+ /*
50
+ grn_tokenizer_is_tokenized_delimiter() returns whether is the first
51
+ character in the string specified by `str_ptr' and `str_length' the
52
+ special tokenized delimiter character or not.
53
+ */
54
+ grn_bool grn_tokenizer_is_tokenized_delimiter(grn_ctx *ctx,
55
+ const char *str_ptr,
56
+ unsigned int str_length,
57
+ grn_encoding encoding);
58
+
59
+ /*
60
+ grn_tokenizer_have_tokenized_delimiter() returns whether is there
61
+ the special delimiter character in the string specified by `str_ptr'
62
+ and `str_length' the special tokenized delimiter character or not.
63
+ */
64
+ GRN_PLUGIN_EXPORT grn_bool grn_tokenizer_have_tokenized_delimiter(grn_ctx *ctx,
65
+ const char *str_ptr,
66
+ unsigned int str_length,
67
+ grn_encoding encoding);
68
+
46
69
  /*
47
70
  grn_tokenizer_query is a structure for storing a query. See the following
48
71
  functions.
@@ -58,20 +81,34 @@ struct _grn_tokenizer_query {
58
81
  };
59
82
 
60
83
  /*
61
- grn_tokenizer_query_create() parses `args' and returns a new object of
84
+ grn_tokenizer_query_open() parses `args' and returns a new object of
62
85
  grn_tokenizer_query. The new object stores information of the query.
63
86
  grn_tokenizer_query_create() normalizes the query if the target table
64
87
  requires normalization. grn_tokenizer_query_create() returns NULL if
65
88
  something goes wrong. Note that grn_tokenizer_query_create() must be called
66
89
  just once in the function that initializes a tokenizer.
67
90
  */
91
+ GRN_PLUGIN_EXPORT grn_tokenizer_query *grn_tokenizer_query_open(grn_ctx *ctx,
92
+ int num_args, grn_obj **args);
93
+
94
+ /*
95
+ grn_tokenizer_query_create() is deprecated. Use grn_tokenizer_query_open()
96
+ instead.
97
+ */
98
+
68
99
  grn_tokenizer_query *grn_tokenizer_query_create(grn_ctx *ctx,
69
100
  int num_args, grn_obj **args);
70
101
 
71
102
  /*
72
- grn_tokenizer_mutex_destroy() finalizes an object of grn_tokenizer_mutex
103
+ grn_tokenizer_query_close() finalizes an object of grn_tokenizer_query
73
104
  and then frees memory allocated for that object.
74
105
  */
106
+ GRN_PLUGIN_EXPORT void grn_tokenizer_query_close(grn_ctx *ctx, grn_tokenizer_query *query);
107
+
108
+ /*
109
+ grn_tokenizer_query_destroy() is deprecated. Use grn_tokenizer_query_close()
110
+ instead.
111
+ */
75
112
  void grn_tokenizer_query_destroy(grn_ctx *ctx, grn_tokenizer_query *query);
76
113
 
77
114
  /*
@@ -90,13 +127,13 @@ struct _grn_tokenizer_token {
90
127
  grn_tokenizer_token_init() initializes `token'. Note that an initialized
91
128
  object must be finalized by grn_tokenizer_token_fin().
92
129
  */
93
- void grn_tokenizer_token_init(grn_ctx *ctx, grn_tokenizer_token *token);
130
+ GRN_PLUGIN_EXPORT void grn_tokenizer_token_init(grn_ctx *ctx, grn_tokenizer_token *token);
94
131
 
95
132
  /*
96
133
  grn_tokenizer_token_fin() finalizes `token' that has been initialized by
97
134
  grn_tokenizer_token_init().
98
135
  */
99
- void grn_tokenizer_token_fin(grn_ctx *ctx, grn_tokenizer_token *token);
136
+ GRN_PLUGIN_EXPORT void grn_tokenizer_token_fin(grn_ctx *ctx, grn_tokenizer_token *token);
100
137
 
101
138
  /*
102
139
  grn_tokenizer_status provides a list of tokenizer status codes.
@@ -111,16 +148,29 @@ typedef enum {
111
148
  } grn_tokenizer_status;
112
149
 
113
150
  /*
114
- grn_tokenizer_token_push() pushes the next token in `*token'. Note that
151
+ grn_tokenizer_token_push() pushes the next token into `token'. Note that
115
152
  grn_tokenizer_token_push() does not make a copy of the given string. This
116
153
  means that you have to maintain a memory space allocated to the string.
117
154
  Also note that the grn_tokenizer_token object must be maintained until the
118
155
  request for the next token or finalization comes. See grn_tokenizer_status in
119
156
  this header for more details of `status'.
120
157
  */
121
- void grn_tokenizer_token_push(grn_ctx *ctx, grn_tokenizer_token *token,
122
- const char *str_ptr, unsigned int str_length,
123
- grn_tokenizer_status status);
158
+ GRN_PLUGIN_EXPORT void grn_tokenizer_token_push(grn_ctx *ctx, grn_tokenizer_token *token,
159
+ const char *str_ptr, unsigned int str_length,
160
+ grn_tokenizer_status status);
161
+
162
+ /*
163
+ grn_tokenizer_tokenized_delimiter_next() extracts the next token
164
+ from the string specified by `str_ptr' and `str_length' and pushes
165
+ the next token into `token'. It returns the string after the next
166
+ token. The returned string may be `NULL' when all tokens are
167
+ extracted.
168
+ */
169
+ GRN_PLUGIN_EXPORT const char *grn_tokenizer_tokenized_delimiter_next(grn_ctx *ctx,
170
+ grn_tokenizer_token *token,
171
+ const char *str_ptr,
172
+ unsigned int str_length,
173
+ grn_encoding encoding);
124
174
 
125
175
  /*
126
176
  grn_tokenizer_register() registers a plugin to the database which is
@@ -134,10 +184,10 @@ void grn_tokenizer_token_push(grn_ctx *ctx, grn_tokenizer_token *token,
134
184
  details of grn_proc_func and grn_user_data, that is used as an argument of
135
185
  grn_proc_func.
136
186
  */
137
- grn_rc grn_tokenizer_register(grn_ctx *ctx, const char *plugin_name_ptr,
138
- unsigned int plugin_name_length,
139
- grn_proc_func *init, grn_proc_func *next,
140
- grn_proc_func *fin);
187
+ GRN_PLUGIN_EXPORT grn_rc grn_tokenizer_register(grn_ctx *ctx, const char *plugin_name_ptr,
188
+ unsigned int plugin_name_length,
189
+ grn_proc_func *init, grn_proc_func *next,
190
+ grn_proc_func *fin);
141
191
 
142
192
  #ifdef __cplusplus
143
193
  } /* extern "C" */