rroonga 4.0.3-x86-mingw32 → 4.0.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (682) hide show
  1. checksums.yaml +13 -5
  2. data/Gemfile +1 -1
  3. data/README.textile +1 -1
  4. data/Rakefile +8 -1
  5. data/bin/grndump +1 -1
  6. data/bin/grntest-log-analyze +1 -1
  7. data/bin/groonga-database-inspect +1 -1
  8. data/bin/groonga-index-dump +1 -1
  9. data/doc/text/news.textile +28 -0
  10. data/ext/groonga/extconf.rb +12 -2
  11. data/ext/groonga/rb-grn-accessor.c +2 -1
  12. data/ext/groonga/rb-grn-array-cursor.c +1 -1
  13. data/ext/groonga/rb-grn-array.c +1 -1
  14. data/ext/groonga/rb-grn-column.c +1 -1
  15. data/ext/groonga/rb-grn-context.c +7 -5
  16. data/ext/groonga/rb-grn-database.c +1 -1
  17. data/ext/groonga/rb-grn-double-array-trie-cursor.c +1 -1
  18. data/ext/groonga/rb-grn-double-array-trie.c +1 -1
  19. data/ext/groonga/rb-grn-encoding-support.c +1 -1
  20. data/ext/groonga/rb-grn-encoding.c +1 -1
  21. data/ext/groonga/rb-grn-exception.c +1 -1
  22. data/ext/groonga/rb-grn-expression-builder.c +1 -1
  23. data/ext/groonga/rb-grn-expression.c +1 -1
  24. data/ext/groonga/rb-grn-fix-size-column.c +1 -1
  25. data/ext/groonga/rb-grn-geo-point.c +1 -1
  26. data/ext/groonga/rb-grn-hash-cursor.c +1 -1
  27. data/ext/groonga/rb-grn-hash.c +1 -1
  28. data/ext/groonga/rb-grn-index-column.c +1 -1
  29. data/ext/groonga/rb-grn-index-cursor.c +1 -1
  30. data/ext/groonga/rb-grn-logger.c +1 -1
  31. data/ext/groonga/rb-grn-normalizer.c +1 -1
  32. data/ext/groonga/rb-grn-object.c +71 -45
  33. data/ext/groonga/rb-grn-operator.c +1 -1
  34. data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
  35. data/ext/groonga/rb-grn-patricia-trie.c +1 -1
  36. data/ext/groonga/rb-grn-plugin.c +1 -1
  37. data/ext/groonga/rb-grn-posting.c +1 -1
  38. data/ext/groonga/rb-grn-procedure-type.c +40 -0
  39. data/ext/groonga/rb-grn-procedure.c +17 -4
  40. data/ext/groonga/rb-grn-query-logger.c +1 -1
  41. data/ext/groonga/rb-grn-record.c +1 -1
  42. data/ext/groonga/rb-grn-snippet.c +1 -1
  43. data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
  44. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  45. data/ext/groonga/rb-grn-table-key-support.c +1 -1
  46. data/ext/groonga/rb-grn-table.c +3 -2
  47. data/ext/groonga/rb-grn-type.c +1 -1
  48. data/ext/groonga/rb-grn-utils.c +1 -1
  49. data/ext/groonga/rb-grn-variable-size-column.c +55 -27
  50. data/ext/groonga/rb-grn-variable.c +1 -1
  51. data/ext/groonga/rb-grn.h +4 -2
  52. data/ext/groonga/rb-groonga.c +3 -2
  53. data/extconf.rb +1 -1
  54. data/lib/1.9/groonga.so +0 -0
  55. data/lib/2.0/groonga.so +0 -0
  56. data/lib/2.1/groonga.so +0 -0
  57. data/lib/groonga.rb +1 -1
  58. data/lib/groonga/column.rb +1 -1
  59. data/lib/groonga/context.rb +1 -1
  60. data/lib/groonga/context/command-executor.rb +1 -1
  61. data/lib/groonga/database-inspector.rb +1 -1
  62. data/lib/groonga/database.rb +1 -1
  63. data/lib/groonga/dumper.rb +1 -1
  64. data/lib/groonga/expression-builder-19.rb +1 -1
  65. data/lib/groonga/expression-builder.rb +1 -1
  66. data/lib/groonga/geo-point.rb +1 -1
  67. data/lib/groonga/grntest-log.rb +1 -1
  68. data/lib/groonga/index-column.rb +1 -1
  69. data/lib/groonga/logger.rb +1 -1
  70. data/lib/groonga/memory-pool.rb +1 -2
  71. data/lib/groonga/pagination.rb +1 -1
  72. data/lib/groonga/patricia-trie.rb +1 -1
  73. data/lib/groonga/posting.rb +1 -1
  74. data/lib/groonga/query-logger.rb +1 -1
  75. data/lib/groonga/record.rb +6 -2
  76. data/lib/groonga/schema.rb +1 -1
  77. data/lib/groonga/statistic-measurer.rb +1 -1
  78. data/lib/groonga/sub-records.rb +1 -1
  79. data/lib/groonga/table.rb +1 -1
  80. data/misc/grnop2ruby.rb +1 -1
  81. data/rroonga-build.rb +4 -4
  82. data/rroonga.gemspec +3 -3
  83. data/test/groonga-test-utils.rb +4 -4
  84. data/test/run-test.rb +1 -1
  85. data/test/test-accessor.rb +1 -1
  86. data/test/test-array.rb +1 -1
  87. data/test/test-column.rb +1 -1
  88. data/test/test-command-select.rb +1 -1
  89. data/test/test-context.rb +21 -16
  90. data/test/test-convert.rb +1 -1
  91. data/test/test-database-dumper.rb +1 -1
  92. data/test/test-database-inspector.rb +1 -1
  93. data/test/test-database.rb +38 -25
  94. data/test/test-double-array-trie.rb +1 -1
  95. data/test/test-encoding.rb +1 -1
  96. data/test/test-exception.rb +12 -7
  97. data/test/test-expression-builder.rb +1 -1
  98. data/test/test-expression.rb +1 -1
  99. data/test/test-fix-size-column.rb +1 -1
  100. data/test/test-geo-point.rb +1 -1
  101. data/test/test-gqtp.rb +1 -1
  102. data/test/test-hash.rb +1 -1
  103. data/test/test-index-column.rb +1 -1
  104. data/test/test-index-cursor.rb +1 -1
  105. data/test/test-lock-timeout.rb +1 -1
  106. data/test/test-logger.rb +1 -1
  107. data/test/test-memory-pool.rb +1 -1
  108. data/test/test-normalizer.rb +1 -1
  109. data/test/test-pagination.rb +1 -1
  110. data/test/test-patricia-trie.rb +1 -1
  111. data/test/test-plugin.rb +1 -1
  112. data/test/test-procedure.rb +9 -2
  113. data/test/test-record.rb +1 -1
  114. data/test/test-remote.rb +1 -1
  115. data/test/test-schema-create-table.rb +1 -1
  116. data/test/test-schema-dumper.rb +1 -1
  117. data/test/test-schema-type.rb +1 -1
  118. data/test/test-schema.rb +1 -1
  119. data/test/test-snippet.rb +1 -1
  120. data/test/test-statistic-measurer.rb +1 -1
  121. data/test/test-sub-records.rb +1 -1
  122. data/test/test-table-dumper.rb +1 -1
  123. data/test/test-table-key-support.rb +1 -1
  124. data/test/test-table-offset-and-limit.rb +1 -1
  125. data/test/test-table-select-mecab.rb +1 -1
  126. data/test/test-table-select-normalize.rb +1 -1
  127. data/test/test-table-select-weight.rb +1 -1
  128. data/test/test-table-select.rb +1 -1
  129. data/test/test-table-traverse.rb +1 -1
  130. data/test/test-table.rb +1 -1
  131. data/test/test-type.rb +1 -1
  132. data/test/test-variable-size-column.rb +136 -67
  133. data/test/test-variable.rb +1 -1
  134. data/test/test-vector-column.rb +1 -1
  135. data/test/test-version.rb +1 -1
  136. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  137. data/vendor/local/bin/groonga.exe +0 -0
  138. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  139. data/vendor/local/bin/libgroonga-0.dll +0 -0
  140. data/vendor/local/bin/libmecab-1.dll +0 -0
  141. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  142. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  143. data/vendor/local/bin/libstdc++-6.dll +0 -0
  144. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  145. data/vendor/local/bin/mecab-config +0 -0
  146. data/vendor/local/bin/mecab.exe +0 -0
  147. data/vendor/local/include/groonga/groonga.h +38 -5
  148. data/vendor/local/include/groonga/groonga/plugin.h +11 -83
  149. data/vendor/local/include/groonga/groonga/tokenizer.h +10 -5
  150. data/vendor/local/include/msgpack.h +1 -0
  151. data/vendor/local/include/msgpack/fbuffer.h +47 -0
  152. data/vendor/local/include/msgpack/fbuffer.hpp +56 -0
  153. data/vendor/local/include/msgpack/object.hpp +12 -3
  154. data/vendor/local/include/msgpack/pack.h +7 -3
  155. data/vendor/local/include/msgpack/pack.hpp +26 -7
  156. data/vendor/local/include/msgpack/pack_template.h +34 -7
  157. data/vendor/local/include/msgpack/sbuffer.h +3 -2
  158. data/vendor/local/include/msgpack/sbuffer.hpp +1 -1
  159. data/vendor/local/include/msgpack/sysdep.h +27 -14
  160. data/vendor/local/include/msgpack/type.hpp +2 -1
  161. data/vendor/local/include/msgpack/type/define.hpp +747 -561
  162. data/vendor/local/include/msgpack/type/float.hpp +24 -4
  163. data/vendor/local/include/msgpack/type/int.hpp +78 -13
  164. data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +31 -10
  165. data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +30 -10
  166. data/vendor/local/include/msgpack/unpack.h +9 -9
  167. data/vendor/local/include/msgpack/unpack_define.h +16 -14
  168. data/vendor/local/include/msgpack/unpack_template.h +19 -8
  169. data/vendor/local/include/msgpack/version.h +1 -1
  170. data/vendor/local/include/msgpack/vrefbuffer.h +10 -9
  171. data/vendor/local/include/msgpack/vrefbuffer.hpp +4 -2
  172. data/vendor/local/include/msgpack/zbuffer.h +3 -2
  173. data/vendor/local/include/msgpack/zbuffer.hpp +4 -2
  174. data/vendor/local/include/msgpack/zone.h +5 -4
  175. data/vendor/local/include/msgpack/zone.hpp +10 -1
  176. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  177. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  178. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  179. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +1 -1
  180. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  181. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  182. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  183. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +1 -1
  184. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  185. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  186. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  187. data/vendor/local/lib/groonga/plugins/table/table.la +1 -1
  188. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  189. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  190. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  191. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  192. data/vendor/local/lib/libgroonga.a +0 -0
  193. data/vendor/local/lib/libgroonga.dll.a +0 -0
  194. data/vendor/local/lib/libgroonga.la +1 -1
  195. data/vendor/local/lib/libmecab.a +0 -0
  196. data/vendor/local/lib/libmecab.dll.a +0 -0
  197. data/vendor/local/lib/libmecab.la +2 -2
  198. data/vendor/local/lib/libmsgpack.a +0 -0
  199. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  200. data/vendor/local/lib/libmsgpack.la +1 -1
  201. data/vendor/local/lib/libmsgpackc.a +0 -0
  202. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  203. data/vendor/local/lib/libmsgpackc.la +1 -1
  204. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  205. data/vendor/local/lib/pkgconfig/msgpack.pc +10 -0
  206. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  207. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  208. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  209. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  210. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  211. data/vendor/local/sbin/groonga-httpd-restart +0 -0
  212. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  213. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +2 -6
  214. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +7 -26
  215. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +9 -5
  216. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +13 -15
  217. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  218. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
  219. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  220. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  222. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +149 -1194
  223. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.3.x.txt +49 -0
  224. data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +617 -0
  225. data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +536 -0
  226. data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/plugin.txt +122 -3
  227. data/vendor/local/share/doc/groonga/en/html/_sources/reference/columns/vector.txt +0 -1
  228. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/check.txt +50 -55
  229. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +25 -31
  230. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_remove.txt +26 -29
  231. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/define_selector.txt +20 -26
  232. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt +26 -29
  233. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/dump.txt +28 -28
  234. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +20 -26
  235. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_put.txt +20 -26
  236. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_reopen.txt +29 -34
  237. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalizer_list.txt +3 -3
  238. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/quit.txt +20 -20
  239. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +2 -2
  240. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/shutdown.txt +19 -20
  241. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +19 -24
  242. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +78 -87
  243. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_list.txt +20 -22
  244. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +19 -24
  245. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +27 -0
  246. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenizer_list.txt +3 -3
  247. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +17 -5
  248. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +17 -8
  249. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +2 -2
  250. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +132 -0
  251. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +100 -0
  252. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +1 -1
  253. data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +1 -1
  254. data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/mmap_cannot_allocate_memory.txt +1 -1
  255. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +6 -2
  256. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +3 -2
  257. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +28 -25
  258. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +26 -21
  259. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +3 -3
  260. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +17 -12
  261. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +44 -42
  262. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +0 -18
  263. data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +2 -0
  264. data/vendor/local/share/doc/groonga/en/html/characteristic.html +17 -19
  265. data/vendor/local/share/doc/groonga/en/html/community.html +17 -19
  266. data/vendor/local/share/doc/groonga/en/html/contribution.html +17 -19
  267. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -19
  268. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +17 -19
  269. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +17 -19
  270. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +17 -19
  271. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +17 -19
  272. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +17 -19
  273. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +17 -19
  274. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +17 -19
  275. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +17 -19
  276. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +17 -19
  277. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +17 -19
  278. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +17 -19
  279. data/vendor/local/share/doc/groonga/en/html/development.html +17 -19
  280. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +17 -19
  281. data/vendor/local/share/doc/groonga/en/html/genindex.html +136 -26
  282. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +17 -19
  283. data/vendor/local/share/doc/groonga/en/html/index.html +56 -56
  284. data/vendor/local/share/doc/groonga/en/html/install.html +17 -19
  285. data/vendor/local/share/doc/groonga/en/html/install/centos.html +43 -50
  286. data/vendor/local/share/doc/groonga/en/html/install/debian.html +59 -35
  287. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +40 -44
  288. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +20 -22
  289. data/vendor/local/share/doc/groonga/en/html/install/others.html +21 -23
  290. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +20 -22
  291. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +33 -35
  292. data/vendor/local/share/doc/groonga/en/html/install/windows.html +26 -28
  293. data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -19
  294. data/vendor/local/share/doc/groonga/en/html/news.html +320 -1367
  295. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +17 -19
  296. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +17 -19
  297. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +17 -19
  298. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +17 -19
  299. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +160 -0
  300. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +804 -0
  301. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +727 -0
  302. data/vendor/local/share/doc/groonga/en/html/news/senna.html +17 -19
  303. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  304. data/vendor/local/share/doc/groonga/en/html/reference.html +41 -41
  305. data/vendor/local/share/doc/groonga/en/html/reference/api.html +17 -19
  306. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +19 -21
  307. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +23 -25
  308. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +23 -25
  309. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +19 -21
  310. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +28 -30
  311. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +21 -23
  312. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +21 -23
  313. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +30 -32
  314. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +21 -23
  315. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +21 -23
  316. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +21 -23
  317. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +19 -21
  318. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +21 -23
  319. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +21 -23
  320. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +40 -42
  321. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +20 -22
  322. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +18 -20
  323. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +35 -37
  324. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +25 -27
  325. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +18 -20
  326. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +18 -20
  327. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +226 -24
  328. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
  329. data/vendor/local/share/doc/groonga/en/html/reference/column.html +17 -19
  330. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +17 -19
  331. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +17 -20
  332. data/vendor/local/share/doc/groonga/en/html/reference/command.html +33 -35
  333. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +17 -19
  334. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +17 -19
  335. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +17 -19
  336. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +18 -20
  337. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +73 -85
  338. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +50 -62
  339. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +18 -20
  340. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +18 -20
  341. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +53 -65
  342. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +19 -21
  343. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +45 -57
  344. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +49 -59
  345. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +19 -21
  346. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +47 -51
  347. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +19 -21
  348. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +44 -56
  349. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +45 -57
  350. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +54 -63
  351. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +18 -20
  352. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +21 -23
  353. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +42 -46
  354. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +20 -22
  355. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +18 -20
  356. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +17 -19
  357. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +18 -20
  358. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +41 -46
  359. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +52 -64
  360. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +201 -213
  361. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +19 -21
  362. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +74 -81
  363. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +42 -54
  364. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +174 -20
  365. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +20 -22
  366. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +17 -19
  367. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +17 -19
  368. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +17 -19
  369. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +31 -24
  370. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +17 -19
  371. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +17 -19
  372. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
  373. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +17 -19
  374. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +38 -27
  375. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +19 -21
  376. data/vendor/local/share/doc/groonga/en/html/reference/function.html +25 -25
  377. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +17 -19
  378. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +17 -19
  379. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +17 -19
  380. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +17 -19
  381. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +22 -24
  382. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +311 -0
  383. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +278 -0
  384. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +42 -44
  385. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +37 -39
  386. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +53 -55
  387. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +39 -41
  388. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +40 -42
  389. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +39 -41
  390. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +17 -19
  391. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +17 -19
  392. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +17 -19
  393. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -23
  394. data/vendor/local/share/doc/groonga/en/html/reference/log.html +18 -20
  395. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +17 -19
  396. data/vendor/local/share/doc/groonga/en/html/reference/output.html +17 -19
  397. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +17 -19
  398. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +17 -19
  399. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +17 -19
  400. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +17 -19
  401. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +17 -19
  402. data/vendor/local/share/doc/groonga/en/html/reference/types.html +17 -19
  403. data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
  404. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  405. data/vendor/local/share/doc/groonga/en/html/server.html +17 -19
  406. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +17 -19
  407. data/vendor/local/share/doc/groonga/en/html/server/http.html +17 -19
  408. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +18 -20
  409. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +17 -19
  410. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +17 -19
  411. data/vendor/local/share/doc/groonga/en/html/server/package.html +17 -19
  412. data/vendor/local/share/doc/groonga/en/html/spec.html +17 -19
  413. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +17 -19
  414. data/vendor/local/share/doc/groonga/en/html/spec/search.html +17 -19
  415. data/vendor/local/share/doc/groonga/en/html/suggest.html +17 -19
  416. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +17 -19
  417. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +17 -19
  418. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +17 -19
  419. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +17 -19
  420. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +17 -19
  421. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +17 -19
  422. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
  423. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
  424. data/vendor/local/share/doc/groonga/en/html/tutorial.html +32 -34
  425. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +21 -23
  426. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +28 -29
  427. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +52 -52
  428. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +17 -19
  429. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +21 -23
  430. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +57 -56
  431. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +22 -24
  432. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +20 -22
  433. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +46 -44
  434. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +17 -19
  435. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +71 -69
  436. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  437. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +2 -6
  438. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +7 -26
  439. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +9 -5
  440. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +13 -15
  441. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  442. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
  443. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  444. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +5 -5
  445. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  446. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +149 -1194
  447. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.3.x.txt +49 -0
  448. data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +617 -0
  449. data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +536 -0
  450. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/plugin.txt +122 -3
  451. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/columns/vector.txt +0 -1
  452. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/check.txt +50 -55
  453. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +25 -31
  454. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_remove.txt +26 -29
  455. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/define_selector.txt +20 -26
  456. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt +26 -29
  457. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/dump.txt +28 -28
  458. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +20 -26
  459. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_put.txt +20 -26
  460. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_reopen.txt +29 -34
  461. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalizer_list.txt +3 -3
  462. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/quit.txt +20 -20
  463. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +2 -2
  464. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/shutdown.txt +19 -20
  465. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +19 -24
  466. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +78 -87
  467. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_list.txt +20 -22
  468. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +19 -24
  469. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +27 -0
  470. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenizer_list.txt +3 -3
  471. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +17 -5
  472. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +17 -8
  473. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +2 -2
  474. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +132 -0
  475. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +100 -0
  476. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +1 -1
  477. data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +1 -1
  478. data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/mmap_cannot_allocate_memory.txt +1 -1
  479. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +6 -2
  480. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +3 -2
  481. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +28 -25
  482. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +26 -21
  483. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +3 -3
  484. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +17 -12
  485. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +44 -42
  486. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +0 -18
  487. data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +2 -0
  488. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
  489. data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
  490. data/vendor/local/share/doc/groonga/ja/html/contribution.html +17 -19
  491. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -19
  492. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +17 -19
  493. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +17 -19
  494. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +17 -19
  495. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +17 -19
  496. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +17 -19
  497. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +17 -19
  498. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +17 -19
  499. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +17 -19
  500. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +19 -21
  501. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +17 -19
  502. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +18 -20
  503. data/vendor/local/share/doc/groonga/ja/html/development.html +17 -19
  504. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +17 -19
  505. data/vendor/local/share/doc/groonga/ja/html/genindex.html +136 -26
  506. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +17 -19
  507. data/vendor/local/share/doc/groonga/ja/html/index.html +53 -53
  508. data/vendor/local/share/doc/groonga/ja/html/install.html +17 -19
  509. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +44 -50
  510. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +62 -36
  511. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +33 -35
  512. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +20 -22
  513. data/vendor/local/share/doc/groonga/ja/html/install/others.html +21 -23
  514. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +20 -22
  515. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +34 -36
  516. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +26 -28
  517. data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -19
  518. data/vendor/local/share/doc/groonga/ja/html/news.html +354 -1643
  519. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +17 -19
  520. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +17 -19
  521. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +17 -19
  522. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +17 -19
  523. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +180 -0
  524. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +950 -0
  525. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +831 -0
  526. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +17 -19
  527. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  528. data/vendor/local/share/doc/groonga/ja/html/reference.html +41 -41
  529. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +17 -19
  530. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +19 -21
  531. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -26
  532. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +23 -25
  533. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +19 -21
  534. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +28 -30
  535. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +21 -23
  536. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +21 -23
  537. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +30 -32
  538. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +21 -23
  539. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +21 -23
  540. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +21 -23
  541. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +19 -21
  542. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +21 -23
  543. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +21 -23
  544. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +40 -42
  545. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +20 -22
  546. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +18 -20
  547. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +35 -37
  548. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +25 -27
  549. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +18 -20
  550. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +18 -20
  551. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +226 -24
  552. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
  553. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +17 -19
  554. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +17 -19
  555. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +17 -21
  556. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +33 -35
  557. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +17 -19
  558. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +17 -19
  559. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +17 -19
  560. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +18 -20
  561. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +73 -85
  562. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +50 -62
  563. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +18 -20
  564. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +42 -57
  565. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +53 -65
  566. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +27 -35
  567. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +45 -57
  568. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +49 -59
  569. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +19 -21
  570. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +47 -51
  571. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +19 -21
  572. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +44 -56
  573. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +45 -57
  574. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +54 -63
  575. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +20 -22
  576. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +27 -30
  577. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +42 -46
  578. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +20 -22
  579. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +18 -20
  580. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +17 -19
  581. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +18 -20
  582. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +41 -46
  583. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +52 -64
  584. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +195 -207
  585. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +19 -21
  586. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +74 -81
  587. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +42 -54
  588. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +172 -21
  589. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +26 -29
  590. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +17 -19
  591. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +17 -19
  592. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +17 -19
  593. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +31 -24
  594. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +17 -19
  595. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +17 -19
  596. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
  597. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +17 -19
  598. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +38 -27
  599. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +19 -21
  600. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -25
  601. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +18 -21
  602. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +17 -19
  603. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +17 -19
  604. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +17 -19
  605. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +22 -24
  606. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +294 -0
  607. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +266 -0
  608. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +42 -44
  609. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +37 -39
  610. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +55 -62
  611. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +39 -41
  612. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +39 -41
  613. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +39 -41
  614. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +17 -19
  615. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +17 -19
  616. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +17 -19
  617. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -23
  618. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +18 -20
  619. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +17 -19
  620. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +17 -19
  621. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +17 -19
  622. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +17 -19
  623. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +17 -19
  624. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +17 -19
  625. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +17 -19
  626. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +17 -19
  627. data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
  628. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  629. data/vendor/local/share/doc/groonga/ja/html/server.html +17 -19
  630. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +17 -19
  631. data/vendor/local/share/doc/groonga/ja/html/server/http.html +17 -19
  632. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +18 -20
  633. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +17 -19
  634. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +17 -19
  635. data/vendor/local/share/doc/groonga/ja/html/server/package.html +17 -19
  636. data/vendor/local/share/doc/groonga/ja/html/spec.html +17 -19
  637. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +17 -19
  638. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +17 -19
  639. data/vendor/local/share/doc/groonga/ja/html/suggest.html +17 -19
  640. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +17 -19
  641. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +17 -19
  642. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +17 -19
  643. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +17 -19
  644. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +17 -19
  645. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +17 -19
  646. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
  647. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
  648. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +29 -31
  649. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +24 -26
  650. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +28 -31
  651. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +33 -35
  652. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +20 -22
  653. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +17 -19
  654. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +43 -43
  655. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +19 -21
  656. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +21 -23
  657. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +39 -38
  658. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +17 -19
  659. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +68 -64
  660. data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
  661. data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +2 -2
  662. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
  663. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +0 -0
  664. data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
  665. data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +0 -0
  666. data/vendor/local/share/groonga/examples/dictionary/html/index.html +2 -2
  667. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.7.2.min.js +4 -0
  668. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-ui-1.8.18.custom.min.js +356 -0
  669. data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
  670. data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +0 -0
  671. data/vendor/local/share/groonga/html/admin/css/groonga-admin.css +11 -0
  672. data/vendor/local/share/groonga/html/admin/index.html +75 -75
  673. data/vendor/local/share/groonga/html/admin/index.ja.html +301 -0
  674. data/vendor/local/share/groonga/html/admin/js/groonga-admin.ja.js +1372 -0
  675. data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +28 -28
  676. data/vendor/local/share/license/groonga/README.md +49 -0
  677. data/vendor/local/share/man/ja/man1/groonga.1 +1934 -1247
  678. data/vendor/local/share/man/man1/groonga.1 +2008 -1240
  679. metadata +111 -83
  680. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.6.0.min.js +0 -16
  681. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-ui-1.8.12.min.js +0 -406
  682. data/vendor/local/share/license/groonga/AUTHORS +0 -17
