groonga-client-rails 0.9.5 → 0.9.6

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: 00dc09f576d3e1ac6f32e8ba7813e0da4f5e6174
4
- data.tar.gz: cc731edd88e439fc245dee13245978280cf64d1f
3
+ metadata.gz: 2ca5a60fd3fca5df8832cd9c8be6683466666614
4
+ data.tar.gz: 7da2fe87adb1ba2e2b2c9f0bee00edcb84581a0a
5
5
  SHA512:
6
- metadata.gz: 2fe2a8ba1c4a5b2d0fb2837b0c98625bddf14f64248d28507559ea7372cbbf683e12a99e206abd5f43bb3dbf894b77011731be7f0f331e777f92b2f53b398f0a
7
- data.tar.gz: dc33b785d1ccca991e5392ee39be9975908a58f238ba28e651f6d07e47787a65fd82a8cff7f231f7b6662e106862974cafb8fef6ada6a1e0f4e0f57ac65ba993
6
+ metadata.gz: 114bb69be2a9d780fc5d4864f4f16fd902902046fa8895bd54a1174f64c96b2245425e255d93aad06984be15e0ea4e087bab119f65907fc18596eba53d7c82f7
7
+ data.tar.gz: 220a17172ebb90296290974f7232a56f3e54a9878155a7b9b45b6d70779f1168bbd5ff6b20fa48b752957ef89776dd32fcfc7138dcaa3b5ee0c4a016cc9f6b13
@@ -1,5 +1,12 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.9.6 - 2016-12-21
4
+
5
+ ### Improvements
6
+
7
+ * Added indexed text family vector column to the default
8
+ `match_columns` list.
9
+
3
10
  ## 0.9.5 - 2016-12-21
4
11
 
5
12
  ### Improvements
@@ -17,7 +17,7 @@
17
17
  module Groonga
18
18
  class Client
19
19
  module Rails
20
- VERSION = "0.9.5"
20
+ VERSION = "0.9.6"
21
21
  end
22
22
  end
23
23
  end
@@ -149,6 +149,8 @@ module Groonga
149
149
  schema.columns.each do |name, column|
150
150
  if column.have_full_text_search_index?
151
151
  full_text_searchable_column_names << name
152
+ elsif column.have_index? and column.vector?
153
+ full_text_searchable_column_names << name
152
154
  end
153
155
  end
154
156
  extensions = [SelectRequest]
@@ -60,6 +60,15 @@ module Groonga
60
60
  @options[:type] || "Text"
61
61
  end
62
62
 
63
+ def text_family_type?
64
+ case type
65
+ when "ShortText", "Text", "LongText"
66
+ true
67
+ else
68
+ false
69
+ end
70
+ end
71
+
63
72
  def vector?
64
73
  @options[:vector]
65
74
  end
@@ -98,6 +98,9 @@ module Groonga
98
98
  parameters[:normalizer] = "NormalizerAuto"
99
99
  else
100
100
  parameters[:key_type] = column.type
101
+ if column.text_family_type?
102
+ parameters[:normalizer] = "NormalizerAuto"
103
+ end
101
104
  end
102
105
  Client.open do |client|
103
106
  client.table_create(parameters)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-client-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -481,7 +481,6 @@ files:
481
481
  - test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/z6/z6juZG91PfdGTEhEife_MlutAwyoheFYa52JtbCUvBM.cache
482
482
  - test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/zh/zhmfmdnnow0QqwfT_7IXfN-FAU8qAMm03N7XQjFct6E.cache
483
483
  - test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/zz/zzyY0k_acKQ2rB0GJcjv6jioH5c2iq-jMM_qIhbfdnI.cache
484
- - test/apps/rails5-activerecord/tmp/pids/server.pid
485
484
  - test/apps/rails5-activerecord/tmp/restart.txt
486
485
  - test/run-test.rb
487
486
  - test/unit/run-test.rb
@@ -839,7 +838,6 @@ test_files:
839
838
  - test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/DY/DYQB1uQOZWEQCZyNqRYGbp3TUGnhwGln6l0LJxvfdSM.cache
840
839
  - test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/zh/zhmfmdnnow0QqwfT_7IXfN-FAU8qAMm03N7XQjFct6E.cache
841
840
  - test/apps/rails5-activerecord/tmp/cache/assets/sprockets/v3.0/s8/s85RambnXGg0AXRuWcCg0nv0_yQuuimoB-efYJZXR_g.cache
842
- - test/apps/rails5-activerecord/tmp/pids/server.pid
843
841
  - test/run-test.rb
844
842
  - test/unit/run-test.rb
845
843
  - test/unit/test_helper.rb