searchkick-hooopo 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/searchkick/model.rb +7 -0
- data/lib/searchkick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd878fffec743015745b05e721873cdf845def1
|
4
|
+
data.tar.gz: 8c3650214768a063c743cbe06b89a36aeb045070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e188ae0743ef683bb151c8a19d13e3e4328ae28b91328d3a2b3c3d2f3a4ffc632dd7a90dae579f17620f4f227b67c943094f7a25788ebd8abc3881bd0357a0a6
|
7
|
+
data.tar.gz: 9784fdc900f4100e5c99f84aa407fac72a067acdc79ba12f2907452c13230a7cc83b8d402c28db2b497d0baf6d0542eb81c21ca3d0fbc04211943e00f615ad61
|
data/lib/searchkick/model.rb
CHANGED
@@ -128,6 +128,13 @@ module Searchkick
|
|
128
128
|
end
|
129
129
|
end unless method_defined?(:reindex)
|
130
130
|
|
131
|
+
def termvectors(arguments = {})
|
132
|
+
index = self.class.searchkick_index
|
133
|
+
index_name = index.name
|
134
|
+
index_type = index.send :document_type, self
|
135
|
+
Searchkick.client.termvectors(:id => self.id, :index => index_name, :type => index_type)
|
136
|
+
end
|
137
|
+
|
131
138
|
# TODO remove this method in next major version
|
132
139
|
def reindex_async
|
133
140
|
reindex(async: true)
|
data/lib/searchkick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: searchkick-hooopo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|