Need help guys! please
I add mappings on Elasticsearch using this command line
curl -X PUT "localhost:9200/newsout/_mapping/test-type" -H 'Content-Type: application/json' -d' {
"properties": {
"author": { "type": "string" },
"date": {
"type": "date",
"format": "yyyy-MM-dd"
},
"description": {
"type": "string",
"analyzer": "french"
},
"topics": { "type": "string" },
"link": { "type": "string", "index": "not_analyzed" },
"locations": { "type": "string" },
"organizations": { "type": "string" },
"persons": { "type": "string" },
"text": {
"type": "string",
"analyzer": "french"
},
"title": {
"type": "string",
"analyzer": "french"
}
}
}'
it appears that this error occurs
curl: (7) failed to connect to localhost port 9200: connection refused
you have to notice that this errors happens when I upgraded Elasticsearch from (alpine-elasticsearch ---->Elasticsearch v 6.0.0)