ResponsiveKoala38 Hello. What if my old fileserver address was not matching the None scheme? It was http and didn't have a domain, only ip address. Should I put my old address as it was in the replace method?
ResponsiveKoala38 Shouldn't the escape slash be before the quote?
curl -XPOST -H 'Content-Type: application/json' 'localhost:9200/events-training_debug_image-*/_update_by_query?conflicts=proceed' -d'{
"script": {
"source": "ctx._source.url = ctx._source.url.replace('http://<MY_OLD_ADDRESS>', '
.<NEW_ADDRESS>')",
"lang": "painless"
},
"query": {"prefix": {"url": {"value": "http://<MY_OLD_ADDRESS>"}}}
}'
I figured it was something with syntax but I thought single ticks inside double quotes should work without escaping 😀
Hi BoredBat47 , did the last update urls command work for you? I want to update our documentation