es-elasticity 0.3.0 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c68c0531188ec748580e9dca08ef476d93d2b5f
|
4
|
+
data.tar.gz: 05c85b83b78bc01ada5940dfd1bf222de6fdacc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd0da8c79ee7376bb7d1236ba444e238c1e046af0724d9a6357d51a3d16d4ead3ee357dc19ef646eaaa2d74a70572229732fc211b93eb1de412f8d6989e84b6
|
7
|
+
data.tar.gz: d07b79d85935534f65ae761432dab36129094bbe0e9074b3fd9e406a34f74520886f4f1f7239daf7f96e770638b43c373e6780bc090e319046859bdd2db86143
|
data/lib/elasticity/document.rb
CHANGED
@@ -68,6 +68,12 @@ module Elasticity
|
|
68
68
|
!self.strategy.missing?
|
69
69
|
end
|
70
70
|
|
71
|
+
# Gets the index name to be used when you need to reference the index somewhere.
|
72
|
+
# This depends on the strategy being used, but it always refers to the search index.
|
73
|
+
def self.ref_index_name
|
74
|
+
self.strategy.ref_index_name
|
75
|
+
end
|
76
|
+
|
71
77
|
# Remap
|
72
78
|
def self.remap!
|
73
79
|
self.strategy.remap(settings: Elasticity.config.settings, mappings: { document_type => mapping })
|
data/lib/elasticity/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: es-elasticity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Kochenburger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|