rroonga 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. data/README.textile +71 -0
  2. data/Rakefile +213 -128
  3. data/TODO +0 -0
  4. data/example/bookmark.rb +12 -12
  5. data/ext/groonga/Makefile +233 -0
  6. data/ext/groonga/extconf.rb +1 -1
  7. data/ext/groonga/rb-grn-column.c +5 -5
  8. data/ext/groonga/rb-grn-index-column.c +31 -0
  9. data/ext/groonga/rb-grn-index-cursor.c +106 -0
  10. data/ext/groonga/rb-grn-logger.c +5 -5
  11. data/ext/groonga/rb-grn-object.c +48 -0
  12. data/ext/groonga/rb-grn-patricia-trie.c +1 -1
  13. data/ext/groonga/rb-grn-plugin.c +32 -0
  14. data/ext/groonga/rb-grn-posting.c +51 -0
  15. data/ext/groonga/rb-grn-table-cursor.c +6 -1
  16. data/ext/groonga/rb-grn-table.c +31 -13
  17. data/ext/groonga/rb-grn.h +21 -3
  18. data/ext/groonga/rb-groonga.c +3 -1
  19. data/lib/groonga.rb +1 -0
  20. data/lib/groonga/dumper.rb +25 -5
  21. data/lib/groonga/expression-builder.rb +2 -2
  22. data/lib/groonga/pagination.rb +99 -7
  23. data/lib/groonga/posting.rb +87 -0
  24. data/lib/groonga/record.rb +118 -11
  25. data/lib/groonga/schema.rb +18 -1
  26. data/test/groonga-test-utils.rb +1 -6
  27. data/test/run-test.rb +13 -28
  28. data/test/test-column.rb +4 -0
  29. data/test/test-database-dumper.rb +53 -10
  30. data/test/test-hash.rb +6 -6
  31. data/test/test-index-cursor.rb +93 -0
  32. data/test/test-plugin.rb +6 -0
  33. data/test/test-record.rb +162 -1
  34. data/test/test-schema-type.rb +6 -0
  35. data/test/test-schema.rb +17 -0
  36. data/test/test-table.rb +7 -2
  37. data/test/test-type.rb +9 -1
  38. metadata +135 -245
  39. data/AUTHORS +0 -5
  40. data/NEWS.ja.rdoc +0 -344
  41. data/NEWS.rdoc +0 -346
  42. data/README.ja.rdoc +0 -68
  43. data/README.rdoc +0 -68
  44. data/example/search/config.ru +0 -230
  45. data/example/search/public/css/groonga.css +0 -122
  46. data/ext/.gitignore +0 -2
  47. data/html/bar.svg +0 -153
  48. data/html/developer.html +0 -151
  49. data/html/developer.svg +0 -469
  50. data/html/download.svg +0 -253
  51. data/html/favicon.ico +0 -0
  52. data/html/favicon.svg +0 -591
  53. data/html/footer.html.erb +0 -33
  54. data/html/head.html.erb +0 -4
  55. data/html/header.html.erb +0 -17
  56. data/html/heading-mark.svg +0 -393
  57. data/html/index.html +0 -243
  58. data/html/install.svg +0 -636
  59. data/html/logo.svg +0 -612
  60. data/html/ranguba.css +0 -342
  61. data/html/readme.svg +0 -256
  62. data/html/tutorial.svg +0 -559
  63. data/license/LGPL +0 -504
  64. data/test-unit-notify/Rakefile +0 -47
  65. data/test-unit-notify/lib/test/unit/notify.rb +0 -104
  66. data/test-unit/COPYING +0 -56
  67. data/test-unit/GPL +0 -340
  68. data/test-unit/PSFL +0 -271
  69. data/test-unit/Rakefile +0 -53
  70. data/test-unit/TODO +0 -5
  71. data/test-unit/bin/testrb +0 -5
  72. data/test-unit/html/bar.svg +0 -153
  73. data/test-unit/html/developer.svg +0 -469
  74. data/test-unit/html/favicon.ico +0 -0
  75. data/test-unit/html/favicon.svg +0 -82
  76. data/test-unit/html/heading-mark.svg +0 -393
  77. data/test-unit/html/index.html +0 -247
  78. data/test-unit/html/index.html.ja +0 -270
  79. data/test-unit/html/install.svg +0 -636
  80. data/test-unit/html/logo.svg +0 -483
  81. data/test-unit/html/test-unit.css +0 -339
  82. data/test-unit/html/tutorial.svg +0 -559
  83. data/test-unit/lib/test/unit.rb +0 -328
  84. data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
  85. data/test-unit/lib/test/unit/assertions.rb +0 -1334
  86. data/test-unit/lib/test/unit/attribute.rb +0 -125
  87. data/test-unit/lib/test/unit/autorunner.rb +0 -363
  88. data/test-unit/lib/test/unit/collector.rb +0 -36
  89. data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
  90. data/test-unit/lib/test/unit/collector/dir.rb +0 -108
  91. data/test-unit/lib/test/unit/collector/load.rb +0 -144
  92. data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
  93. data/test-unit/lib/test/unit/color-scheme.rb +0 -106
  94. data/test-unit/lib/test/unit/color.rb +0 -96
  95. data/test-unit/lib/test/unit/diff.rb +0 -740
  96. data/test-unit/lib/test/unit/error.rb +0 -130
  97. data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
  98. data/test-unit/lib/test/unit/failure.rb +0 -136
  99. data/test-unit/lib/test/unit/fixture.rb +0 -176
  100. data/test-unit/lib/test/unit/notification.rb +0 -129
  101. data/test-unit/lib/test/unit/omission.rb +0 -191
  102. data/test-unit/lib/test/unit/pending.rb +0 -150
  103. data/test-unit/lib/test/unit/priority.rb +0 -180
  104. data/test-unit/lib/test/unit/runner/console.rb +0 -52
  105. data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
  106. data/test-unit/lib/test/unit/runner/tap.rb +0 -8
  107. data/test-unit/lib/test/unit/testcase.rb +0 -483
  108. data/test-unit/lib/test/unit/testresult.rb +0 -121
  109. data/test-unit/lib/test/unit/testsuite.rb +0 -110
  110. data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
  111. data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -430
  112. data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
  113. data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
  114. data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
  115. data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -77
  116. data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
  117. data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
  118. data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
  119. data/test-unit/lib/test/unit/util/observable.rb +0 -90
  120. data/test-unit/lib/test/unit/util/output.rb +0 -31
  121. data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
  122. data/test-unit/lib/test/unit/version.rb +0 -7
  123. data/test-unit/sample/adder.rb +0 -13
  124. data/test-unit/sample/subtracter.rb +0 -12
  125. data/test-unit/sample/test_adder.rb +0 -20
  126. data/test-unit/sample/test_subtracter.rb +0 -20
  127. data/test-unit/sample/test_user.rb +0 -23
  128. data/test-unit/test/collector/test-descendant.rb +0 -133
  129. data/test-unit/test/collector/test-load.rb +0 -442
  130. data/test-unit/test/collector/test_dir.rb +0 -406
  131. data/test-unit/test/collector/test_objectspace.rb +0 -100
  132. data/test-unit/test/run-test.rb +0 -15
  133. data/test-unit/test/test-attribute.rb +0 -86
  134. data/test-unit/test/test-color-scheme.rb +0 -69
  135. data/test-unit/test/test-color.rb +0 -47
  136. data/test-unit/test/test-diff.rb +0 -518
  137. data/test-unit/test/test-emacs-runner.rb +0 -60
  138. data/test-unit/test/test-fixture.rb +0 -287
  139. data/test-unit/test/test-notification.rb +0 -33
  140. data/test-unit/test/test-omission.rb +0 -81
  141. data/test-unit/test/test-pending.rb +0 -70
  142. data/test-unit/test/test-priority.rb +0 -119
  143. data/test-unit/test/test-testcase.rb +0 -544
  144. data/test-unit/test/test_assertions.rb +0 -1197
  145. data/test-unit/test/test_error.rb +0 -26
  146. data/test-unit/test/test_failure.rb +0 -33
  147. data/test-unit/test/test_testresult.rb +0 -113
  148. data/test-unit/test/test_testsuite.rb +0 -129
  149. data/test-unit/test/testunit-test-util.rb +0 -14
  150. data/test-unit/test/ui/test_tap.rb +0 -33
  151. data/test-unit/test/ui/test_testrunmediator.rb +0 -20
  152. data/test-unit/test/util/test-method-owner-finder.rb +0 -38
  153. data/test-unit/test/util/test-output.rb +0 -11
  154. data/test-unit/test/util/test_backtracefilter.rb +0 -41
  155. data/test-unit/test/util/test_observable.rb +0 -102
  156. data/test-unit/test/util/test_procwrapper.rb +0 -36
  157. data/test/.gitignore +0 -1
  158. data/text/expression.rdoc +0 -285
  159. data/text/tutorial.ja.rdoc +0 -433
