elastic_record 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -47,22 +47,14 @@ An Arelastic object can also be passed in, working similarily to Arel:
47
47
  # Size is greater than 5
48
48
  search.filter(Product.arelastic[:size].gt(5))
49
49
 
50
- # Product has no name
51
- search.filter(Product.arelastic[:name].blank)
50
+ # Product has a nil name
51
+ search.filter(Product.arelastic[:name].missing)
52
52
 
53
- # Product has name
54
- search.filter(Product.arelastic[:name].present)
55
-
56
- # Name is 'hola' or name is blank
57
- search.filter(Product.arelastic[:name].eq("hola").or(Product.arelastic[:name].blank))
53
+ # Name is 'hola' or name is missing
54
+ search.filter(Product.arelastic[:name].eq("hola").or(Product.arelastic[:name].missing))
58
55
 
59
56
  Helpful Arel builders can be found at https://github.com/matthuhiggins/arelastic/blob/master/lib/arelastic/builders/filter.rb.
60
57
 
61
- Lastly, negation is made easy with negate:
62
-
63
- # Status is not active
64
- search.negate(status: 'active')
65
-
66
58
  === Querying
67
59
 
68
60
  To create a query string, pass a string to search.query:
@@ -83,7 +75,7 @@ Complex queries are done using either a hash or an arelastic object:
83
75
 
84
76
  To change the 'size' and 'from' values of a query, use offset and limit:
85
77
 
86
- search.limit(10).offset(20) # Creates a query with {size: 10, from: 20}
78
+ search.limit(40).offset(80) # Creates a query with {size: 40, from: 80}
87
79
 
88
80
 
89
81
  === Facets
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'elastic_record'
5
- s.version = '0.11.0'
5
+ s.version = '0.11.1'
6
6
  s.summary = 'Use Elastic Search with your objects'
7
7
  s.description = 'Find your records with elastic search'
8
8
 
@@ -10,9 +10,9 @@ Gem::Specification.new do |s|
10
10
  s.required_rubygems_version = ">= 1.8.11"
11
11
  s.license = 'MIT'
12
12
 
13
- s.author = 'Matthew Higgins'
13
+ s.authors = ['Infogroup', 'Matthew Higgins']
14
14
  s.email = 'developer@matthewhiggins.com'
15
- s.homepage = 'http://github.com/infogroup/elastic_record'
15
+ s.homepage = 'http://github.com/data-axle/elastic_record'
16
16
 
17
17
  s.extra_rdoc_files = ['README.rdoc']
18
18
  s.files = `git ls-files`.split("\n")
@@ -8,9 +8,9 @@ module ElasticRecord
8
8
  end
9
9
 
10
10
  def create(index_name = new_index_name)
11
- connection.json_put "/#{index_name}"
11
+ connection.json_put "/#{index_name}", "settings" => settings
12
+ # update_settings(index_name)
12
13
  update_mapping(index_name)
13
- update_settings(index_name)
14
14
  index_name
15
15
  end
16
16
 
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
+ - Infogroup
8
9
  - Matthew Higgins
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-12-12 00:00:00.000000000 Z
13
+ date: 2012-12-19 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: arelastic
@@ -120,7 +121,7 @@ files:
120
121
  - test/support/models/test_model.rb
121
122
  - test/support/models/warehouse.rb
122
123
  - test/support/models/widget.rb
123
- homepage: http://github.com/infogroup/elastic_record
124
+ homepage: http://github.com/data-axle/elastic_record
124
125
  licenses:
125
126
  - MIT
126
127
  post_install_message: