- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25.6k
Closed
Closed
Copy link
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 teampriority:highA label for assessing bug priority to be used by ES engineersA label for assessing bug priority to be used by ES engineers
Description
Elasticsearch Version
9.2
Installed Plugins
No response
Java Version
bundled
OS Version
n/a
Problem Description
In 9.2, we made a breaking change to exclude vectors from _source by default. Additionally, we tied that index setting to control if semantic field embeddings are included in _source. These two changes have combined to create a problem when:
- Querying an index created before 9.2 (i.e. it includes vectors in _sourceby default)
- A semantic_textfield is in_source
- _sourceis disabled by the request
The failure mode is indicated by:
      {
        "shard": 4,
        "index": "properties",
        "node": "HoRCRAz6Sr2Awtz2BaKorw",
        "reason": {
          "type": "illegal_argument_exception",
          "reason": "can not write type [class org.elasticsearch.xpack.inference.mapper.SemanticTextField]"
        }
      }Steps to Reproduce
- Create an index with a semantic_textfield in a version prior to 9.2
- Add some docs to the index
- Upgrade to 9.2
- Query the index with _sourcedisabled such that a doc with a populatedsemantic_textfield is returned
GET my-index/_search
{
  "_source": false,
  "query": {
    <some query that returns a doc with a semantic text field>
  }
}Logs (if relevant)
No response
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 teampriority:highA label for assessing bug priority to be used by ES engineersA label for assessing bug priority to be used by ES engineers