When trying to update a field in a document like so:
POST index/doc/id/_update
{ "script": "ctx._source.test-field = 'Hello'"}
I get the following error:
{"error":{"root_cause":[{"type":"illegal_state_exception","reason":"There are no external requests known to support wildcards that don't support replacing their indices"}],"type":"illegal_state_exception","reason":"There are no external requests known to support wildcards that don't support replacing their indices"},"status":500}
I thought this was maybe due to dynamic field mapping being disabled so I manually added the new field to the index:
PUT index/_mapping/doc
{
"properties": {
"test-field": {
"type": "text"
}
}
}
which was fine but i still get the above error when i i try updating.
I am running version 6.3.1.
Any help would be appreciated.