Skip to content

ESQL: Cannot use dense_vector in ENRICH #137699

@alex-spies

Description

@alex-spies

We get an IAE when one of the enrich fields is DENSE_VECTOR:

curl -u elastic:password -H "Content-Type: application/json" "127.0.0.1:9200/test" -XPUT -d '{
  "mappings": { 
    "properties": {                                            
      "f": {
        "type": "dense_vector"
      }, "id": {"type": "integer"}                            
    }
  }
}

curl -u elastic:password -HContent-Type:application/json 'localhost:9200/test/_doc?refresh' -d'{"id": 1, "f": [1.3]}'

curl -u elastic:password -H "Content-Type: application/json" "127.0.0.1:9200/_enrich/policy/dense-vector-policy" -XPUT -d'
{              
  "match": {                                                                                   
    "indices": "test", 
    "match_field": "id",
    "enrich_fields": ["f"]       
  }
}
'

curl -u elastic:password -H "Content-Type: application/json" "127.0.0.1:9200/_enrich/policy/dense-vector-policy/_execute?wait_for_completion=true" -XPUT

curl -u elastic:password -H "Content-Type: application/json" "127.0.0.1:9200/_query?format=txt" -d '
{              
  "query": "row id = 123 | enrich my-policy5 on id | limit 1"}'

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"no enrich result builder for [FLOAT]"}],"type":"illegal_argument_exception","reason":"no enrich result builder for [FLOAT]"},"status":400}

Metadata

Metadata

Assignees

Labels

:Search Relevance/ES|QLSearch functionality in ES|QL>bugTeam:Search RelevanceMeta label for the Search Relevance team in Elasticsearchpriority:normalA label for assessing bug priority to be used by ES engineers

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions