mapping=(</index_automation/{product}/mapping/Mapping/"$tempmappingfile")
settings=(</index_automation/{product}/mapping/Mapping/"$tempsettingsfile")
dataraw="{{mapping},{settings}}"
creds=$(</index_automation/obj/creds.txt)
reindexfile="/index_automation/${product}/mapping/Mapping/reindex.txt"
IFS=", " read -r -a credArr <<< "$creds"
result=(curl --silent -u {credArr[0]}:{credArr[1]} -X PUT "{credArr[2]}/${indexname}/"
--header "Content-Type: application/json"
--data-raw "$dataraw")
In above codebase am reading mapping and settings for new index creation. for --data-raw "$dataraw") am getting curl argument list too long error. can anyone help me.