elos 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elos/index/properties.rb +20 -0
- data/lib/elos/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: 1c32fbd98e20e9845ea0c00bb15c4b477cd69d5b
|
4
|
+
data.tar.gz: 3096b2f7886ebac58123c572dc4be3acf9fb4693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 385d5e56c5c6dcb633b9df6d3e61f6846029e6285f51c4556a8e43c5414db392adfc18bdfd3d842e432022bb1ab4a8f4f3b79c4e0344bc4612ba9c1b6a3e66d9
|
7
|
+
data.tar.gz: 1f978c9c68b0d4ab07d16ec699386c2dcd3ff56d069ac135584ec02a98a50de5615297c2fbe9e349442e8d6131068c8ac919fbe65e17a83d840d67ecc4ea4332
|
@@ -2,6 +2,26 @@ module Elos::Index::Properties
|
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
class_methods do
|
5
|
+
def array_property(value_type)
|
6
|
+
{
|
7
|
+
properties: {
|
8
|
+
value: send("#{value_type}_property")
|
9
|
+
}
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
def string_property
|
14
|
+
{ type: 'string', index: 'not_analyzed' }
|
15
|
+
end
|
16
|
+
|
17
|
+
def integer_property
|
18
|
+
{ type: 'integer' }
|
19
|
+
end
|
20
|
+
|
21
|
+
def long_property
|
22
|
+
{ type: 'long' }
|
23
|
+
end
|
24
|
+
|
5
25
|
def boolean_property
|
6
26
|
{ type: 'boolean' }
|
7
27
|
end
|
data/lib/elos/version.rb
CHANGED