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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0de349098f6228ded1b437402e5a39476f0e0ef5
4
- data.tar.gz: 1d4b0d9a0842cae6fe45e279eac6d63957604082
3
+ metadata.gz: 8241dfc72978811dd6c16e96e4a126ceea66458a
4
+ data.tar.gz: 01111424535cef4c52a8525be27822877090c3b7
5
5
  SHA512:
6
- metadata.gz: 0e75f259f5152a34730ceecd9d05ac182d67cb036c06c97c6ed6938c2cf5ea02bf7e5fec7d37a3064cabaf15ae4a5c9fab1c5be235ff138f3a0c714f9e5d93b7
7
- data.tar.gz: 8e1ae7bb7659b42c21136fc0bac8624f92e98aa6f102c04fddfac7d9299ad6c376d96af4ff371dd293aff0648d84287446b9251b6f96fe590ab5918b349702bf
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: 'string'},
495
- raw: { type: 'string', analyzer: 'keyword' }
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", '> 1'
27
- s.add_dependency "elasticsearch-model", '>= 0.1'
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( { index: gateway.index_name,
122
+ response = gateway.client.search( {
123
+ index: gateway.index_name,
123
124
  type: gateway.document_type,
124
125
  scroll: scroll,
125
126
  sort: ['_doc'],
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Persistence
3
- VERSION = "5.0.0"
3
+ VERSION = "5.0.1"
4
4
  end
5
5
  end
@@ -16,8 +16,8 @@ module Elasticsearch
16
16
 
17
17
  attribute :name, String,
18
18
  mapping: { fields: {
19
- name: { type: 'string', analyzer: 'snowball' },
20
- raw: { type: 'string', analyzer: 'keyword' }
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: 'string' }
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.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-07 00:00:00.000000000 Z
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: '1'
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: '1'
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: '0.1'
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: '0.1'
40
+ version: '5'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement