首页 > 解决方案 > 为 Open Distro 安装插件

问题描述

Amazon Elasticsearch Service 提供 k-最近邻 (k-NN) 搜索,可以通过相似性用例增强搜索。

https://aws.amazon.com/about-aws/whats-new/2020/03/build-k-nearest-neighbor-similarity-search-engine-with-amazon-elasticsearch-service/

我尝试了我在这里找到的官方代码......

https://github.com/opendistro-for-elasticsearch/k-NN

PUT /myindex
{
    "settings" : {
        "index": {
            "knn": true
        }
    },
    "mappings": {
        "properties": {
            "my_vector1": {
                "type": "knn_vector",
                "dimension": 2
            }, 
            "my_vector2": {
                "type": "knn_vector",
                "dimension": 4
            }, 
            "my_vector3": {
                "type": "knn_vector",
                "dimension": 8
            } 
        }
    }
}

收到此错误:

“未知设置 [index.knn] 请检查是否安装了任何必需的插件,或检查重大更改文档以了解已删除的设置”

如何检查我的 Elastic 安装是否支持此功能?

标签: elasticsearch-opendistro

解决方案


不支持 t2.small 和 t2.medium 实例类型。(It is not mentioned anywhere in the documentation.) It worked as expected when r5.large instance type was selected.


推荐阅读