Open Mikep86 opened 1 day ago
8.15.x, 8.16.x, 8.17.x
No response
bundled
N/A
Under certain scenarios, you are unable to update a semantic text field using the Update API when the semantic text field is in an object field.
PUT _inference/sparse_embedding/my-elser-endpoint { "service": "elser", "service_settings": { "num_allocations": 1, "num_threads": 1 } } PUT my-index { "mappings": { "properties": { "object": { "properties": { "inference_field": { "type": "semantic_text", "inference_id": "my-elser-endpoint" } } } } } }
PUT my-index/_doc/doc1 { "object": { "inference_field": "test value" } }
POST my-index/_update/doc1 { "doc": { "object.inference_field": "updated value" } }
The update fails with the error:
{ "error": { "root_cause": [ { "type": "status_exception", "reason": "Invalid format for field [object.inference_field], expected [String] got [ArrayList]" } ], "type": "status_exception", "reason": "Invalid format for field [object.inference_field], expected [String] got [ArrayList]" }, "status": 400 }
Pinging @elastic/search-eng (Team:SearchOrg)
Pinging @elastic/search-relevance (Team:Search - Relevance)
Elasticsearch Version
8.15.x, 8.16.x, 8.17.x
Installed Plugins
No response
Java Version
bundled
OS Version
N/A
Problem Description
Under certain scenarios, you are unable to update a semantic text field using the Update API when the semantic text field is in an object field.
Steps to Reproduce
The update fails with the error:
Logs (if relevant)
No response