Applied rubocop.
This commit is contained in:
parent
0d1d86511f
commit
68b85efc24
2 changed files with 2 additions and 3 deletions
|
@ -13,13 +13,13 @@ namespace :searchindex do
|
||||||
end
|
end
|
||||||
|
|
||||||
task :create, [:opts] => :environment do |_t, _args|
|
task :create, [:opts] => :environment do |_t, _args|
|
||||||
|
puts 'create indexes...'
|
||||||
|
|
||||||
# es with mapper-attachments plugin
|
# es with mapper-attachments plugin
|
||||||
number = SearchIndexBackend.info['version']['number'].to_s
|
number = SearchIndexBackend.info['version']['number'].to_s
|
||||||
if number =~ /^[2-4]\./ || number =~ /^5\.[0-5]\./
|
if number =~ /^[2-4]\./ || number =~ /^5\.[0-5]\./
|
||||||
|
|
||||||
# create indexes
|
# create indexes
|
||||||
puts 'create indexes...'
|
|
||||||
SearchIndexBackend.index(
|
SearchIndexBackend.index(
|
||||||
action: 'create',
|
action: 'create',
|
||||||
data: {
|
data: {
|
||||||
|
@ -47,7 +47,6 @@ namespace :searchindex do
|
||||||
else
|
else
|
||||||
|
|
||||||
# create indexes
|
# create indexes
|
||||||
puts 'create indexes...'
|
|
||||||
SearchIndexBackend.index(
|
SearchIndexBackend.index(
|
||||||
action: 'create',
|
action: 'create',
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in a new issue