elastic_record 1.1.7 → 1.1.8

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: 459ff7fb681aedda17d212c1bcc3aa2f373968b6
4
- data.tar.gz: 0492321e9536346592b955d4b1bbd6b069ab9168
3
+ metadata.gz: 51cb1409dc9723d93f90460254076361b76d06d9
4
+ data.tar.gz: 04cc38fec1620e2f2858758d8a8b6c9c34fd619d
5
5
  SHA512:
6
- metadata.gz: 861e1c6032d67c9d7bd7691c20cb9a8e48b483d384019727ffdc8f27bbef76ae3777f20444d7d3463472ffc96e02887cc62a62843a77bacc47ea5ff36d547e11
7
- data.tar.gz: 2a80dd129a515a4fefa1e3ae801d42e3fb80548e3f294fb2803b841c779966b625519c6907f4ea3c360d68be839368f7f6ed58bf9cafbd8adf1f54223f9609b5
6
+ metadata.gz: fe950144e596ed58fbd5cd3944d4a25868ddae217e84ed61bcd319a259a63eab201ca2d3e19caee798c609dbf21277ff149fb56368ab7289636d9228e38570a3
7
+ data.tar.gz: 4908924df6ed4e420dd9dbba400b9155f2557020d8e91b24a549c16b07afd78bf1685942f6cf00bca3e83eb7996a7c5278687541a6ea5d281a9ebd75ece210ca
data/README.rdoc CHANGED
@@ -136,10 +136,11 @@ Create the index:
136
136
 
137
137
  rake index:create
138
138
 
139
- == Index Information
139
+ == Index Administration
140
140
 
141
141
  Core and Index APIs can be accessed with Product.elastic_index. Some examples include:
142
142
 
143
- Production.elastic_index.refresh # Call the refresh API
144
- Production.elastic_index.get_mapping # Get the index mapping defined by elastic search
145
- Production.elastic_index.reset # Delete related indexes and deploy a new one
143
+ Production.elastic_index.create_and_deploy # Create a new index
144
+ Production.elastic_index.reset # Delete related indexes and deploy a new one
145
+ Production.elastic_index.refresh # Call the refresh API
146
+ Production.elastic_index.get_mapping # Get the index mapping defined by elastic search
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'elastic_record'
5
- s.version = '1.1.7'
5
+ s.version = '1.1.8'
6
6
  s.summary = 'Use Elastic Search with your objects'
7
7
  s.description = 'Find your records with elastic search'
8
8
 
@@ -2,6 +2,9 @@ module ElasticRecord
2
2
  class Index
3
3
  module Percolator
4
4
  def create_percolator(name, elastic_query)
5
+ unless exists? percolator_index_name
6
+ create percolator_index_name
7
+ end
5
8
  connection.json_put "/_percolator/#{percolator_index_name}/#{name}", elastic_query
6
9
  end
7
10
 
@@ -34,8 +37,7 @@ module ElasticRecord
34
37
  end
35
38
 
36
39
  def percolator_index_name
37
- alias_name
38
- # @percolator_index_name ||= "percolate_#{alias_name}"
40
+ @percolator_index_name ||= "percolate_#{alias_name}"
39
41
  end
40
42
  end
41
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infogroup
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-10 00:00:00.000000000 Z
12
+ date: 2013-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arelastic
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: 1.8.11
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.0.2
149
+ rubygems_version: 2.0.3
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Use Elastic Search with your objects