data/AUTHORS DELETED
@@ -1,5 +0,0 @@
1
- Kouhei Sutou <kou@clear-code.com>
2
- Tasuku SUENAGA <a@razil.jp>
3
- daijiro <morita@razil.jp>
4
- Yuto HAYAMIZU <y.hayamizu@gmail.com>
5
- SHIDARA Yoji <dara@shidara.net>
@@ -1,344 +0,0 @@
1
- = お知らせ
2
-
3
- == 1.2.0: 2011-04-01
4
-
5
- === 改良
6
-
7
- * groonga 1.2.0対応。
8
- * Groonga::Accessor#local_nameを追加。
9
- * Groonga::IndexColumn#with_section?を追加。
10
- * Groonga::IndexColumn#with_weight?を追加。
11
- * Groonga::IndexColumn#with_position?を追加。
12
- * Groonga::Schema.dumpがgroongaコマンド形式でのダンプに対応。
13
- * grndumpを追加。
14
- * Groonga::Database#eachで繰り返す順序を指定可能にした。
15
- * Groonga::Context#match_escalation_thresholdを追加。
16
- * Groonga::Context#match_escalation_threshold=を追加。
17
- * エラーメッセージの改良。
18
- * Groonga::Schemaの型指定で"ShortText"など正式型名だけではなく、
19
- :short_textなどよりRubyらしい名前を使えるようにした。
20
-
21
- == 1.1.0: 2011-02-09
22
-
23
- === 改良
24
-
25
- * groonga 1.1.0対応。
26
- * Groonga::Plugin.registerを追加。
27
-
28
- == 1.0.9: 2011-01-29
29
-
30
- === 改良
31
-
32
- * Windows上でのgem作成に対応。
33
- [ongaeshiさんがパッチ提供]
34
- * Groonga::Schemaでテーブル・カラムを削除した時に作成したディレクトリを
35
- 削除するようにした。
36
- * Groonga::Context#create_databaseを追加。
37
- * Groonga::Context#open_databaseを追加。
38
- * Groonga::Column#indexesを追加。
39
- * Groonga::Table#select内でのインデックスカラムにマッチする記法をサポート。
40
- table.select do |record|
41
- record.match("query") do |match_record|
42
- (match_record.index("Terms.title") * 1000) |
43
- (match_record.index("Terms.description") * 100)
44
- match_record.content
45
- end
46
- end
47
- * Groonga::Table#select内での前方一致検索に対応。
48
- table.select do |record|
49
- record.name.prefix_search("groo")
50
- end
51
- * Groonga::Table#select内での後方一致検索に対応。
52
- table.select do |record|
53
- record.name.suffix_search("nga")
54
- end
55
- * :default_tokenizerのスキーマダンプに対応。
56
- * :key_normalizeのスキーマダンプに対応。
57
- * Groonga::Table#have_column?が擬似カラムに対応。
58
- * Groonga::Record#have_column?が擬似カラムに対応。
59
-
60
- === 変更
61
-
62
- * Groonga::OperatoionをGroonga::Operatorに変更。
63
- (しばらくはGroonga::Operationも使えるが、非推奨。)
64
-
65
- === 修正
66
-
67
- * 複数のGroonga::Contextを利用した場合に
68
- Groonga::Table#selectでクラッシュする問題を修正。
69
- * 例外発生時にクラッシュする問題を修正。
70
-
71
- === 感謝
72
-
73
- * ongaeshioさん
74
-
75
- == 1.0.8: 2010-12-25
76
-
77
- === 改良
78
-
79
- * Groonga::Schemaのn-gramトークナイザー検出処理を改良。
80
-
81
- === 修正
82
-
83
- * selectでmatch_targetを利用した場合に生きているオブジェクトもGC
84
- される問題を修正。
85
-
86
- == 1.0.7: 2010-12-19
87
-
88
- === 修正
89
-
90
- * Ruby 1.8でRubyGemsでインストールされたpkg-configを使えるようにした。
91
- [@kamipoさんが報告]
92
- * Groonga::Table#columnsのメモリリークを修正。
93
-
94
- === 感謝
95
-
96
- * @kamipoさん
97
-
98
- == 1.0.5: 2010-11-29
99
-
100
- === 改良
101
-
102
- * Groonga::Schemaでgroongaの組み込み型をshort_textなどのように
103
- 「小文字 + アンダースコア」でも指定できるようにした。
104
-
105
- === 修正
106
-
107
- * GC時にクラッシュするバグを修正。 [Ryo Onodera]
108
-
109
- == 1.0.4: 2010-11-29
110
-
111
- === 改良
112
-
113
- * groonga 1.0.4対応。
114
- * Groonga::UnsupportedCommandVersionを追加。
115
- * Groonga::Record#support_sub_records?を追加。
116
- * Groonga::Record#eql?とGroonga::Record#hashを追加。
117
- (同じテーブルの同じレコードIDのオブジェクトを同一のHashキーとして扱う。)
118
- * pkg-config gemを利用するようにした。
119
- * Groonga::Table#select内でrecord_idメソッドを持っているメソッドはレコード
120
- として扱うようにした。
121
- * Groonga::Record#record_idを追加。
122
- * Groonga::Table#support_key?を追加。
123
- * Groonga::Record#support_key?を追加。
124
- * Groonga::Record#support_key?を追加。
125
- * Groonga::Column#reference_key?を追加。
126
- * Groonga::Column#index_column?を追加。
127
- * Groonga::Schema#dumpを追加。
128
- * Groonga::Schemaが複数のカラムのインデックス作成に対応。
129
- * Groonga::Schemaで定義したオブジェクトに対応するファイル名に
130
- わかりやすいファイル名を利用するようにした。
131
- * Groonga::Schemaで参照カラムを定義時に参照先のテーブル名を省略可能になった。
132
- * Groonga::Schema.remove_columnを追加。
133
- * Groonga::Schemaでcreated_atカラムとupdated_atカラムを作るための
134
- timestamps便利メソッドを追加。
135
- * Groonga::Context#support_zlib?を追加。
136
- * Groonga::Context#support_lzo?を追加。
137
- * Groonga::Database#touchを追加。
138
- * Groonga::Table#exist?を追加。
139
- * Groonga::Record#valid?を追加。
140
- * Groonga::Column#vector?を追加。
141
- * Groonga::Column#scalar?を追加。
142
- * Groonga::Record#vector_column?を追加。
143
- * Groonga::Record#scalar_column?を追加。
144
- * レコードIDが必要なところにrecord_raw_idを持つオブジェクトなら
145
- Groonga::Record以外も渡せるようにした。
146
- * Groonga::Record#record_raw_idを追加。
147
- * ベクタの参照カラムの値にArray以外でもto_aryを持つオブジェクトを
148
- 設定できるようにした。
149
-
150
- == 変更
151
-
152
- * Groonga::PatriciaTrie#open_cursorでは:order_byのデフォルト値として:key
153
- を使うようにした。
154
- * 非推奨扱いのGroonga::TableKeySupport#findを削除。
155
- * Groonga::Hash#createとGroonga::PatriciaTrie#createでキーの型を省略した
156
- 場合はShortTextを使用するようにした。
157
- * Groonga::Schema#loadをGroonga::Schema#restoreに改名。
158
- * pkg-config 1.0.7対応。
159
- * Groonga::Column#index?を追加。Groonga::Column#index_column?は非推奨。
160
- * Groonga::Column#reference?を追加。Groonga::Column#reference_column?は非推奨。
161
-
162
- === 修正
163
-
164
- * keyにインデックスを張れない問題を修正。
165
- * GC時にクラッシュする問題を修正。
166
-
167
- == 1.0.1: 2010-09-12
168
-
169
- === 修正
170
-
171
- * テーブル作成時に誤ったフラグを指定していた問題を修正。
172
- [小野マトペさんが報告]
173
-
174
- === 感謝
175
-
176
- * 小野マトペさん
177
-
178
- == 1.0.0: 2010-08-29
179
-
180
- * groonga 1.0.0対応。
181
- * Groonga::CASErrorを追加。
182
- * Groonga::Table#open_cursorに:order_byオプションを追加。
183
- * 前方一致検索がマッチしたレコードを順に取り出すカーソルを作る
184
- Groonga::PatriciaTrie#open_prefix_cursorを追加。
185
- * ローマ字・ひらがなでカタカナのキーを検索するカーソルを作る
186
- Groonga::PatriciaTrie#open_rk_cursorを追加。
187
- * 値の近い順にレコードを取り出すカーソルを作る
188
- Groonga::PatriciaTrie#open_near_cursorを追加。
189
- * インデックスのソースに_keyを指定できるようになった。
190
-
191
- == 0.9.5: 2010-07-29
192
-
193
- * groonga 0.7.4対応。
194
- * Groonga::Table#selectの改良:
195
- * 重み付きマッチ対応:
196
-
197
- sourceカラムとtitleカラムにマッチするが、
198
- titleカラムの方がスコアが大きくなる例:
199
- table.select do |record|
200
- (record.title * 10 | record.source) =~ "query"
201
- end
202
- * 配列で複数条件のand表現に対応:
203
-
204
- 以下は同じ条件になる:
205
- table.select do |record|
206
- conditions = []
207
- conditions << record.title =~ "query"
208
- conditions << record.updated_at > Time.parse("2010-07-29T21:14:29+09:00")
209
- conditions
210
- end
211
-
212
- table.select do |record|
213
- (record.title =~ "query") &
214
- (record.updated_at > Time.parse("2010-07-29T21:14:29+09:00"))
215
- end
216
- * 利用しているgroongaのバージョン取得対応: Groonga::VERSION
217
- * Groonga::Table#support_sub_records?追加
218
- * ページネーション対応: Groonga::Table#paginate, Groonga::Pagination
219
-
220
- == 0.9.4: 2010-04-22
221
-
222
- * リリースミス修正。
223
-
224
- == 0.9.3: 2010-04-22
225
-
226
- * リリースミス修正。
227
-
228
- == 0.9.2: 2010-04-22
229
-
230
- * groonga 0.1.9対応。
231
- * たくさん。
232
-
233
- == 0.9.1: 2010-02-09
234
-
235
- * groonga 0.1.6対応
236
-
237
- == 0.9.0: 2010-02-09
238
-
239
- * groonga 0.1.5対応
240
- * APIの追加
241
- * Groonga::Object#context
242
- * Groonga::Record#n_sub_records
243
- * Groonga::Context#send
244
- * Groonga::Context#receive
245
- * Groonga::PatriciaTrie#prefix_search [Tasuku SUENAGA]
246
- * Groonga::Object#path [Ryo Onodera]
247
- * Groonga::Object#lock [Tasuku SUENAGA]
248
- * Groonga::Object#unlock [Tasuku SUENAGA]
249
- * Groonga::Object#locked? [Tasuku SUENAGA]
250
- * Groonga::Object#temporary?
251
- * Groonga::Object#persistent?
252
- * Groonga::ObjectClosed
253
- * Groonga::Context.[]
254
- * Groonga::Table#column_value
255
- * Groonga::Table#set_column_value
256
- * APIの変更
257
- * Groonga::Table#select, Groonga::Column#select
258
- * Groonga::Expressionも受け付けるようになった
259
- * grn式のシンタックスを指定する:syntaxオプションの追加
260
- * Groonga::Table#open_cursor
261
- * 開始位置を指定する:offsetオプションの追加
262
- * 最大レコード数を指定する:limitオプションの追加
263
- * Groonga::Expression.parseの引数を変更
264
- * (nil (default) -> :column) -> (nil (default) -> :query)
265
- * :column -> 廃止
266
- * :table -> :query
267
- * :table_query -> :query
268
- * :expression -> :script
269
- * :language -> :script
270
- * Groonga::Table#define_column, Groonga::Table#define_index_column
271
- * 永続テーブルをデフォルトにした
272
- * Groonga::Table#[]をGroonga::Table#valueに変更
273
- * Groonga::Table#[]=をGroonga::Table#set_valueに変更
274
- * Groonga::Table#findをGroonga::Table#[]に変更
275
- * Groonga::Table#findは非推奨
276
- * Groonga::Table#[]=を削除
277
- * Groonga::TableKeySupport#[]=はGroonga::TableKeySupport#addの別名
278
- * Groonga::Recordで存在しないカラムにアクセスしたときの例外を
279
- Groonga::InvalidArgumentからGroonga::NoSuchColumnに変更
280
- * バグ修正
281
- * スキーマにコンテキストが伝搬されない問題の修正 [dara]
282
- * Groonga::PatriciaTrie#tag_keysが最後のテキストを返さない問題の修正
283
- [Ryo Onodera]
284
- * extconf.rbにデバッグモードでビルドする--with-debugオプションを追加
285
- * Ruby 1.9.1でextconf.rbが失敗する問題の修正
286
-
287
- === 感謝
288
-
289
- * dara
290
- * Ryo Onodera
291
- * Tasuku SUENAGA
292
-
293
- == 0.0.7: 2009-10-02
294
-
295
- * groonga 0.1.4対応
296
- * APIの追加
297
- * Groonga::PatriciaTrie#scan
298
- * Groonga::PatriciaTrie#tag_keys
299
- * Groonga::Expression#snippet
300
- * Groonga::Object#append
301
- * Groonga::Object#prepend
302
-
303
- == 0.0.6: 2009-07-31
304
-
305
- * groonga 0.1.1対応
306
- * ドキュメントの修正 [id:mat_aki]
307
- * Groonga::Table#selectでのg式対応
308
- * APIの追加
309
- * Groonga::Table#union!
310
- * Groonga::Table#intersect!
311
- * Groonga::Table#differene!
312
- * Groonga::Table#merge!
313
- * tar.gzも提供 [id:m_seki]
314
- * メモリリークの修正
315
-
316
- == 0.0.3: 2009-07-18
317
-
318
- * [#26145] Groonga::TableKeySupport#has_key?の追加 [Tasuku SUENAGA]
319
- * [#26146] カラム名が存在しない場合はGroonga::Record#[]が例外
320
- をあげるように変更 [Tasuku SUENAGA]
321
- * 32ビット環境をサポート [niku]
322
- * N-gramインデックスサーチのテストを追加 [dara]
323
- * APIの追加
324
- * Groonga::Record#incemrent!
325
- * Groonga::Record#decemrent!
326
- * Groonga::Record#lock
327
- * Groonga::Table#lock
328
- * Groonga::Schema: スキーマ定義用DSL
329
- * Groonga::Expression
330
-
331
- == 0.0.2: 2009-06-04
332
-
333
- * groonga 0.0.8対応 [mori]
334
- * 性能向上: キー、値、ドメイン、レンジをキャッシュ
335
- * API改良
336
- * ドキュメントの追加
337
- * Ruby 1.9対応
338
- * バグ修正:
339
- * インストール処理の修正 [Tasuku SUENAGA]
340
- * メモリリーク修正
341
-
342
- == 0.0.1: 2009-04-30
343
-
344
- * 最初のリリース!
data/NEWS.rdoc DELETED
@@ -1,346 +0,0 @@
1
- = NEWS
2
-
3
- == 1.2.0: 2011-04-01
4
-
5
- === Improvements
6
-
7
- * Supported groonga 1.2.0.
8
- * Added Groonga::Accessor#local_name.
9
- * Added Groonga::IndexColumn#with_section?.
10
- * Added Groonga::IndexColumn#with_weight?.
11
- * Added Groonga::IndexColumn#with_position?.
12
- * Groonga::Schema.dump supported groonga command format dump.
13
- * Added grndump command.
14
- * Groonga::Database#each supports order customize.
15
- * Added Groonga::Context#match_escalation_threshold.
16
- * Added Groonga::Context#match_escalation_threshold=.
17
- * Improved error message.
18
- * Supported Rubyish name like :short_text instead of the
19
- official type name like "ShortText" in Groonga::Schema.
20
-
21
- == 1.1.0: 2011-02-09
22
-
23
- === Improvements
24
-
25
- * Supported groonga 1.1.0.
26
- * Added Groonga::Plugin.register.
27
-
28
- == 1.0.9: 2011-01-29
29
-
30
- === Improvements
31
-
32
- * Supported gem creation on Windows.
33
- [Patch by ongaeshi]
34
- * Supported generated directory that is created by Groonga::Schema removal
35
- when table or column is removed.
36
- * Added Groonga::Context#create_database.
37
- * Added Groonga::Context#open_database.
38
- * Added Groonga::Column#indexes.
39
- * Supported a notation for specifying index column as match target in
40
- Groonga::Table#select:
41
- table.select do |record|
42
- record.match("query") do |match_record|
43
- (match_record.index("Terms.title") * 1000) |
44
- (match_record.index("Terms.description") * 100)
45
- match_record.content
46
- end
47
- end
48
- * Supported prefix search in Groonga::Table#select:
49
- table.select do |record|
50
- record.name.prefix_search("groo")
51
- end
52
- * Supported suffix search in Groonga::Table#select:
53
- table.select do |record|
54
- record.name.suffix_search("nga")
55
- end
56
- * Supported :default_tokenizer schema dump.
57
- * Supported :key_normalize schema dump.
58
- * Supported pseudo columns by Groonga::Table#have_column?.
59
- * Supported pseudo columns by Groonga::Record#have_column?.
60
-
61
- === Changes
62
-
63
- * Renamed Groonga::Operatoion to Groonga::Operator.
64
- (Groonga::Operation is deprecated but still usable.)
65
-
66
- === Fixes
67
-
68
- * Fixed a crash bug when not default Groonga::Context is used in
69
- Groonga::Table#select.
70
- * Fixed a crash bug when an exception is occurred.
71
-
72
- === Thanks
73
-
74
- * ongaeshio
75
-
76
- == 1.0.8: 2010-12-25
77
-
78
- === Improvements
79
-
80
- * Improved Groonga::Schema's n-gram tokenizer detect process.
81
-
82
- === Fixes
83
-
84
- * Fixed GC problem caused by match_target in select.
85
-
86
- == 1.0.7: 2010-12-19
87
-
88
- === Fixes
89
-
90
- * Supported pkg-config installed by RubyGems on Ruby 1.8.
91
- [Reported by @kamipo]
92
- * Fixed a memory leak in Groonga::Table#columns.
93
-
94
- === Thanks
95
-
96
- * @kamipo
97
-
98
- == 1.0.5: 2010-11-29
99
-
100
- === Improvements
101
-
102
- * Added snail_case type name aliases for built-in groonga types
103
- to Groonga::Schema.
104
-
105
- === Fixes
106
-
107
- * Fixed a crash bug on GC. [Ryo Onodera]
108
-
109
- == 1.0.4: 2010-11-29
110
-
111
- === Improvements
112
-
113
- * Supported groonga 1.0.4.
114
- * Added Groonga::UnsupportedCommandVersion.
115
- * Added Groonga::Record#support_sub_records?.
116
- * Added Groonga::Record#eql?とGroonga::Record#hash.
117
- (treat two the same table and the same record ID object as the same Hash key.)
118
- * Supported pkg-config gem.
119
- * Supported generic #record_id object handle for custom record object
120
- in Groonga::Table#select.
121
- * Added Groonga::Record#record_id.
122
- * Added Groonga::Table#support_key?.
123
- * Added Groonga::Record#support_key?.
124
- * Added Groonga::Record#support_key?.
125
- * Added Groonga::Column#reference_key?.
126
- * Added Groonga::Column#index_column?.
127
- * Added Groonga::Schema#dump.
128
- * Supported multi columns index creation in Groonga::Schema.
129
- * Supported meaningful path in Groonga::Schema.
130
- * Made reference table omissible when index column definition
131
- in Groonga::Schema.
132
- * Added Groonga::Schema.remove_column.
133
- * Added convenience timestamps methods to define "created_at" and
134
- "updated_at" columns in Groonga::Schema.
135
- * Added Groonga::Context#support_zlib?.
136
- * Added Groonga::Context#support_lzo?.
137
- * Added Groonga::Database#touch.
138
- * Added Groonga::Table#exist?.
139
- * Added Groonga::Record#valid?.
140
- * Added Groonga::Column#vector?.
141
- * Added Groonga::Column#scalar?.
142
- * Added Groonga::Record#vector_column?.
143
- * Added Groonga::Record#scalar_column?.
144
- * Accepted any object that has record_raw_id method for record ID required
145
- location. Groonga::Record isn't required.
146
- * Added Groonga::Record#record_raw_id.
147
- * Accepted any object that as to_ary method for reference vector column value.
148
-
149
- == Changes
150
-
151
- * Used :key as the default value of :order_by of
152
- Groonga::PatriciaTrie#open_cursor.
153
- * Removed a deprecated Groonga::TableKeySupport#find.
154
- * Used ShortText as the default key type of
155
- Groonga::Hash#create and Groonga::PatriciaTrie#create.
156
- * Renamed Groonga::Schema#load to Groonga::Schema#restore.
157
- * Supported pkg-confg 1.0.7.
158
- * Added Groonga::Column#index? and deprecated Groonga::Column#index_column?.
159
- * Added Groonga::Column#reference? and deprecated
160
- Groonga::Column#reference_column?.
161
-
162
- === Fixes
163
-
164
- * Fixed index for key isn't be able to define.
165
- * Fixed a crash problem on GC.
166
-
167
- == 1.0.1: 2010-09-12
168
-
169
- === Fixes
170
-
171
- * Fixed wrong flag used on creating a table.
172
- [Reported by ono matope]
173
-
174
- === Thanks
175
-
176
- * ono matope
177
-
178
- == 1.0.0: 2010-08-29
179
-
180
- * Supported groonga 1.0.0.
181
- * Added Groonga::CASError.
182
- * Added :order_by option to Groonga::Table#open_cursor.
183
- * Added Groonga::PatriciaTrie#open_prefix_cursor that creates a cursor
184
- to retrieve each records by prefix search.
185
- * Added Groonga::PatriciaTrie#open_rk_cursor that creats a cursor to
186
- retrieve katakana keys from roman letters and/or hiragana.
187
- * Added Groonga::PatriciaTrie#open_near_cursor that creates a cursor to
188
- retrieve records order by distance from key.
189
- * Supported _key as index source.
190
-
191
- == 0.9.5: 2010-07-20
192
-
193
- * Supported groonga 0.7.4.
194
- * Imporoved Groonga::Table#select:
195
- * Supported weight match:
196
-
197
- Here is an example to match source column or title column and
198
- title column has high score:
199
- table.select do |record|
200
- (record.title * 10 | record.source) =~ "query"
201
- end
202
- * Supported and representation for and conditions:
203
-
204
- Here are examples that represents the same condition:
205
- table.select do |record|
206
- conditions = []
207
- conditions << record.title =~ "query"
208
- conditions << record.updated_at > Time.parse("2010-07-29T21:14:29+09:00")
209
- conditions
210
- end
211
-
212
- table.select do |record|
213
- (record.title =~ "query") &
214
- (record.updated_at > Time.parse("2010-07-29T21:14:29+09:00"))
215
- end
216
- * Provided groonga runtime version: Groonga::VERSION
217
- * Added Groonga::Table#support_sub_records?
218
- * Supported pagination: Groonga::Table#paginate, Groonga::Pagination
219
-
220
- == 0.9.4: 2010-04-22
221
-
222
- * Fixed release miss.
223
-
224
- == 0.9.3: 2010-04-22
225
-
226
- * Fixed release miss.
227
-
228
- == 0.9.2: 2010-04-22
229
-
230
- * Supported groonga 0.1.9.
231
- * Many.
232
-
233
- == 0.9.1: 2010-02-09
234
-
235
- * Supported groonga 0.1.6
236
-
237
- == 0.9.0: 2010-02-09
238
-
239
- * Supported groonga 0.1.5
240
- * Added API
241
- * Groonga::Object#context
242
- * Groonga::Record#n_sub_records
243
- * Groonga::Context#send
244
- * Groonga::Context#receive
245
- * Groonga::PatriciaTrie#prefix_search [Tasuku SUENAGA]
246
- * Groonga::Object#path [Ryo Onodera]
247
- * Groonga::Object#lock [Tasuku SUENAGA]
248
- * Groonga::Object#unlock [Tasuku SUENAGA]
249
- * Groonga::Object#locked? [Tasuku SUENAGA]
250
- * Groonga::Object#temporary?
251
- * Groonga::Object#persistent?
252
- * Groonga::ObjectClosed
253
- * Groonga::Context.[]
254
- * Groonga::Table#column_value
255
- * Groonga::Table#set_column_value
256
- * Changed API
257
- * Groonga::Table#select, Groonga::Column#select
258
- * They also accept Groonga::Expression
259
- * Added :syntax option that specifies grn expression syntax
260
- * Groonga::Table#open_cursor
261
- * Added :offset option that specifies offset.
262
- * Added :limit option that specifies max number of records.
263
- * Changed Groonga::Expression.parse options:
264
- * (nil (default) -> :column) -> (nil (default) -> :query)
265
- * :column -> removed
266
- * :table -> :query
267
- * :table_query -> :query
268
- * :expression -> :script
269
- * :language -> :script
270
- * Groonga::Table#define_column, Groonga::Table#define_index_column
271
- * Defined column becomes persistent table by default
272
- * Groonga::Table#[] -> Groonga::Table#value
273
- * Groonga::Table#[]= -> Groonga::Table#set_value
274
- * Groonga::Table#find -> Groonga::Table#[]
275
- * Groonga::Table#find -> obsolete
276
- * Groonga::Table#[]= -> removed
277
- * Groonga::TableKeySupport#[]= is alias of Groonga::TableKeySupport#add
278
- * Changed exception class to Groonga::NoSuchColumn from
279
- Groonga::InvalidArgument when Groonga::Record accesses nonexistent
280
- a column.
281
- * Bug fixes
282
- * Fixed a bug that context isn't passed to schema [dara]
283
- * Fixed a bug that Groonga::PatriciaTrie#tag_keys doesn't return
284
- that last text.
285
- [Ryo Onodera]
286
- * Added --with-debug option to extconf.rb for debug build.
287
- * Fixed a bug that Ruby 1.9.1 may fail extconf.rb.
288
-
289
- === Thanks
290
-
291
- * dara
292
- * Ryo Onodera
293
- * Tasuku SUENAGA
294
-
295
- == 0.0.7: 2009-10-02
296
-
297
- * Supported groonga 0.1.4
298
- * Added API
299
- * Groonga::PatriciaTrie#scan
300
- * Groonga::PatriciaTrie#tag_keys
301
- * Groonga::Expression#snippet
302
- * Groonga::Object#append
303
- * Groonga::Object#prepend
304
-
305
- == 0.0.6: 2009-07-31
306
-
307
- * Supported groonga 0.1.1.
308
- * Fixed documents [id:mat_aki]
309
- * Supported groonga expression for searching.
310
- * Added API
311
- * Groonga::Table#union!
312
- * Groonga::Table#intersect!
313
- * Groonga::Table#differene!
314
- * Groonga::Table#merge!
315
- * Provided tar.gz [id:m_seki]
316
- * Fixed memory leaks
317
-
318
- == 0.0.3: 2009-07-18
319
-
320
- * [#26145] Added Groonga::TableKeySupport#has_key? [Tasuku SUENAGA]
321
- * [#26146] Groonga::Record#[] raises an exception for nonexistent
322
- column name. [Tasuku SUENAGA]
323
- * Supported 32bit environment [niku]
324
- * Added a test for N-gram index search [dara]
325
- * Added APIs
326
- * Groonga::Record#incemrent!
327
- * Groonga::Record#decemrent!
328
- * Groonga::Record#lock
329
- * Groonga::Table#lock
330
- * Groonga::Schema: A DSL for schema definition
331
- * Groonga::Expression
332
-
333
- == 0.0.2: 2009-06-04
334
-
335
- * Supported groonga 0.0.8 [mori]
336
- * Improved preformance: cache key, value, domain and range
337
- * Improved API
338
- * Added documents
339
- * Supported Ruby 1.9
340
- * Bug fixes:
341
- * Fixed install process [Tasuku SUENAGA]
342
- * Fixed memory leaks
343
-
344
- == 0.0.1: 2009-04-30
345
-
346
- * Initial release!