From f1182e17b5420950abdeb936266632f15e49e514 Mon Sep 17 00:00:00 2001 From: kaliraja <34502260+Kaali09@users.noreply.github.com> Date: Thu, 1 Aug 2019 13:19:20 +0530 Subject: [PATCH] DO-1273 fixed the esmapping issue (#686) --- ansible/static-files/elasticsearch_mapping.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/static-files/elasticsearch_mapping.sh b/ansible/static-files/elasticsearch_mapping.sh index b16edd8c8..ded56118f 100644 --- a/ansible/static-files/elasticsearch_mapping.sh +++ b/ansible/static-files/elasticsearch_mapping.sh @@ -20,7 +20,8 @@ done echo "#################################################" cd ../mappings -mapping_files=$(ls -l | awk 'NR>1{print $9}' | awk -F"-" '{print $1}' | tr "\n" " ") +#mapping_files=$(ls -l | awk 'NR>1{print $9}' | awk -F"-" '{print $1}' | tr "\n" " ") +mapping_files=$(ls -l | awk 'NR>1{print $9}' | awk -F"." '{print $1}' | tr "\n" " " | sed 's/-mapping//g') for file in ${mapping_files[@]} do -- GitLab