elastic_record 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/elastic_record.gemspec +1 -1
- data/lib/elastic_record/index/percolator.rb +0 -2
- metadata +1 -1
data/elastic_record.gemspec
CHANGED
@@ -2,7 +2,6 @@ module ElasticRecord
|
|
2
2
|
class Index
|
3
3
|
module Percolator
|
4
4
|
def create_percolator(name, elastic_query)
|
5
|
-
p "creating #{elastic_query.inspect}"
|
6
5
|
unless exists? percolator_index_name
|
7
6
|
create percolator_index_name
|
8
7
|
else
|
@@ -21,7 +20,6 @@ module ElasticRecord
|
|
21
20
|
end
|
22
21
|
|
23
22
|
def percolate(document)
|
24
|
-
# p "document = #{document}"
|
25
23
|
connection.json_get("/#{percolator_index_name}/#{type}/_percolate", 'doc' => document)['matches']
|
26
24
|
end
|
27
25
|
|