polipus-elasticsearch 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -146,8 +146,9 @@ module Polipus
|
|
146
146
|
)
|
147
147
|
end
|
148
148
|
|
149
|
-
def self.setup(client_)
|
149
|
+
def self.setup(client_, index_name = DEFAULT_INDEX_NAME)
|
150
150
|
__elasticsearch__.client = client_
|
151
|
+
self.index_name(index_name)
|
151
152
|
end
|
152
153
|
|
153
154
|
def self.store(document, refresh = false)
|
@@ -19,7 +19,7 @@ module Polipus
|
|
19
19
|
@compress = options[:compress] || options['compress']
|
20
20
|
@semaphore = Mutex.new
|
21
21
|
@refresh = options[:refresh] || options['refresh'] || true
|
22
|
-
index.setup(client)
|
22
|
+
index.setup(client, index_name)
|
23
23
|
index.create_index!(index_name) unless index.index_exists?
|
24
24
|
end
|
25
25
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'polipus-elasticsearch'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.3'
|
8
8
|
spec.authors = ['Stefano Fontanelli']
|
9
9
|
spec.email = ['s.fontanelli@gmail.com']
|
10
10
|
spec.summary = 'Add support for ElasticSearch in Polipus crawler'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polipus-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: elasticsearch
|
@@ -192,18 +192,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
192
|
- - ! '>='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
segments:
|
196
|
-
- 0
|
197
|
-
hash: 2515917533245135791
|
198
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
196
|
none: false
|
200
197
|
requirements:
|
201
198
|
- - ! '>='
|
202
199
|
- !ruby/object:Gem::Version
|
203
200
|
version: '0'
|
204
|
-
segments:
|
205
|
-
- 0
|
206
|
-
hash: 2515917533245135791
|
207
201
|
requirements: []
|
208
202
|
rubyforge_project:
|
209
203
|
rubygems_version: 1.8.23.2
|