Elastic index option doesn't accept int4_hnsw

Hi
I want to create a dense vector index with int4_hnsw option as said in document (Automatically quantize vectors for kNN search) but after running the same example i got this error:

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Unknown vector index options type [int4_hnsw] for field [my_vector]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping: Unknown vector index options type [int4_hnsw] for field [my_vector]",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "Unknown vector index options type [int4_hnsw] for field [my_vector]"
    }
  },
  "status": 400
}

but int8_hnsw is acceptable!

does anybody know what should I do?

I believe this was introduced in Elasticsearch 8.15. Are you running an older version?

1 Like

My stack version is 8.13.1

Then you need to upgrade to the latest version.

1 Like

Thanks a lot