elasticsearch-opendistro - 为 Open Distro 安装插件
问题描述
Amazon Elasticsearch Service 提供 k-最近邻 (k-NN) 搜索,可以通过相似性用例增强搜索。
我尝试了我在这里找到的官方代码......
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 安装是否支持此功能?
解决方案
不支持 t2.small 和 t2.medium 实例类型。(It is not mentioned anywhere in the documentation.) It worked as expected when r5.large instance type was selected.
推荐阅读
- nightwatch.js - Nightwatch 断言显示一个带有类名的锚标签
- javascript - 使用 datalist 进行验证
- javascript - how to merge two json arrays into one of this format
- sharepoint - How to Style Office Fabric Component with SharePont Framework module.scss
- jquery - JQuery在重新加载页面后单击一个元素
- mongodb - Mongo assigning same ObjectId? MongoError: E11000 duplicate key error collection
- laravel - How to show error message with dynamic value in Laravel array validation
- hdf - HDFql 处理表格
- javascript - 剑道树视图Angularjs上的自定义按钮
- javascript - 带有函数的反应或语句