elasticsearch-persistence 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/elasticsearch-persistence.gemspec +2 -2
- data/lib/elasticsearch/persistence/model/find.rb +2 -1
- data/lib/elasticsearch/persistence/version.rb +1 -1
- data/test/integration/model/model_basic_test.rb +2 -2
- data/test/unit/model_rails_test.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8241dfc72978811dd6c16e96e4a126ceea66458a
|
4
|
+
data.tar.gz: 01111424535cef4c52a8525be27822877090c3b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe97c2b8345ba8c2ca5b1630de5d62de036ef11c215c6e26f2f3cefd8bf28b8f38190478a1bc9a8cec77c1a03d0bcf4ac7f20e6839722e4c2d1ae8c06d5ec474
|
7
|
+
data.tar.gz: 27f5c03a32f7a1ee276dd0727a2323a5beb574cc94facdb30f8b4e1f3719dc8743828b7da86f31abd70097bdb0735353ab78e37ce7f45fc13b008f6587ad889e
|
data/README.md
CHANGED
@@ -491,8 +491,8 @@ class Article
|
|
491
491
|
# Define an `author` attribute, with multiple analyzers for this field
|
492
492
|
#
|
493
493
|
attribute :author, String, mapping: { fields: {
|
494
|
-
author: { type: '
|
495
|
-
raw: { type: '
|
494
|
+
author: { type: 'text'},
|
495
|
+
raw: { type: 'keyword' }
|
496
496
|
} }
|
497
497
|
|
498
498
|
|
@@ -23,8 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
|
24
24
|
s.required_ruby_version = ">= 1.9.3"
|
25
25
|
|
26
|
-
s.add_dependency "elasticsearch", '
|
27
|
-
s.add_dependency "elasticsearch-model", '
|
26
|
+
s.add_dependency "elasticsearch", '~> 5'
|
27
|
+
s.add_dependency "elasticsearch-model", '~> 5'
|
28
28
|
s.add_dependency "activesupport", '> 4'
|
29
29
|
s.add_dependency "activemodel", '> 4'
|
30
30
|
s.add_dependency "hashie"
|
@@ -119,7 +119,8 @@ module Elasticsearch
|
|
119
119
|
|
120
120
|
# Get the initial batch of documents and the scroll_id
|
121
121
|
#
|
122
|
-
response = gateway.client.search( {
|
122
|
+
response = gateway.client.search( {
|
123
|
+
index: gateway.index_name,
|
123
124
|
type: gateway.document_type,
|
124
125
|
scroll: scroll,
|
125
126
|
sort: ['_doc'],
|
@@ -16,8 +16,8 @@ module Elasticsearch
|
|
16
16
|
|
17
17
|
attribute :name, String,
|
18
18
|
mapping: { fields: {
|
19
|
-
name: { type: '
|
20
|
-
raw: { type: '
|
19
|
+
name: { type: 'text', analyzer: 'snowball' },
|
20
|
+
raw: { type: 'keyword' }
|
21
21
|
} }
|
22
22
|
|
23
23
|
attribute :birthday, Date
|
@@ -11,7 +11,7 @@ class ::MyRailsModel
|
|
11
11
|
include Elasticsearch::Persistence::Model
|
12
12
|
include Elasticsearch::Persistence::Model::Rails
|
13
13
|
|
14
|
-
attribute :name, String, mapping: { analyzer: '
|
14
|
+
attribute :name, String, mapping: { analyzer: 'english' }
|
15
15
|
attribute :published_at, DateTime
|
16
16
|
attribute :published_on, Date
|
17
17
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-persistence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04
|
11
|
+
date: 2017-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elasticsearch
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: elasticsearch-model
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|