-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:SearchOrg/RelevanceLabel for the Search (solution/org) Relevance teamLabel for the Search (solution/org) Relevance team>bugTeam:Search - RelevanceThe Search organization Search Relevance teamThe Search organization Search Relevance teamTeam:SearchOrgMeta label for the Search Org (Enterprise Search)Meta label for the Search Org (Enterprise Search)
Description
Elasticsearch Version
9.2.0
Installed Plugins
No response
Java Version
bundled
OS Version
Darwin Kernel Version 24.6.0
Problem Description
While working on #132506, we encountered an issue where leaving off inference_id
and model_settings
of a field with type semantic_text
would not properly apply the default model as expected on a system index. This causes issues when trying to index items to the new system index as the ESClient sends over a request with the default model, which doesnt match the system descriptor, and causes indexing to fail.
Please see the thread starting here for additional context.
Steps to Reproduce
- Inside of the x-pack/plugin/core/template-resources/src/main/resources/fleet-integration-knowledge.json file, remove the hardcoded
inference_id
andmodel_settings
. - Spin up a local instance of kibana and run es from source with this change
- Try to ingest data into the new index (see [Fleet] Knowledge base integration support kibana#230107 for more info here)
- Observe that ES logs an error about the index descriptor not matching. It seems the default inference model isnt being added to the field as intended by ES.
Logs (if relevant)
Cannot update mappings in [.integration_knowledge-7]: system indices can only use mappings from their descriptors, but the mappings in the request [{"_doc":{"dynamic":"false","_meta":{"managed_index_mappings_version":1,"description":"Integration package knowledge base content storage","version":"9.2.0"},"properties":{"content":{"type":"semantic_text","inference_id":".elser-2-elasticsearch","model_settings":{"service":"elasticsearch","task_type":"sparse_embedding"}}}}}] did not match those in the descriptor(s)
spong
Metadata
Metadata
Assignees
Labels
:SearchOrg/RelevanceLabel for the Search (solution/org) Relevance teamLabel for the Search (solution/org) Relevance team>bugTeam:Search - RelevanceThe Search organization Search Relevance teamThe Search organization Search Relevance teamTeam:SearchOrgMeta label for the Search Org (Enterprise Search)Meta label for the Search Org (Enterprise Search)