Closed carlosdelest closed 3 weeks ago
@carlosdelest from the server code it seems like there are some other parameters for the Semantic Text property. Are all of those internal? Like model_settings
for example
hey @l-trotta ! Good catch - model_settings
is used internally and should not be set by the user, but internally from the mapping itself when a document is added.
I believe these are the properties exposed by the field type.
Thanks for the clarification, just making sure :D
What about copy_to
? From the documentation it looks like it's accepted, but then the server code says otherwise. Tested this in the devtools:
PUT my-index-000003
{
"mappings": {
"properties": {
"inference_field": {
"type": "semantic_text",
"inference_id": "my-elser-endpoint",
"copy_to": "field"
}
}
}
}
returns:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping: semantic_text field [inference_field] does not support [copy_to]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping: semantic_text field [inference_field] does not support [copy_to]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "semantic_text field [inference_field] does not support [copy_to]"
}
},
"status": 400
}
My bad @l-trotta ! semantic_text can be the target of copy_to, but not have copy_to fields itself. Thanks for the catch, fixed it!
Add support for the upcoming semantic_text and semantic query.