oss_rb 0.1.1 → 0.1.2
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/Gemfile.lock +4 -4
- data/lib/oss_rb.rb +1 -1
- data/lib/oss_rb/version.rb +1 -1
- data/spec/api/api_v1_spec.rb +6 -0
- 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: 8876922687aa80913c995820633db9193c27292b
|
|
4
|
+
data.tar.gz: c584c591e1e7e82724beb0e2d09b839f9464411c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07f61e05dab5a1580ab827fcee31e826aa9ec8e3dac50d1965ea0bf712dcbe4af057bc56e1833182e2d1fbdbecb6a218379d3493208ba8b5f7808c27e244b531
|
|
7
|
+
data.tar.gz: df4806808f1a2f85b8919c52d4848fa6dc4fb0f32c8a0e18031cb64b20fa8cf99977c55b28812cc2c3ccea7c6ee9c54c480ac8520ce1e96689c449ace540f099
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
oss_rb (0.1.
|
|
4
|
+
oss_rb (0.1.1)
|
|
5
5
|
activesupport
|
|
6
6
|
rest-client
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ GEM
|
|
|
14
14
|
multi_json (~> 1.3)
|
|
15
15
|
thread_safe (~> 0.1)
|
|
16
16
|
tzinfo (~> 0.3.37)
|
|
17
|
-
atomic (1.1.
|
|
17
|
+
atomic (1.1.14)
|
|
18
18
|
coderay (1.0.9)
|
|
19
19
|
diff-lcs (1.2.4)
|
|
20
20
|
ffi (1.3.1)
|
|
@@ -45,7 +45,7 @@ GEM
|
|
|
45
45
|
method_source (0.8.1)
|
|
46
46
|
mime-types (1.25)
|
|
47
47
|
minitest (4.7.5)
|
|
48
|
-
multi_json (1.
|
|
48
|
+
multi_json (1.8.1)
|
|
49
49
|
net-http-spy (0.2.1)
|
|
50
50
|
pry (0.9.12.2)
|
|
51
51
|
coderay (~> 1.0.5)
|
|
@@ -74,7 +74,7 @@ GEM
|
|
|
74
74
|
spoon (0.0.4)
|
|
75
75
|
ffi
|
|
76
76
|
thor (0.18.1)
|
|
77
|
-
thread_safe (0.1.
|
|
77
|
+
thread_safe (0.1.3)
|
|
78
78
|
atomic
|
|
79
79
|
tzinfo (0.3.37)
|
|
80
80
|
|
data/lib/oss_rb.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Oss
|
|
|
32
32
|
# Create or update the field defined by the given hash
|
|
33
33
|
# http://github.com/jaeksoft/opensearchserver/wiki/Field-create-update
|
|
34
34
|
def set_field(field_params)
|
|
35
|
-
api_put_json "services/rest/index/#{@name}/field/#{field_params['name']}", field_params
|
|
35
|
+
api_put_json "services/rest/index/#{@name}/field/#{URI.encode(field_params['name'])}", field_params
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# Set the default field and the unique field
|
data/lib/oss_rb/version.rb
CHANGED
data/spec/api/api_v1_spec.rb
CHANGED
|
@@ -50,6 +50,12 @@ describe Oss::Index do
|
|
|
50
50
|
'indexed' => 'YES'
|
|
51
51
|
}
|
|
52
52
|
@index.set_field(params)
|
|
53
|
+
params = {
|
|
54
|
+
'name' => 'id|integer',
|
|
55
|
+
'stored' => 'NO',
|
|
56
|
+
'indexed' => 'YES'
|
|
57
|
+
}
|
|
58
|
+
@index.set_field(params)
|
|
53
59
|
params = {
|
|
54
60
|
'name' => 'user',
|
|
55
61
|
'analyzer' => 'StandardAnalyzer',
|