Skip to content

Semantic text mapper restriction specific to system indices #133171

@Supplementing

Description

@Supplementing

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.

cc: @spong @Mikep86

Steps to Reproduce

  1. Inside of the x-pack/plugin/core/template-resources/src/main/resources/fleet-integration-knowledge.json file, remove the hardcoded inference_id and model_settings.
  2. Spin up a local instance of kibana and run es from source with this change
  3. Try to ingest data into the new index (see [Fleet] Knowledge base integration support kibana#230107 for more info here)
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    :SearchOrg/RelevanceLabel for the Search (solution/org) Relevance team>bugTeam:Search - RelevanceThe Search organization Search Relevance teamTeam:SearchOrgMeta label for the Search Org (Enterprise Search)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions