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 +4 -4
- data/README.rdoc +5 -4
- data/elastic_record.gemspec +1 -1
- data/lib/elastic_record/index/percolator.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51cb1409dc9723d93f90460254076361b76d06d9
|
4
|
+
data.tar.gz: 04cc38fec1620e2f2858758d8a8b6c9c34fd619d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
144
|
-
Production.elastic_index.
|
145
|
-
Production.elastic_index.
|
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
|
data/elastic_record.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|
149
|
+
rubygems_version: 2.0.3
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Use Elastic Search with your objects
|