rocket_cms 0.11.4 → 0.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/rocket_cms/controllers/search.rb +11 -4
- data/lib/rocket_cms/search.rb +2 -2
- data/lib/rocket_cms/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: a97ff759324e6fae31050031ba5e19c30df9d597
|
4
|
+
data.tar.gz: 18b02e11213d16fbba0eaa2efee88874eeb79bd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fdf4a12de024bdc2470457756957c6e9fca71e04bc4b805f515b9a1257b04061fd88c9e40adffdfd8c7da076cfc506b1ac9eb0998603cf7d7be16f6500060fc
|
7
|
+
data.tar.gz: a0d1093abd7d50ad8611e47c33afa41e8573d554decad106065c651a6caed2d8cc0710644e275e1929fc668cb2a004860274cdabd1758fc18780f4c2edc5c322
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.11.
|
4
|
+
rocket_cms (0.11.5)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
devise
|
@@ -81,7 +81,7 @@ GEM
|
|
81
81
|
warden (~> 1.2.3)
|
82
82
|
erubis (2.7.0)
|
83
83
|
execjs (2.6.0)
|
84
|
-
font-awesome-rails (4.
|
84
|
+
font-awesome-rails (4.6.1.0)
|
85
85
|
railties (>= 3.2, < 5.1)
|
86
86
|
glebtv-simple_captcha (0.6.7)
|
87
87
|
globalid (0.3.6)
|
@@ -162,12 +162,12 @@ GEM
|
|
162
162
|
activesupport (= 4.2.6)
|
163
163
|
rake (>= 0.8.7)
|
164
164
|
thor (>= 0.18.1, < 2.0)
|
165
|
-
rake (11.1.
|
165
|
+
rake (11.1.2)
|
166
166
|
remotipart (1.2.1)
|
167
167
|
responders (2.1.2)
|
168
168
|
railties (>= 4.2.0, < 5.1)
|
169
169
|
safe_yaml (1.0.4)
|
170
|
-
sass (3.4.
|
170
|
+
sass (3.4.22)
|
171
171
|
sass-rails (5.0.4)
|
172
172
|
railties (>= 4.0.0, < 5.0)
|
173
173
|
sass (~> 3.1)
|
@@ -184,7 +184,7 @@ GEM
|
|
184
184
|
smart_excerpt (0.1.5)
|
185
185
|
activesupport
|
186
186
|
htmlentities
|
187
|
-
sprockets (3.
|
187
|
+
sprockets (3.6.0)
|
188
188
|
concurrent-ruby (~> 1.0)
|
189
189
|
rack (> 1, < 3)
|
190
190
|
sprockets-rails (3.0.4)
|
@@ -7,17 +7,24 @@ module RocketCMS
|
|
7
7
|
@results = []
|
8
8
|
else
|
9
9
|
if RocketCMS.mongoid?
|
10
|
-
@results = Mongoid::
|
10
|
+
@results = Mongoid::Elasticsearch.search({
|
11
11
|
body: {
|
12
12
|
query: {
|
13
13
|
query_string: {
|
14
|
-
query: Mongoid::
|
14
|
+
query: Mongoid::Elasticsearch::Utils.clean(params[:query])
|
15
15
|
}
|
16
16
|
},
|
17
17
|
highlight: {
|
18
|
+
require_field_match: false,
|
18
19
|
fields: {
|
19
|
-
name: {
|
20
|
-
|
20
|
+
name: {
|
21
|
+
number_of_fragments: 1,
|
22
|
+
size_of_fragments: 120
|
23
|
+
},
|
24
|
+
content: {
|
25
|
+
number_of_fragments: 1,
|
26
|
+
size_of_fragments: 220
|
27
|
+
}
|
21
28
|
}
|
22
29
|
}
|
23
30
|
}},
|
data/lib/rocket_cms/search.rb
CHANGED
@@ -19,8 +19,8 @@ module RocketCMS::Search
|
|
19
19
|
}
|
20
20
|
},
|
21
21
|
index_mapings: {
|
22
|
-
name: {type: 'string',
|
23
|
-
content: {type: 'string',
|
22
|
+
name: {type: 'string', analyzer: 'my_analyzer'},
|
23
|
+
content: {type: 'string', analyzer: 'my_analyzer'},
|
24
24
|
}
|
25
25
|
})
|
26
26
|
else
|
data/lib/rocket_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|