es-elasticity 0.2.5 → 0.2.6
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.
- checksums.yaml +4 -4
- data/lib/elasticity/document.rb +5 -0
- data/lib/elasticity/search.rb +4 -0
- data/lib/elasticity/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a45df14b8d96ab9f324461a6c62c226c3166b03c
|
4
|
+
data.tar.gz: 78f6f7b959299ddd2836676e236f5e59e653d37d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86bd2492bb54b2286b380635e9b09fd2a4f1b701ad57648b34b703c1c708d156ae6e1765867d213b539f47d1072003be2a92c00a600a0c083b0be08b30d81ff4
|
7
|
+
data.tar.gz: c2197c269b55a016880aedd536c85945d0ba9978f32adb19d434da68a3bc22bc7d6dda8fe55f6def39f4ad6fee5cb7671c81b645e4489572a5fb17247f638f0a
|
data/lib/elasticity/document.rb
CHANGED
@@ -18,6 +18,11 @@ module Elasticity
|
|
18
18
|
self.index.recreate(settings: Elasticity.config.settings, mappings: { document_type => @mappings })
|
19
19
|
end
|
20
20
|
|
21
|
+
# Deletes the index
|
22
|
+
def self.delete_index
|
23
|
+
self.index.delete
|
24
|
+
end
|
25
|
+
|
21
26
|
# The index name to be used for indexing and storing data for this document model.
|
22
27
|
# By default, it's the class name converted to underscore and plural.
|
23
28
|
def self.index_name
|
data/lib/elasticity/search.rb
CHANGED
data/lib/elasticity/version.rb
CHANGED