1
0
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:
Sylvain 2018-11-29 18:06:54 +01:00
parent bfa51cb633
commit 48e0bf21a2
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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