mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
fix es_build_projects_index
This commit is contained in:
parent
bfa51cb633
commit
48e0bf21a2
@ -1,5 +1,7 @@
|
||||
# Changelog Fab Manager
|
||||
|
||||
- Fix rake task fablab:es_build_projects_index for ElasticSearch > 1.7
|
||||
|
||||
# v2.7.2 2018 November 29
|
||||
|
||||
- Allow running the ElasticSearch upgrade script while being root
|
||||
|
@ -137,12 +137,6 @@ namespace :fablab do
|
||||
unless client.indices.exists? index: Project.index_name
|
||||
Project.__elasticsearch__.create_index! force: true
|
||||
end
|
||||
# delete doctype if exists
|
||||
if client.indices.exists_type? index: Project.index_name, type: Project.document_type
|
||||
client.indices.delete_mapping index: Project.index_name, type: Project.document_type
|
||||
end
|
||||
# create doctype
|
||||
client.indices.put_mapping index: Project.index_name, type: Project.document_type, body: Project.mappings.to_hash
|
||||
|
||||
# index requested documents
|
||||
if args.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user