fluent-plugin-groonga 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc471bf3943996d9224a54431bf81a5323c53dcd
4
- data.tar.gz: 3c37826e7793bbcab4d8009c6d0555aa74577858
3
+ metadata.gz: a74f86c55ce47a9cfe50317b340e485660cae1f4
4
+ data.tar.gz: 3ced1531e3662eeeb185cfb8bbff85b7fb171cb5
5
5
  SHA512:
6
- metadata.gz: d1dc9a521003ddc42ccc0ff98e88468931b4d9400e5d7cb5e592a836d1be655a858a396a9275c1058a8c221041854c3d5e69e481781fdc475e0911d1595301d3
7
- data.tar.gz: 63e6a01cafd4bcb3e104ec80bcd53a48a4d375f29f95a292b4f214e360c287a846d41f120dd5e3b9ed52ef587f60a5cd7283dad7c03aa14f07b9d80f2adf6807
6
+ metadata.gz: 086f186331471cdda0b652e36e4c4b8d7344d1f17413bfcc6ec4430c6a1ba097c863a14667f0ae9fc230f17fe265dc6165fabf4a45cf7e9f76f11b9d0aea37ed
7
+ data.tar.gz: 2992195c8cbae5bfd07167f39bf46af6f686ce82ee153826ea710cb0b148d17155e3562a5e35b2c60f9f4436988945df7b62a2a3f0b125aacf1bb8ddbd7b951f
@@ -2,6 +2,13 @@
2
2
 
3
3
  # News
4
4
 
5
+ ## 1.0.7: 2014-11-05
6
+
7
+ ### Improvements
8
+
9
+ * out: Added `WITH_POSITION` index flags when any tokenizer is set to
10
+ lexicon.
11
+
5
12
  ## 1.0.6: 2014-11-05
6
13
 
7
14
  ### Improvements
@@ -17,7 +17,7 @@
17
17
 
18
18
  Gem::Specification.new do |spec|
19
19
  spec.name = "fluent-plugin-groonga"
20
- spec.version = "1.0.6"
20
+ spec.version = "1.0.7"
21
21
  spec.authors = ["Kouhei Sutou"]
22
22
  spec.email = ["kou@clear-code.com"]
23
23
  spec.summary = "Fluentd plugin to store data into Groonga and implement Groonga replication system."
@@ -157,10 +157,6 @@ module Fluent
157
157
  end
158
158
  end
159
159
 
160
- def use_n_gram_tokenizer?
161
- /\AToken(?:Uni|Bi|Tri)gram/ === default_tokenizer.to_s
162
- end
163
-
164
160
  def have_difference?(table)
165
161
  return true if table.name != name
166
162
 
@@ -233,7 +229,7 @@ module Fluent
233
229
 
234
230
  def flags
235
231
  _flags = ["COLUMN_INDEX"]
236
- _flags << "WITH_POSITION" if @table.use_n_gram_tokenizer?
232
+ _flags << "WITH_POSITION" if @table.default_tokenizer
237
233
  _flags << "WITH_SECTION" if source_columns.size >= 2
238
234
  _flags
239
235
  end
@@ -127,6 +127,10 @@ class OutputTypeGuesserTest < Test::Unit::TestCase
127
127
  message = "X" * (2 ** 12)
128
128
  assert_equal("ShortText", guess([message]))
129
129
  end
130
+
131
+ test "nil" do
132
+ assert_equal("ShortText", guess([nil]))
133
+ end
130
134
  end
131
135
 
132
136
  sub_test_case "Text" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-groonga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou