co-elastic-query 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/co-elastic-query.rb +8 -1
- data/lib/co-elastic-query/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: 6b4f754d95872b184d47e43938ab77ba7ead62dd
|
4
|
+
data.tar.gz: aca341b09604fc28b093ca935ed93915b9835d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef2c4b80f074cb8b94d9c9a2447b012ee25dff5ebcf9956413889d44f373ac0acfb5be632a12af07637e8951d5550067c434af7d1a38fd658f870e05ac1749d6
|
7
|
+
data.tar.gz: 3a783054d18e7a96a5fc7675551d1bfa01bb2d510d86730fef0e04c9febcc374bc1241f558134a526485c3b9944f1bd0e03d9c0956f95693d5cdb225fbaf960a
|
data/lib/co-elastic-query.rb
CHANGED
@@ -217,7 +217,7 @@ class Elastic
|
|
217
217
|
query_obj
|
218
218
|
else
|
219
219
|
{
|
220
|
-
sort: @sort ||
|
220
|
+
sort: @sort || DEFAULT_SORT,
|
221
221
|
filters: fieldfilters,
|
222
222
|
query: {
|
223
223
|
match_all: {}
|
@@ -228,6 +228,13 @@ class Elastic
|
|
228
228
|
end
|
229
229
|
end
|
230
230
|
|
231
|
+
DEFAULT_SORT = [{
|
232
|
+
created_at: {
|
233
|
+
order: :desc,
|
234
|
+
unmapped_type: :integer
|
235
|
+
}
|
236
|
+
}]
|
237
|
+
|
231
238
|
|
232
239
|
#protected
|
233
240
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: co-elastic-query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen von Takach
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|