@@ -0,0 +1,301 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html lang="ja">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
+ <meta http-equiv="Content-Style-Type" content="text/css">
7
+ <meta http-equiv="Content-Script-Type" content="text/javascript">
8
+ <meta name="robots" content="noindex,nofollow,noarchive">
9
+ <title>groonga admin</title>
10
+ <link rel="shortcut icon" href="favicon.ico">
11
+ <link rel="icon" href="favicon.png">
12
+ <link rel="stylesheet" type="text/css" href="css/groonga-admin.css">
13
+ <link rel="stylesheet" type="text/css" href="css/redmond/jquery-ui-1.8.18.custom.css">
14
+ <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
15
+ <script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
16
+ <script type="text/javascript" src="js/jquery.flot-0.7.min.js"></script>
17
+ <script type="text/javascript" src="js/groonga-admin.js"></script>
18
+ </head>
19
+ <body>
20
+ <div id="header">
21
+ <ul id="locale-list">
22
+ <li><a href="index.html">en</a></li>
23
+ <li>ja</a>
24
+ </ul>
25
+ </div>
26
+ <div id="body">
27
+ <table>
28
+ <tr>
29
+ <td id="left-column">
30
+ <div id="side-menu">
31
+ <h2>画面一覧</h2>
32
+ <ul id="side-menu-view-list">
33
+ <li><a href="#side-menu-summary" id="side-menu-summary">サマリー</a></li>
34
+ <li><a href="#side-menu-suggest" id="side-menu-suggest">サジェスト</a></li>
35
+ </ul>
36
+ <h2>テーブル一覧</h2>
37
+ <ul id="side-menu-tablelist" />
38
+ </div>
39
+ </td>
40
+
41
+ <td id="right-column">
42
+ <!-- database view -->
43
+ <div id="database-tabs">
44
+ <ul>
45
+ <li><a href="#database-tab-summary">サマリー</a></li>
46
+ <li><a href="#database-tab-tablelist" id="tab-tablelist-link">テーブル一覧</a></li>
47
+ <li><a href="#database-tab-createtable">テーブル作成</a></li>
48
+ </ul>
49
+ <div id="database-tab-summary">
50
+ <p>
51
+ groongaの管理ツールです。
52
+ </p>
53
+ <ul>
54
+ <li>開始時間: <span id="status-starttime"></span></li>
55
+ <li>uptime: <span id="status-uptime"></span></li>
56
+ <li>クエリ数: <span id="status-n-queries"></span></li>
57
+ <li>キャッシュヒット率: <span id="status-cache-hit-rate"></span></li>
58
+ </ul>
59
+ <div id="throughput-chart" style="height: 300px; max-width: 500px;">
60
+ </div>
61
+ </div>
62
+ <div id="database-tab-tablelist">
63
+ <div id="tab-tablelist-table">
64
+ </div>
65
+ <input type="button" id="tablelist-remove-table" value="選択テーブル削除">
66
+ </div>
67
+ <div id="database-tab-createtable">
68
+ <table>
69
+ <tr>
70
+ <td>
71
+ <label for="createtable-name">テーブル名</label>
72
+ </td>
73
+ <td>
74
+ <input type="text" id="createtable-name">
75
+ </td>
76
+ </tr>
77
+ <tr>
78
+ <td>
79
+ 主キー
80
+ </td>
81
+ <td>
82
+ <label for="createtable-key-type">keyの型:</label>
83
+ <select id="createtable-key-type">
84
+ <optgroup label="組み込み型" id="createtable-key-type-builtin">
85
+ </optgroup>
86
+ <optgroup label="テーブル" id="createtable-key-type-table">
87
+ </optgroup>
88
+ </select>
89
+ <label for="createtable-key-index">keyのインデックス種類:</label>
90
+ <select id="createtable-key-index">
91
+ <option value="GRN_OBJ_TABLE_PAT_KEY">パトリシア木</option>
92
+ <option value="GRN_OBJ_TABLE_HASH_KEY">ハッシュテーブル</option>
93
+ <option value="GRN_OBJ_TABLE_NO_KEY">キーなし</option>
94
+ </select>
95
+ </td>
96
+ </tr>
97
+ <tr>
98
+ <td>
99
+ フラグ
100
+ </td>
101
+ <td id="createtable-flags">
102
+ <input type="checkbox" value="GRN_OBJ_PERSISTENT" checked>永続化</input>
103
+ <input type="checkbox" value="GRN_OBJ_KEY_NORMALIZE">key文字列の正規化</input>
104
+ <input type="checkbox" value="GRN_OBJ_KEY_WITH_SIS">key文字列のsuffix登録</input>
105
+ </td>
106
+ </tr>
107
+ <tr>
108
+ <td>
109
+ valueの型
110
+ </td>
111
+ <td>
112
+ <select id="createtable-value-type">
113
+ <optgroup label="組み込み型" id="createtable-value-type-builtin">
114
+ </optgroup>
115
+ <optgroup label="テーブル" id="createtable-value-type-table">
116
+ </optgroup>
117
+ </select>
118
+ </td>
119
+ </tr>
120
+ <tr>
121
+ <td>
122
+ デフォルトトークナイザ
123
+ </td>
124
+ <td>
125
+ <select id="createtable-default-tokenizer">
126
+ <optgroup label="組み込み" id="createtable-default-tokenizer-builtin">
127
+ </optgroup>
128
+ </select>
129
+ </td>
130
+ </tr>
131
+ </table>
132
+ <input type="button" id="createtable-add-table" value="テーブル追加">
133
+ </div>
134
+ </div>
135
+
136
+ <!-- table view -->
137
+ <div id="table-tabs">
138
+ <ul>
139
+ <li><a href="#table-tab-recordlist" id="tab-recordlist-link">レコード一覧</a></li>
140
+ <li><a href="#table-tab-columnlist" id="tab-columnlist-link">カラム一覧</a></li>
141
+ <li><a href="#table-tab-createrecord" id="tab-createrecord-link">レコード作成</a></li>
142
+ <li><a href="#table-tab-createcolumn">カラム作成</a></li>
143
+ </ul>
144
+ <div id="table-tab-recordlist">
145
+ <input type="checkbox" id="table-tab-recordlist-full-checkbox" /><label for="table-tab-recordlist-full-checkbox">管理モード</label>
146
+ <form id="tab-recordlist-form">
147
+ <div id="table-tab-recordlist-form-simple">
148
+ <label for="tab-recordlist-simplequery">検索クエリ: </label><input type="text" id="tab-recordlist-simplequery">
149
+ <select id="tab-recordlist-simplequerytype">
150
+ <option value="query" data-placeholder="例)column:@value">query</option>
151
+ <option value="filter" data-placeholder="例)column == &quot;value&quot;">filter</option>
152
+ </select>
153
+ <input type="checkbox" id="tab-recordlist-incremental" /><label for="tab-recordlist-incremental" id="tab-recordlist-incremental-label">インクリメンタル検索</label>
154
+ </div>
155
+ <div id="table-tab-recordlist-form-full">
156
+ <table>
157
+ <tr><td>match_columns</td><td><input type="text" id="tab-recordlist-match_columns" /></td></tr>
158
+ <tr><td>query</td><td><input type="text" id="tab-recordlist-query" /></td></tr>
159
+ <tr><td>filter</td><td><input type="text" id="tab-recordlist-filter" /></td></tr>
160
+ <tr><td>scorer</td><td><input type="text" id="tab-recordlist-scorer" /></td></tr>
161
+ <tr><td>sortby</td><td><input type="text" id="tab-recordlist-sortby" /></td></tr>
162
+ <tr><td>output_columns</td><td><input type="text" id="tab-recordlist-output_columns" /></td></tr>
163
+ <tr><td>offset</td><td><input type="text" id="tab-recordlist-offset" /></td></tr>
164
+ <tr><td>limit</td><td><input type="text" id="tab-recordlist-limit" /></td></tr>
165
+ <tr><td>drilldown</td><td><input type="text" id="tab-recordlist-drilldown" /></td></tr>
166
+ <tr><td>drilldown_sortby</td><td><input type="text" id="tab-recordlist-drilldown_sortby" /></td></tr>
167
+ <tr><td>drilldown_output_columns</td><td><input type="text" id="tab-recordlist-drilldown_output_columns" /></td></tr>
168
+ <tr><td>drilldown_offset</td><td><input type="text" id="tab-recordlist-drilldown_offset" /></td></tr>
169
+ <tr><td>drilldown_limit</td><td><input type="text" id="tab-recordlist-drilldown_limit" /></td></tr>
170
+ </table>
171
+ </div>
172
+ <input type="submit" id="tab-recordlist-submit" value="検索"/>
173
+ </form>
174
+ <div id="tab-recordlist-table">
175
+ </div>
176
+ <input type="button" id="recordlist-remove-record" value="選択レコード削除">
177
+ </div>
178
+ <div id="table-tab-columnlist">
179
+ <div id="tab-columnlist-table">
180
+ </div>
181
+ <input type="button" id="columnlist-remove-column" value="選択カラム削除">
182
+ </div>
183
+ <div id="table-tab-createrecord">
184
+ <table id="table-createrecord">
185
+ </table>
186
+ <input type="button" id="createrecord-add-record" value="レコード追加">
187
+ </div>
188
+ <div id="table-tab-createcolumn">
189
+ <table>
190
+ <tr>
191
+ <td>
192
+ <label for="createcolumn-name">カラム名</label>
193
+ </td>
194
+ <td>
195
+ <input type="text" id="createcolumn-name">
196
+ </td>
197
+ </tr>
198
+ <tr>
199
+ <td>
200
+ 設定
201
+ </td>
202
+ <td>
203
+ <label for="createcolumn-type">型:</label>
204
+ <select id="createcolumn-type">
205
+ <optgroup label="組み込み型" id="createcolumn-type-builtin">
206
+ </optgroup>
207
+ <optgroup label="テーブル" id="createcolumn-type-table">
208
+ </optgroup>
209
+ </select>
210
+
211
+ <label for="createcolumn-source">テーブル型の場合カラム</label>
212
+ <select id="createcolumn-source" disabled>
213
+ </select>
214
+
215
+ <label for="createcolumn-column-type">カラム種別:</label>
216
+ <select id="createcolumn-column-type">
217
+ <option value="GRN_OBJ_COLUMN_SCALAR">スカラ</option>
218
+ <option value="GRN_OBJ_COLUMN_VECTOR">ベクタ</option>
219
+ <option value="GRN_OBJ_COLUMN_INDEX">転置インデックス</option>
220
+ </select>
221
+
222
+ <label for="createcolumn-compress">圧縮:</label>
223
+ <select id="createcolumn-compress">
224
+ <option value="GRN_OBJ_COMPRESS_NONE">圧縮なし</option>
225
+ <option value="GRN_OBJ_COMPRESS_ZLIB">zlib</option>
226
+ <option value="GRN_OBJ_COMPRESS_LZO">lzo</option>
227
+ </select>
228
+ </td>
229
+ </tr>
230
+ <tr>
231
+ <td>
232
+ フラグ
233
+ </td>
234
+ <td id="createcolumn-flags">
235
+ <input type="checkbox" value="GRN_OBJ_PERSISTENT" checked>永続化</input>
236
+ </td>
237
+ </tr>
238
+ <tr>
239
+ <td>
240
+ 転置インデックス用フラグ
241
+ </td>
242
+ <td id="createcolumn-ii-flags">
243
+ <input type="checkbox" value="GRN_OBJ_WITH_SECTION">段落情報を含める</input>
244
+ <input type="checkbox" value="GRN_OBJ_WITH_WEIGHT">重みを含める</input>
245
+ <input type="checkbox" value="GRN_OBJ_WITH_POSITION">位置情報を含める</input>
246
+ </td>
247
+ </tr>
248
+ </table>
249
+ <input type="button" id="createcolumn-add-column" value="カラム追加">
250
+ </div>
251
+ </div>
252
+
253
+ <!-- suggest view -->
254
+ <div id="suggest-tabs">
255
+ <ul>
256
+ <li><a href="#suggest-tab-search">検索</a></li>
257
+ </ul>
258
+ <div id="suggest-tab-search">
259
+ <form id="suggest-tab-search-form">
260
+ <p>
261
+ <label for="suggest-dataset">データセット: </label>
262
+ <input type="text" id="suggest-dataset">
263
+ </p>
264
+ <label for="suggest-query">検索クエリ: </label>
265
+ <input type="text" id="suggest-query">
266
+ <input type="button" id="suggest-submit" value="検索" />
267
+ </form>
268
+ <div id="suggest-result-tabs">
269
+ <ul>
270
+ <li><a href="#suggest-result-tab-suggest">提案</a></li>
271
+ <li><a href="#suggest-result-tab-complete">補完</a></li>
272
+ <li><a href="#suggest-result-tab-correct">補正</a></li>
273
+ </ul>
274
+ <div id="suggest-result-tab-suggest">
275
+ </div>
276
+ <div id="suggest-result-tab-complete">
277
+ </div>
278
+ <div id="suggest-result-tab-correct">
279
+ </div>
280
+ </div>
281
+ </div>
282
+ </div>
283
+ </td>
284
+ </tr>
285
+ </table>
286
+ </div>
287
+ <div id="footer">
288
+ Powered by <a href="http://jquery.com/">jQuery</a> and <a href="http://jqueryui.com/">jQuery UI</a>.
289
+ </div>
290
+ <script type="text/javascript">
291
+ $(function() {
292
+ var admin = new GroongaAdmin();
293
+ $(location.hash).click();
294
+ $.ajaxSetup({
295
+ timeout: 10000,
296
+ cache: false
297
+ });
298
+ });
299
+ </script>
300
+ </body>
301
+ </html>
@@ -0,0 +1,1372 @@
1
+ // -*- js2-basic-offset: 2; indent-tabs-mode: nil -*-
2
+
3
+ "use strict";
4
+
5
+ function prim2html(prim, limit) {
6
+ switch(typeof prim) {
7
+ case 'undefined':
8
+ return 'undefined';
9
+ case 'boolean':
10
+ return prim ? 'true' : 'false';
11
+ case 'number':
12
+ return String(prim);
13
+ case 'string':
14
+ if (prim.length > limit) {
15
+ prim = prim.substring(0, limit) + '...';
16
+ }
17
+ return escapeHTML(prim);
18
+ case 'array':
19
+ case 'object':
20
+ if (prim == null) {
21
+ return 'null';
22
+ } else if ($.isArray(prim)) {
23
+ return 'array'; /* TODO: implement */
24
+ } else {
25
+ return 'object'; /* TODO: implement */
26
+ }
27
+ default:
28
+ return 'ERROR';
29
+ }
30
+ }
31
+
32
+ function escapeHTML(str) {
33
+ return str.replace(/&/g, "&amp;")
34
+ .replace(/"/g, "&quot;")
35
+ .replace(/</g, "&lt;")
36
+ .replace(/>/g, "&gt;");
37
+ }
38
+ var Groonga = {
39
+ key_type_list: ['Int8', 'UInt8', 'Int16', 'UInt16', 'Int32', 'UInt32',
40
+ 'Int64', 'UInt64', 'Float', 'Time', 'ShortText',
41
+ 'TokyoGeoPoint', 'WGS84GeoPoint'],
42
+ value_type_list: ['Object', 'Bool',
43
+ 'Int8', 'UInt8', 'Int16', 'UInt16', 'Int32', 'UInt32',
44
+ 'Int64', 'UInt64', 'Float', 'Time'],
45
+ column_type_list: ['Object', 'Bool',
46
+ 'Int8', 'UInt8', 'Int16', 'UInt16', 'Int32', 'UInt32',
47
+ 'Int64', 'UInt64', 'Float', 'Time', 'ShortText',
48
+ 'Text', 'LongText', 'TokyoGeoPoint', 'WGS84GeoPoint'],
49
+ tokenizer_list: ['TokenDelimit', 'TokenUnigram', 'TokenBigram', 'TokenTrigram', 'TokenMecab'],
50
+ GRN_OBJ_PERSISTENT: (0x01<<15),
51
+
52
+ GRN_OBJ_TABLE_TYPE_MASK: (0x07),
53
+ GRN_OBJ_TABLE_HASH_KEY: (0x00),
54
+ GRN_OBJ_TABLE_PAT_KEY: (0x01),
55
+ GRN_OBJ_TABLE_NO_KEY: (0x03),
56
+
57
+ GRN_OBJ_KEY_WITH_SIS: (0x01<<6),
58
+ GRN_OBJ_KEY_NORMALIZE: (0x01<<7),
59
+
60
+ GRN_OBJ_COLUMN_TYPE_MASK: (0x07),
61
+ GRN_OBJ_COLUMN_SCALAR: (0x00),
62
+ GRN_OBJ_COLUMN_VECTOR: (0x01),
63
+ GRN_OBJ_COLUMN_INDEX: (0x02),
64
+
65
+ GRN_OBJ_COMPRESS_MASK: (0x07<<4),
66
+ GRN_OBJ_COMPRESS_NONE: (0x00<<4),
67
+ GRN_OBJ_COMPRESS_ZLIB: (0x01<<4),
68
+ GRN_OBJ_COMPRESS_LZO: (0x02<<4),
69
+
70
+ GRN_OBJ_WITH_SECTION: (0x01<<7),
71
+ GRN_OBJ_WITH_WEIGHT: (0x01<<8),
72
+ GRN_OBJ_WITH_POSITION: (0x01<<9)
73
+ };
74
+
75
+ $.widget("ui.paginate", {
76
+ version: "1.0",
77
+ options: {
78
+ total: 0,
79
+ nItemsPerPage: 10,
80
+ currentPage: 0,
81
+ nShowLinks: 10,
82
+ callback: null
83
+ },
84
+ _create: function() {
85
+ var that = this;
86
+ var element = this.element;
87
+ element.addClass("pager");
88
+
89
+ var total = this.options.total;
90
+ var nItemsPerPage = this.options.nItemsPerPage;
91
+ var currentPage = this.options.currentPage;
92
+ var nShowLinks = this.options.nShowLinks;
93
+ var lastPage = Math.floor((total - 1) / nItemsPerPage) + 1;
94
+ var start = currentPage - Math.floor(nShowLinks / 2);
95
+ start = (start < 1) ? 1 : start;
96
+ var end = start + nShowLinks - 1;
97
+ end = (end > lastPage) ? lastPage : end;
98
+
99
+ var callback = this.options.callback;
100
+ if (start > 1) {
101
+ element.append($('<span />')
102
+ .addClass('pager')
103
+ .append($('<a />')
104
+ .attr('href', '#')
105
+ .text('1')
106
+ .click(function () {callback(0)})));
107
+ element.append($('<span />').text('....'));
108
+ }
109
+ for (var i = start; i <= end; i++) {
110
+ var page = $('<span />').append($('<a />')
111
+ .attr('href', '#')
112
+ .text(String(i))
113
+ .click(function () {
114
+ callback(Number($(this).text()) - 1);
115
+ }));
116
+ if (i == currentPage) {
117
+ page.addClass('pager-current');
118
+ } else {
119
+ page.addClass('pager');
120
+ }
121
+ element.append(page);
122
+ }
123
+ if (end < lastPage) {
124
+ element.append($('<span />')
125
+ .text('....'));
126
+ element.append($('<span />')
127
+ .addClass('pager')
128
+ .append($('<a />')
129
+ .attr('href', '#')
130
+ .text(String(lastPage))
131
+ .click(function () {callback(lastPage - 1);})));
132
+ }
133
+ }
134
+ });
135
+
136
+ function GroongaAdmin() {
137
+ this.current_table = null;
138
+ this.statusTimer = null;
139
+ this.semaphore = new Array();
140
+ this.current_status = 0;
141
+ this.reload_record_func = function(){};
142
+
143
+ var that = this;
144
+ this._initializeTabs();
145
+
146
+ $('#tab-tablelist-link').click(function() {
147
+ that.tablelist();
148
+ });
149
+ $('#tab-columnlist-link').click(function() {
150
+ that.columnlist(that.current_table);
151
+ });
152
+ $('#tab-createrecord-link').click(function() {
153
+ that.update_createrecord(that.current_table);
154
+ });
155
+ $('#tab-recordlist-link').click(function() {
156
+ that.reload_record_func();
157
+ });
158
+ $('#createtable-add-table').click(function() {
159
+ that.createtable();
160
+ });
161
+ $('#createrecord-add-record').click(function() {
162
+ that.createrecord();
163
+ });
164
+ $('#createcolumn-add-column').click(function() {
165
+ that.createcolumn();
166
+ });
167
+ $('#recordlist-remove-record').click(function() {
168
+ that.removerecord();
169
+ });
170
+ $('#columnlist-remove-column').click(function() {
171
+ that.removecolumn();
172
+ });
173
+ $('#tablelist-remove-table').click(function() {
174
+ that.removetable();
175
+ });
176
+ $('#tab-recordlist-form').submit(function() {
177
+ if ($('#table-tab-recordlist-full-checkbox').attr('checked')) {
178
+ // full
179
+ var d = {
180
+ 'table': that.current_table
181
+ }
182
+ $.each(that.SELECT_PARAMS, function(i, val) {
183
+ var e = $('#tab-recordlist-' + val);
184
+ if (e.val()) {
185
+ d[val] = e.val();
186
+ }
187
+ });
188
+ that.recordlist(d, true);
189
+ } else {
190
+ // simple
191
+ that.recordlist_simple(
192
+ that.current_table,
193
+ $('#tab-recordlist-simplequery').val(),
194
+ $('#tab-recordlist-simplequerytype').val(),
195
+ 1);
196
+ }
197
+ return false;
198
+ });
199
+ this._initializeSideMenu();
200
+ this.update_tablelist();
201
+
202
+ var e1 = $('#createtable-key-type-builtin');
203
+ $.each(Groonga.key_type_list, function(i, val) {
204
+ e1.append($('<option />').val(val).text(val));
205
+ });
206
+
207
+ e1 = $('#createtable-value-type-builtin');
208
+ e1.append($('<option />').val('').text('なし'));
209
+ $.each(Groonga.value_type_list, function(i, val) {
210
+ e1.append($('<option />').val(val).text(val));
211
+ });
212
+
213
+ e1 = $('#createtable-default-tokenizer-builtin');
214
+ e1.append($('<option />').val('').text('なし'));
215
+ $.each(Groonga.tokenizer_list, function(i, val) {
216
+ e1.append($('<option />').val(val).text(val));
217
+ });
218
+
219
+ e1 = $('#createcolumn-type-builtin');
220
+ $.each(Groonga.column_type_list, function(i, val) {
221
+ e1.append($('<option />').val(val).text(val));
222
+ });
223
+
224
+ $('#tab-recordlist-simplequerytype').change(function() {
225
+ if ($(this).val() == 'scorer') {
226
+ $('#tab-recordlist-incremental').hide();
227
+ $('#tab-recordlist-incremental-label').hide();
228
+ } else {
229
+ $('#tab-recordlist-incremental').show();
230
+ $('#tab-recordlist-incremental-label').show();
231
+ }
232
+ $('#tab-recordlist-incremental').change();
233
+
234
+ var selectedOption = $(this).find(':selected');
235
+ $('#tab-recordlist-simplequery').attr(
236
+ 'placeholder', selectedOption.data('placeholder')
237
+ );
238
+ }).change();
239
+
240
+ $('#table-tab-recordlist-full-checkbox').change(function() {
241
+ if ($(this).attr('checked')) {
242
+ $('#table-tab-recordlist-form-simple').hide();
243
+ $('#table-tab-recordlist-form-full').show();
244
+ } else {
245
+ $('#table-tab-recordlist-form-simple').show();
246
+ $('#table-tab-recordlist-form-full').hide();
247
+ }
248
+ }).change();
249
+
250
+ $('#tab-recordlist-incremental').change(function() {
251
+ $('#tab-recordlist-simplequery').unbind('keyup');
252
+ if ($(this).attr('checked') &&
253
+ $('#tab-recordlist-simplequerytype').val() != 'scorer') {
254
+ $('#tab-recordlist-simplequery').keyup(function(e) {
255
+ that.recordlist_simple(
256
+ that.current_table,
257
+ $('#tab-recordlist-simplequery').val(),
258
+ $('#tab-recordlist-simplequerytype').val(),
259
+ 1,
260
+ true);
261
+ });
262
+ }
263
+ }).change();
264
+
265
+ $('#createcolumn-type').change(function(e) {
266
+ var s = $('#createcolumn-type-table option:selected');
267
+ var cs = $('#createcolumn-source');
268
+ if (s.length > 0) {
269
+ cs.empty().removeAttr('disabled');
270
+ that.showloading(
271
+ $.ajax({
272
+ url: '/d/column_list',
273
+ data: {'table': s.val()},
274
+ dataType: 'json',
275
+ success: function(d) {
276
+ if(that.validateajax(d) < 0) { return; }
277
+ var idx;
278
+ var b = d[1];
279
+ $.each(b[0], function(i, val) {
280
+ if (val[0] == 'name') { idx = i; }
281
+ });
282
+ if (idx) {
283
+ b.shift();
284
+ $.each(b, function(i, val) {
285
+ cs.append($('<option />').val(val[idx]).text(val[idx]));
286
+ });
287
+ }
288
+ that.hideloading();
289
+ },
290
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
291
+ that.errorloading(XMLHttpRequest);
292
+ }
293
+ })
294
+ );
295
+ } else {
296
+ cs.empty().attr('disabled', 'disabled');
297
+ }
298
+ });
299
+
300
+ this.recordlist_count = 30;
301
+ };
302
+
303
+ jQuery.extend(GroongaAdmin.prototype, {
304
+ SELECT_PARAMS: [
305
+ 'match_columns', 'query', 'filter',
306
+ 'scorer',
307
+ 'output_columns',
308
+ 'sortby', 'offset', 'limit',
309
+ 'drilldown',
310
+ 'drilldown_output_columns',
311
+ 'drilldown_sortby', 'drilldown_offset', 'drilldown_limit'
312
+ ],
313
+ _initializeTabs: function() {
314
+ this._initializeDatabaseTab();
315
+ this._initializeTableTab();
316
+ this._initializeSuggestTab();
317
+ this._selectTab("database");
318
+ },
319
+ _initializeDatabaseTab: function() {
320
+ var that = this;
321
+
322
+ this._$databaseTabs = $('#database-tabs').tabs({
323
+ show: function(e, ui) {
324
+ that.stop_status_timer();
325
+ if (ui.panel.id == 'database-tab-summary') {
326
+ that.start_status_timer();
327
+ }
328
+ }
329
+ });
330
+ },
331
+ _initializeTableTab: function() {
332
+ this._$tableTabs = $('#table-tabs').tabs({
333
+ show: function(e, ui) {
334
+ }
335
+ });
336
+ },
337
+ _initializeSuggestTab: function() {
338
+ var that = this;
339
+
340
+ this._$suggestTabs = $('#suggest-tabs').tabs({
341
+ show: function(e, ui) {
342
+ }
343
+ });
344
+
345
+ this._initializeSuggestDatasetComplete();
346
+ this._initializeSuggestQueryComplete();
347
+ this._initializeSuggestSubmit();
348
+ this._initializeSuggestResult();
349
+ },
350
+ _initializeSuggestDatasetComplete: function() {
351
+ var that = this;
352
+ var $dataset = $("#suggest-dataset");
353
+ this._$suggestDataset = $dataset;
354
+ $dataset.autocomplete({
355
+ minLength: 0,
356
+ source: function (request, response) {
357
+ var datasets = [];
358
+ $.each(that._tables, function(i, table_name) {
359
+ var suggestTableMatch = /^item_(.+)$/.exec(table_name);
360
+ if (suggestTableMatch) {
361
+ var dataset = suggestTableMatch[1];
362
+ datasets.push(dataset);
363
+ }
364
+ });
365
+
366
+ datasets = $.ui.autocomplete.filter(datasets, request.term);
367
+ response(datasets);
368
+ }
369
+ });
370
+ $dataset.focus(function (event) {
371
+ $dataset.autocomplete("search", $dataset.val());
372
+ });
373
+ },
374
+ _suggestParameters: function(query, dataset, type) {
375
+ var nItemsPerPage = 30;
376
+ return {
377
+ query: query,
378
+ types: type,
379
+ table: "item_" + dataset,
380
+ column: "kana",
381
+ offset: 0,
382
+ limit: nItemsPerPage,
383
+ };
384
+ },
385
+ _initializeSuggestQueryComplete: function() {
386
+ var that = this;
387
+ this._$suggestQuery = $("#suggest-query").autocomplete({
388
+ source: function (request, response) {
389
+ var $dataset = $("#suggest-dataset");
390
+ var dataset = $dataset.val();
391
+ $("#suggest-submit").click();
392
+ $.ajax({
393
+ url: "/d/suggest",
394
+ data: that._suggestParameters(request.term, dataset, "complete"),
395
+ dataType: "jsonp",
396
+ success: function (data, textStatus, jqXHR) {
397
+ var completions = data[1]["complete"];
398
+ var items = [];
399
+ if (completions && completions.length > 2) {
400
+ completions.shift();
401
+ completions.shift();
402
+ $.each(completions, function(i, item) {
403
+ var key = item[0];
404
+ items.push(key);
405
+ if (items.length >= 3) {
406
+ return false;
407
+ }
408
+ return true;
409
+ });
410
+ }
411
+ response(items);
412
+ },
413
+ error: function(jqXHR, textStatus, errorThrown) {
414
+ }
415
+ });
416
+ }
417
+ });
418
+ },
419
+ _initializeSuggestSubmit: function() {
420
+ var that = this;
421
+ $("#suggest-submit").click(function (event) {
422
+ var dataset = $("#suggest-dataset").val();
423
+ var query = $("#suggest-query").val();
424
+ var type = that._suggestResultType;
425
+ var parameters = that._suggestParameters(query, dataset, type);
426
+ $.ajax({
427
+ url: "/d/suggest",
428
+ data: parameters,
429
+ dataType: "jsonp",
430
+ success: function (data, textStatus, jqXHR) {
431
+ var response = data[1][type];
432
+ response.shift();
433
+ var $result = $("#suggest-result-tab-" + type);
434
+ $result
435
+ .empty()
436
+ .append($("<div/>").append(that._createResultTable(response)));
437
+ },
438
+ error: function(jqXHR, textStatus, errorThrown) {
439
+ }
440
+ });
441
+ });
442
+ },
443
+ _initializeSuggestResult: function() {
444
+ var that = this;
445
+ $("#suggest-result-tabs").tabs({
446
+ show: function (event, ui) {
447
+ that._suggestResultType = ui.panel.id.replace(/^suggest-result-tab-/, "");
448
+ $("#suggest-submit").click();
449
+ }
450
+ });
451
+ },
452
+ _selectTab: function(name) {
453
+ this.stop_status_timer();
454
+ this._$databaseTabs.hide();
455
+ this._$tableTabs.hide();
456
+ this._$suggestTabs.hide();
457
+ switch (name) {
458
+ case "table":
459
+ this._$tableTabs.show();
460
+ break;
461
+ case "suggest":
462
+ this._$suggestTabs.show();
463
+ break;
464
+ case "database":
465
+ default:
466
+ this._$databaseTabs.show();
467
+ break;
468
+ }
469
+ },
470
+ _initializeSideMenu: function () {
471
+ var that = this;
472
+ $('#side-menu-summary').click(function() {
473
+ that.current_table = null;
474
+ that._selectTab("database");
475
+ that._$databaseTabs.tabs("select", "#database-tab-summary");
476
+ });
477
+ $('#side-menu-suggest').click(function() {
478
+ that.current_table = null;
479
+ that._selectTab("suggest");
480
+ });
481
+ },
482
+ start_status_timer: function() {
483
+ var that = this;
484
+ this.stop_status_timer();
485
+ this.status();
486
+ this.statusTimer = setInterval(function() {that.status()}, 1000);
487
+ },
488
+ change_status_timer: function(time) {
489
+ var that = this;
490
+ this.stop_status_timer();
491
+ this.statusTimer = setInterval(function() {that.status()}, time);
492
+ },
493
+ stop_status_timer: function() {
494
+ if (this.statusTimer) {
495
+ clearInterval(this.statusTimer);
496
+ this.statusTimer = null;
497
+ }
498
+ },
499
+ _createResultTable: function (result, options) {
500
+ var that = this;
501
+ if (!options) {
502
+ options = {};
503
+ }
504
+ var table = $('<table class="records"/>');
505
+ if ($.isArray(result)) {
506
+ var nEntries = result.length;
507
+ if (nEntries >= 1) {
508
+ var thead = $('<thead/>');
509
+ table.append(thead);
510
+ var line = result[0];
511
+ if ($.isArray(line)) {
512
+ var tr = $('<tr/>');
513
+ thead.append(tr);
514
+ var m = line.length;
515
+ if (options.check) {
516
+ tr.append($('<th/>'));
517
+ }
518
+ for (var j = 0; j < m; j++) {
519
+ var th = $('<th/>');
520
+ tr.append(th);
521
+ th.append(prim2html(line[j][0], 128));
522
+ th.append($('<br />'));
523
+ th.append(prim2html(line[j][1], 128));
524
+ }
525
+ if (options.button) {
526
+ tr.append($('<th/>'));
527
+ }
528
+ }
529
+ var tbody = $('<tbody>');
530
+ table.append(tbody);
531
+ for (var i = 1; i < nEntries; i++) {
532
+ line = result[i];
533
+ if ($.isArray(line)) {
534
+ var tr = $('<tr>');
535
+ table.append(tr);
536
+ var m = line.length;
537
+ switch(options.check) {// チェックボックスの値を何にするか
538
+ case 1: // 1番目の要素(レコード一覧の_id等)
539
+ case 2: // 2番目の要素(テーブル・カラム一覧のname等)
540
+ var td = $('<td/>');
541
+ tr.append(td);
542
+ td.append($('<input/>')
543
+ .attr("type", "checkbox")
544
+ .attr("value", line[options.check-1]));
545
+ break;
546
+ }
547
+ for (var j = 0; j < m; j++) {
548
+ var td = $('<td/>');
549
+ tr.append(td);
550
+ td.append(prim2html(line[j], 128));
551
+ }
552
+ switch(options.button) {
553
+ case 1: // Edit record
554
+ var td = $('<td/>');
555
+ tr.append(td);
556
+ td.append($('<input/>')
557
+ .attr("type", "button")
558
+ .attr("value", "編集")
559
+ .attr("data-record-id", line[0])
560
+ .click(function () {
561
+ that.show_edit_record($(this).attr("data-record-id"));
562
+ }));
563
+ break;
564
+ case 2: // Table
565
+ var td = $('<td/>');
566
+ tr.append(td);
567
+ td.append($('<input/>')
568
+ .attr("type", "button")
569
+ .attr("value", "詳細")
570
+ .attr("data-table-name", line[1])
571
+ .click(function () {
572
+ var tableName = $(this).attr("data-table-name");
573
+ $("#side-menu-tablelist-link-" + tableName).click();
574
+ }));
575
+ break;
576
+ }
577
+ }
578
+ }
579
+ }
580
+ }
581
+ return table;
582
+ },
583
+ show_edit_record: function(id) {
584
+ $('#table-tabs').tabs('select', 2);
585
+ this.update_createrecord(this.current_table, id);
586
+ },
587
+ format_unix_time: function(unix_time) {
588
+ var date = new Date();
589
+ date.setTime(unix_time * 1000);
590
+ return date.toLocaleString();
591
+ },
592
+ format_duration: function(duration_in_seconds) {
593
+ var duration = "";
594
+ var days = Math.floor(duration_in_seconds / 3600 / 24);
595
+ var hours = Math.floor(duration_in_seconds / 3600 % 24);
596
+ var minutes = Math.floor(duration_in_seconds / 60 % 60);
597
+ var seconds = Math.floor(duration_in_seconds % 60);
598
+
599
+ if (days > 0) {
600
+ duration += days;
601
+ if (days == 1) {
602
+ duration += " day, ";
603
+ } else {
604
+ duration += " days, ";
605
+ }
606
+ }
607
+ if (days > 0 || hours > 0) {
608
+ duration += hours + ":" + minutes + ":" + seconds;
609
+ } else if (minutes > 0) {
610
+ duration += minutes + ":" + seconds;
611
+ } else {
612
+ duration += seconds;
613
+ }
614
+
615
+ return duration;
616
+ },
617
+ maxThroughput: 0,
618
+ lastNQueries: -1,
619
+ keepLastNData: 100,
620
+ throughputData: [],
621
+ throughputChart: null,
622
+ updateThroughputChart: function(statusData) {
623
+ var maxThroughputUpdated = false;
624
+ if (this.lastNQueries >= 0) {
625
+ var throughput = statusData.n_queries - this.lastNQueries;
626
+ this.throughputData.push(throughput);
627
+ if (this.maxThroughput < throughput) {
628
+ this.maxThroughput = throughput;
629
+ maxThroughputUpdated = true;
630
+ }
631
+ }
632
+ if (this.throughputData.length > this.keepLastNData) {
633
+ this.throughputData.shift();
634
+ }
635
+ if (!this.throughputChart) {
636
+ this.throughputChart = $.plot($("#throughput-chart"),
637
+ [[]],
638
+ {xaxis: {min: -(this.keepLastNData - 1),
639
+ max: 0},
640
+ yaxis: {min: 0}});
641
+ }
642
+ var that = this;
643
+ var chartSeries = $.map(this.throughputData, function(n, i) {
644
+ return [[-(that.throughputData.length - i) + 1, n]];
645
+ });
646
+ this.throughputChart.setData([chartSeries]);
647
+ if (maxThroughputUpdated) {
648
+ this.throughputChart.setupGrid();
649
+ }
650
+ this.throughputChart.draw();
651
+ this.lastNQueries = statusData.n_queries;
652
+ },
653
+ status: function() {
654
+ if (this.current_status > 0) { return; }
655
+ this.current_status++;
656
+ var that = this;
657
+ $.ajax({
658
+ url: '/d/status',
659
+ data: {},
660
+ dataType: 'json',
661
+ success: function(b) {
662
+ that.current_status--;
663
+ if (!b) {
664
+ that.change_status_timer(10000);
665
+ return;
666
+ }
667
+ var d = b[1];
668
+ $('#status-starttime').text(that.format_unix_time(d.starttime));
669
+ $('#status-uptime').text(that.format_duration(d.uptime));
670
+ $('#status-n-queries').text(d.n_queries);
671
+ $('#status-cache-hit-rate').text(d.cache_hit_rate);
672
+ that.updateThroughputChart(d);
673
+ that.change_status_timer(1000);
674
+ },
675
+ error: function() {
676
+ that.current_status--;
677
+ that.change_status_timer(10000);
678
+ }
679
+ });
680
+ },
681
+ update_tablelist: function() {
682
+ var that = this;
683
+ this._tables = [];
684
+ this.showloading(
685
+ $.ajax({
686
+ url: '/d/table_list',
687
+ data: {},
688
+ dataType: 'json',
689
+ success: function(d) {
690
+ if (that.validateajax(d) < 0) { return; }
691
+ d.shift();
692
+ var tl = $('#side-menu-tablelist').empty();
693
+ var tt = $('#createtable-key-type-table').empty();
694
+ var vt = $('#createtable-value-type-table').empty();
695
+ var ct = $('#createcolumn-type-table').empty();
696
+ var b = d.shift();
697
+ b.shift();
698
+ $.each(b, function(i, val) {
699
+ var table_name = val[1];
700
+ that._tables.push(table_name);
701
+ tl.append(
702
+ $('<li />').append(
703
+ $('<a />')
704
+ .attr('id', 'side-menu-tablelist-link-' + table_name)
705
+ .attr('href', '#side-menu-tablelist-' + table_name)
706
+ .text(table_name)
707
+ .click(function() {
708
+ that.current_table = table_name;
709
+ $('#database-tabs').hide();
710
+ $('#suggest-tabs').hide();
711
+ that.stop_status_timer();
712
+ $('#table-tabs').show();
713
+ that.columnlist(table_name);
714
+ $('#tab-recordlist-simplequery').val('');
715
+ that.recordlist_simple(table_name, null, null, 1);
716
+ that.update_createrecord(that.current_table);
717
+ })
718
+ )
719
+ );
720
+ tt.append($('<option />').val(val[1]).text(val[1]));
721
+ vt.append($('<option />').val(val[1]).text(val[1]));
722
+ ct.append($('<option />').val(val[1]).text(val[1]));
723
+ });
724
+ that.hideloading();
725
+ },
726
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
727
+ that.errorloading(XMLHttpRequest);
728
+ }
729
+ })
730
+ );
731
+ },
732
+ tablelist: function() {
733
+ $('#tab-tablelist-table').empty();
734
+ var that = this;
735
+ this.showloading(
736
+ $.ajax({
737
+ url: '/d/table_list',
738
+ data: {},
739
+ dataType: 'json',
740
+ success: function(d) {
741
+ if (that.validateajax(d) < 0) { return; }
742
+ var b = d[1];
743
+ var table = that._createResultTable(b, {check: 2, button: 2});
744
+ $('#tab-tablelist-table').append($('<h1 />').text('テーブル一覧')).append(table);
745
+ that.hideloading();
746
+ },
747
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
748
+ that.errorloading(XMLHttpRequest);
749
+ }
750
+ })
751
+ );
752
+ },
753
+ recordlist_simple: function(table_name, simplequery, simplequery_type, page, hide_dialog) {
754
+ var d = {
755
+ 'table': table_name,
756
+ 'offset': (page - 1) * this.recordlist_count,
757
+ 'limit': this.recordlist_count
758
+ }
759
+ switch (simplequery_type) {
760
+ case 'query':
761
+ case 'filter':
762
+ case null:
763
+ if (simplequery) {
764
+ d[simplequery_type] = simplequery;
765
+ }
766
+ this.recordlist(d, true, hide_dialog);
767
+ break;
768
+ }
769
+ },
770
+ recordlist: function(params, show_pager, hide_dialog) {
771
+ var that = this;
772
+ this.reload_record_func = function(){
773
+ that.recordlist(params, show_pager, hide_dialog);
774
+ };
775
+ this.showloading(
776
+ $.ajax({
777
+ url: '/d/select',
778
+ data: params,
779
+ dataType: 'json',
780
+ success: function(d) {
781
+ if (that.validateajax(d, hide_dialog) < 0) { return; }
782
+ var rc = d.shift();
783
+ if (rc[0] != 0) {
784
+ alert('error: ' + rc[3]);
785
+ that.hideloading();
786
+ return false;
787
+ }
788
+ var body = d.shift();
789
+ var recs = body.shift();
790
+ var all_count = recs.shift()[0];
791
+ var pager;
792
+ if (show_pager) {
793
+ var offset = params['offset'] || 0;
794
+ var rows = params['limit'] || 10;
795
+ if (rows < 0){
796
+ rows = all_count + parseInt(rows) + 1;
797
+ }
798
+ if (rows != '' && !parseInt(rows)) {
799
+ pager = $('<span />');
800
+ } else {
801
+ pager = $("<div/>");
802
+ pager.paginate({
803
+ total: all_count,
804
+ nItemsPerPage: rows,
805
+ currentPage: Math.floor(offset/rows)+1,
806
+ callback: function(page) {
807
+ params['offset'] = page * rows;
808
+ that.recordlist(params, true, false);
809
+ return false;
810
+ }
811
+ });
812
+ }
813
+ } else {
814
+ pager = $('<span />');
815
+ }
816
+ $('#tab-recordlist-table')
817
+ .empty()
818
+ .append($('<h1 />').text('レコード一覧: ' + params['table']))
819
+ .append($('<p />').text('総件数: ' + all_count))
820
+ .append(pager.clone(true))
821
+ .append($('<div />').append(that._createResultTable(recs, {check: 1, button: 1})))
822
+ .append(pager);
823
+ that.hideloading();
824
+ },
825
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
826
+ that.errorloading(XMLHttpRequest, hide_dialog);
827
+ }
828
+ })
829
+ ,hide_dialog);
830
+ },
831
+ columnlist: function(table_name) {
832
+ var that = this;
833
+ $('#tab-columnlist-table').empty();
834
+ this.showloading(
835
+ $.ajax({
836
+ url: '/d/column_list',
837
+ data: {'table': table_name},
838
+ dataType: 'json',
839
+ success: function(d) {
840
+ if (that.validateajax(d) < 0) { return; }
841
+ var b = d[1];
842
+ var table = that._createResultTable(b, {check: 2});
843
+ $('#tab-columnlist-table')
844
+ .append($('<h1 />').text('カラム一覧: ' + table_name))
845
+ .append(table);
846
+ that.hideloading();
847
+ },
848
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
849
+ that.errorloading(XMLHttpRequest);
850
+ }
851
+ })
852
+ );
853
+ },
854
+ add_record_inputbox: function(type, value) {
855
+ var inputbox = null;
856
+ switch(type){
857
+ case "Bool":
858
+ inputbox = $('<input />')
859
+ .attr("type","checkbox")
860
+ .attr("value","true");
861
+ if (value) {
862
+ inputbox.attr("checked","");
863
+ }
864
+ break;
865
+ case "UInt8":
866
+ case "UInt16":
867
+ case "UInt32":
868
+ case "UInt64":
869
+ case "Int8":
870
+ case "Int16":
871
+ case "Int32":
872
+ case "Int64":
873
+ case "Float":
874
+ inputbox = $('<input />')
875
+ .attr("type", "text")
876
+ .val(isNaN(value) ? "" : value);
877
+ break;
878
+ case "Text":
879
+ case "ShortText":
880
+ case "LongText":
881
+ inputbox = $('<textarea />')
882
+ .attr("cols", "50")
883
+ .attr("rows", "2")
884
+ .text(value ? value : "");
885
+ break;
886
+ case "TokyoGeoPoint":
887
+ case "WGS84GeoPoint":
888
+ case "Time":
889
+ inputbox = $('<input />')
890
+ .attr("type", "text")
891
+ .attr("size", "40")
892
+ .val(value ? value : "");
893
+ break;
894
+ case "Object":
895
+ inputbox = $('<input />')
896
+ .attr("type", "text")
897
+ .attr("disabled", "disabled");
898
+ break;
899
+ default:
900
+ inputbox = $('<input />')
901
+ .attr("type", "text")
902
+ .val(value ? value : "");
903
+ }
904
+ inputbox.addClass('column_values');
905
+ return inputbox;
906
+ },
907
+ add_record_deletebutton: function(){
908
+ var ret =
909
+ $('<span />')
910
+ .append("[×]")
911
+ .css('cursor', 'pointer')
912
+ .click(function() {
913
+ $(this).prev().remove();
914
+ $(this).next().remove();
915
+ $(this).remove();
916
+ });
917
+ return ret;
918
+ },
919
+ update_createrecord_loadcomplete: function(d_sel, d_col) {
920
+ var that = this;
921
+ var b = d_sel[1][0];
922
+ var columns = $('<tbody />');
923
+ var listofs = b[1].length - (d_col[1].length - 1);
924
+ for (var i = 1; i < b[1].length; i++) {
925
+ var line = b[1][i];
926
+ var value = null;
927
+ if (b[2]) value = b[2][i];
928
+ if ($.isArray(line)) {
929
+ var tr = $('<tr/ >')
930
+ .addClass('create-record-columns')
931
+ .append(
932
+ $('<td />')
933
+ .addClass('columnname')
934
+ .append(prim2html(line[0], 128))
935
+ )
936
+ .append(
937
+ $('<td />')
938
+ .addClass('columntype')
939
+ .append("(")
940
+ .append($('<span />')
941
+ .append(prim2html(line[1], 128))
942
+ )
943
+ .append(")")
944
+ );
945
+ var inputtd = $('<td />').addClass('columnval');
946
+ if (i >= listofs && d_col[1][i - listofs + 1][4].indexOf("COLUMN_VECTOR") >= 0){
947
+ var type = line[1];
948
+ if (value != null) {
949
+ for (var j = 0; j < value.length; j++) {
950
+ inputtd
951
+ .append(this.add_record_inputbox(line[1], value[j]))
952
+ .append(this.add_record_deletebutton())
953
+ .append('<br />');
954
+ }
955
+ }
956
+ inputtd
957
+ .append($('<span />')
958
+ .append("[値を追加]")
959
+ .css('cursor', 'pointer')
960
+ .click(function() {
961
+ var target = $(this).parent();
962
+ target
963
+ .append(that.add_record_inputbox($(this).parent().prev().children().text()))
964
+ .append(that.add_record_deletebutton())
965
+ .append("<br />");
966
+ $(this).appendTo(target);
967
+ })
968
+ );
969
+ } else {
970
+ inputtd.append(this.add_record_inputbox(line[1], value));
971
+ if (line[0] == "_key" && value != null) {
972
+ inputtd.children().attr("disabled", "disabled");
973
+ }
974
+ }
975
+ tr.append(inputtd);
976
+ columns.append(tr);
977
+ }
978
+ }
979
+ $("#table-createrecord").append(columns);
980
+ this.hideloading();
981
+ },
982
+ update_createrecord: function(table_name, id) {
983
+ var that = this;
984
+ var d_sel = null;
985
+ var d_col = null;
986
+ $('#table-createrecord').empty();
987
+ this.showloading(
988
+ $.ajax({
989
+ url: '/d/select',
990
+ data: {
991
+ 'table' : table_name,
992
+ 'limit' : 1,
993
+ 'query' : '_id:' + id
994
+ },
995
+ dataType: 'json',
996
+ success: function(d) {
997
+ if (that.validateajax(d) < 0) { return; }
998
+ d_sel = d;
999
+ if (d_col) {
1000
+ that.update_createrecord_loadcomplete(d_sel, d_col);
1001
+ }
1002
+ },
1003
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1004
+ that.errorloading(XMLHttpRequest);
1005
+ }
1006
+ })
1007
+ );
1008
+ this.showloading(
1009
+ $.ajax({
1010
+ url: '/d/column_list',
1011
+ data: {
1012
+ 'table' : table_name
1013
+ },
1014
+ dataType: 'json',
1015
+ success: function(d) {
1016
+ if (that.validateajax(d) < 0) { return; }
1017
+ d_col = d;
1018
+ if (d_sel) {
1019
+ that.update_createrecord_loadcomplete(d_sel, d_col);
1020
+ }
1021
+ },
1022
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1023
+ that.errorloading(XMLHttpRequest);
1024
+ }
1025
+ })
1026
+ );
1027
+ },
1028
+ createtable: function() {
1029
+ var that = this;
1030
+ var flags = 0;
1031
+ $('#createtable-flags>input:checked').each(function() {
1032
+ flags |= Groonga[$(this).val()];
1033
+ });
1034
+ flags |= Groonga[$('#createtable-key-index').val()];
1035
+ this.showloading(
1036
+ $.ajax({
1037
+ url: '/d/table_create',
1038
+ data: {
1039
+ name: $('#createtable-name').val(),
1040
+ 'flags': flags,
1041
+ key_type: $('#createtable-key-type').val(),
1042
+ value_type: $('#createtable-value-type').val(),
1043
+ default_tokenizer: $('#createtable-default-tokenizer').val()
1044
+ },
1045
+ dataType: 'json',
1046
+ success: function(d) {
1047
+ if (that.validateajax(d) < 0) { return; }
1048
+ that.hideloading();
1049
+ alert('テーブルを作成しました。');
1050
+ that.update_tablelist();
1051
+ },
1052
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1053
+ that.errorloading(XMLHttpRequest);
1054
+ }
1055
+ })
1056
+ );
1057
+ },
1058
+ createcolumn: function() {
1059
+ var that = this;
1060
+ var flags = 0;
1061
+ $('#createcolumn-flags>input:checked').each(function() {
1062
+ flags |= Groonga[$(this).val()];
1063
+ });
1064
+ $('#createcolumn-ii-flags>input:checked').each(function() {
1065
+ flags |= Groonga[$(this).val()];
1066
+ });
1067
+ flags |= Groonga[$('#createcolumn-column-type').val()];
1068
+ flags |= Groonga[$('#createcolumn-column-compress').val()];
1069
+ var d = {
1070
+ table: this.current_table,
1071
+ name: $('#createcolumn-name').val(),
1072
+ 'flags': flags,
1073
+ type: $('#createcolumn-type').val()
1074
+ };
1075
+ if ($('#createcolumn-source').val()) {
1076
+ d['source'] = $('#createcolumn-source').val();
1077
+ }
1078
+ this.showloading(
1079
+ $.ajax({
1080
+ url: '/d/column_create',
1081
+ data: d,
1082
+ dataType: 'json',
1083
+ success: function(d) {
1084
+ if (that.validateajax(d) < 0) { return; }
1085
+ that.hideloading();
1086
+ alert('カラムを作成しました。');
1087
+ },
1088
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1089
+ that.errorloading(XMLHttpRequest);
1090
+ }
1091
+ })
1092
+ );
1093
+ },
1094
+ createrecord_getvalue: function(type, inputbox) {
1095
+ switch(type){
1096
+ case "Bool":
1097
+ if (inputbox.is('input:checked')) {
1098
+ return true;
1099
+ } else {
1100
+ return false;
1101
+ }
1102
+ default:
1103
+ return inputbox.val();
1104
+ }
1105
+ },
1106
+ createrecord: function() {
1107
+ var that = this;
1108
+ var d = {};
1109
+ $('.create-record-columns').each(function() {
1110
+ if (!$(this).children('.columnval').children().attr('disabled')
1111
+ || $(this).children('.columnname').text() == "_key") {
1112
+ var type = $(this).children('.columntype').children().text();
1113
+ if ($(this).children('.columnval').children('span').length) {
1114
+ var arr = [];
1115
+ $(this).children('.columnval').children('.column_values').each(function() {
1116
+ arr.push(that.createrecord_getvalue(type, $(this)));
1117
+ });
1118
+ d[$(this).children('.columnname').text()] = arr;
1119
+ } else {
1120
+ d[$(this).children('.columnname').text()] =
1121
+ that.createrecord_getvalue(type, $(this).children('.columnval').children());
1122
+ }
1123
+ }
1124
+ });
1125
+ this.showloading(
1126
+ $.ajax({
1127
+ url: '/d/load',
1128
+ data: {
1129
+ "table" : this.current_table,
1130
+ "input_type" : "json",
1131
+ "output_type" : "json",
1132
+ "values" : JSON.stringify([d])
1133
+ },
1134
+ dataType: 'json',
1135
+ success: function(d) {
1136
+ if (that.validateajax(d) < 0) { return; }
1137
+ that.hideloading();
1138
+ alert('レコードを作成しました。');
1139
+ },
1140
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1141
+ that.errorloading(XMLHttpRequest);
1142
+ }
1143
+ })
1144
+ );
1145
+ },
1146
+ removerecord: function() {
1147
+ var that = this;
1148
+ var checklist = $("#tab-recordlist-table").find("input:checked");
1149
+ var completecount = checklist.length;
1150
+ if (completecount > 0) {
1151
+ $('<div />')
1152
+ .append("選択した" + completecount + "件のレコードを削除しますか?")
1153
+ .dialog({
1154
+ modal: true,
1155
+ buttons: {
1156
+ 'いいえ': function() {
1157
+ $(this).dialog('close');
1158
+ },
1159
+ 'はい': function() {
1160
+ $(this).dialog('close');
1161
+ checklist.each(function(i, val) {
1162
+ that.showloading(
1163
+ $.ajax({
1164
+ url: '/d/delete',
1165
+ data: {
1166
+ "table" : that.current_table,
1167
+ "id" : val.value
1168
+ },
1169
+ dataType: 'json',
1170
+ success: function() {
1171
+ if (--completecount == 0) {
1172
+ $('#tab-recordlist-form').submit();
1173
+ alert('レコードを削除しました。');
1174
+ } else if (completecount < 0){
1175
+ that.hideloading();
1176
+ }
1177
+ },
1178
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1179
+ completecount = 0;
1180
+ that.errorloading(XMLHttpRequest);
1181
+ }
1182
+ })
1183
+ );
1184
+ });
1185
+ }
1186
+ }
1187
+ });
1188
+ }
1189
+ },
1190
+ removecolumn: function() {
1191
+ var that = this;
1192
+ var checklist = $("#tab-columnlist-table").find("input:checked");
1193
+ var completecount = checklist.length;
1194
+ if (completecount) {
1195
+ $('<div />')
1196
+ .append("選択した" + completecount + "件のカラムを削除しますか?")
1197
+ .dialog({
1198
+ modal: true,
1199
+ buttons: {
1200
+ 'いいえ': function() {
1201
+ $(this).dialog('close');
1202
+ },
1203
+ 'はい': function() {
1204
+ $(this).dialog('close');
1205
+ checklist.each(function(i, val) {
1206
+ that.showloading(
1207
+ $.ajax({
1208
+ url: '/d/column_remove',
1209
+ data: {
1210
+ "table" : that.current_table,
1211
+ "name" : val.value
1212
+ },
1213
+ dataType: 'json',
1214
+ success: function() {
1215
+ if (!(--completecount)) {
1216
+ that.columnlist(that.current_table);
1217
+ alert('カラムを削除しました。');
1218
+ } else if (completecount < 0){
1219
+ that.hideloading();
1220
+ }
1221
+ },
1222
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1223
+ completecount = 0;
1224
+ that.errorloading(XMLHttpRequest);
1225
+ }
1226
+ })
1227
+ );
1228
+ });
1229
+ }
1230
+ }
1231
+ });
1232
+ }
1233
+ },
1234
+ removetable: function() {
1235
+ var that = this;
1236
+ var checklist = $("#tab-tablelist-table").find("input:checked");
1237
+ var completecount = checklist.length;
1238
+ if (completecount > 0) {
1239
+ $('<div />')
1240
+ .append("選択した" + completecount + "件のテーブルを削除しますか?")
1241
+ .dialog({
1242
+ modal: true,
1243
+ buttons: {
1244
+ 'いいえ': function() {
1245
+ $(this).dialog('close');
1246
+ },
1247
+ 'はい': function() {
1248
+ $(this).dialog('close');
1249
+ checklist.each(function(i, val) {
1250
+ that.showloading(
1251
+ $.ajax({
1252
+ url: '/d/table_remove',
1253
+ data: {
1254
+ "name" : val.value
1255
+ },
1256
+ dataType: 'json',
1257
+ success: function() {
1258
+ if (--completecount == 0) {
1259
+ that.tablelist();
1260
+ that.update_tablelist();
1261
+ alert('テーブルを削除しました。');
1262
+ } else if (completecount < 0){
1263
+ that.hideloading();
1264
+ }
1265
+ },
1266
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
1267
+ completecount = 0;
1268
+ that.errorloading(XMLHttpRequest);
1269
+ }
1270
+ })
1271
+ );
1272
+ });
1273
+ }
1274
+ }
1275
+ });
1276
+ }
1277
+ },
1278
+ showloading: function(obj, hide_dialog) {
1279
+ var that = this;
1280
+ if (obj == null) { return; }
1281
+ this.semaphore[this.semaphore.length] = obj;
1282
+ if ( $("#loadingdialog").size() > 0 || hide_dialog) { return; }
1283
+ $("<div />")
1284
+ .attr("id", "loadingdialog")
1285
+ .attr("style", "text-align: center;")
1286
+ .append($("<img />").attr("src", "images/loading.gif"))
1287
+ .append(" Loading...")
1288
+ .dialog({
1289
+ title: "",
1290
+ width: 200,
1291
+ height: 110,
1292
+ minHeight: 110,
1293
+ modal: true,
1294
+ resizable: false,
1295
+ draggable: false,
1296
+ position: ["right", "bottom"],
1297
+ autoOpen: false,
1298
+ buttons: {
1299
+ '中止': function() {
1300
+ if (obj) { obj.abort(); }
1301
+ that.hideloading();
1302
+ }
1303
+ }
1304
+ });
1305
+ $("#loadingdialog").parents(".ui-dialog").children(".ui-dialog-titlebar").remove();
1306
+ $("#loadingdialog").dialog("open");
1307
+ $(".ui-widget-overlay").css("opacity", "0.0");
1308
+ },
1309
+ hideloading: function() {
1310
+ for (var i = 0; i < this.semaphore.length; i++) {
1311
+ if ( this.semaphore[i].readyState == 4) {
1312
+ this.semaphore.splice(i, 1);
1313
+ i--;
1314
+ }
1315
+ }
1316
+ if ( this.semaphore.length == 0) {
1317
+ $("#loadingdialog").dialog("close");
1318
+ $("#loadingdialog").remove();
1319
+ }
1320
+ },
1321
+ errorloading: function(ajax, hide_dialog) {
1322
+ var that = this;
1323
+ var json = null;
1324
+ if (ajax) {
1325
+ json = JSON.parse(ajax.responseText);
1326
+ }
1327
+ this.hideloading();
1328
+ for (var i = 0; i < this.semaphore.length; i++) {
1329
+ this.semaphore[i].abort();
1330
+ this.semaphore.splice(i, 1);
1331
+ i--;
1332
+ }
1333
+ if ( $("#loadingdialog").size() == 0 && !hide_dialog) {
1334
+ var error_label;
1335
+ var error_message;
1336
+ if (json){
1337
+ error_label = "groongaでエラーが発生しました。";
1338
+ error_message = json[0][3] + "(" + json[0][0] + ")";
1339
+ } else if (ajax) {
1340
+ error_label = "通信エラーが発生しました。";
1341
+ error_message = "" + ajax.status + ": " + ajax.statusText;
1342
+ } else {
1343
+ error_label = "通信エラーが発生しました。";
1344
+ error_message = "";
1345
+ }
1346
+ $("<div />")
1347
+ .append($("<div />").text(error_label))
1348
+ .append($("<div />").text(error_message))
1349
+ .attr("id", "loadingdialog")
1350
+ .dialog({
1351
+ title: "",
1352
+ width: 340,
1353
+ height: 160,
1354
+ minHeight: 160,
1355
+ modal: true,
1356
+ resizable: false,
1357
+ draggable: false,
1358
+ open: function() {
1359
+ $(this).parents(".ui-dialog").children(".ui-dialog-titlebar").remove();
1360
+ },
1361
+ buttons: { OK: function() { that.hideloading(); } }
1362
+ });
1363
+ }
1364
+ },
1365
+ validateajax: function(d, hide_dialog) {
1366
+ if (!d) {
1367
+ this.errorloading(null, hide_dialog);
1368
+ return -1;
1369
+ }
1370
+ return 0;
1371
+ }
1372
+ });