简体   繁体   English

org.apache.solr.common.SolrException:不支持null KNN算法

[英]org.apache.solr.common.SolrException: null KNN algorithm is not supported

After i create the documents with the Vector's following the documentation below, i have the following error from Solr logs:在我按照下面的文档使用 Vector 创建文档后,我从 Solr 日志中得到以下错误:

org.apache.solr.common.SolrException: null KNN algorithm is not supported
h

Screenshot issue截图问题

This is the part of Java code I'm testing:这是我正在测试的 Java 代码的一部分:

final SolrClient client = getSolrClient();

final SolrInputDocument d1 = new SolrInputDocument();
d1.setField("id", "1");
d1.setField("vector", Arrays.asList(1.0f, 2.5f, 3.7f, 4.1f));


final SolrInputDocument d2 = new SolrInputDocument();
d2.setField("id", "2");
d2.setField("vector", Arrays.asList(1.5f, 5.5f, 6.7f, 65.1f));

client.add(Arrays.asList(d1, d2));

This is the documentation for my try: https://solr.apache.org/guide/solr/latest/query-guide/dense-vector-search.html这是我尝试的文档: https://solr.apache.org/guide/solr/latest/query-guide/dense-vector-search.html

We are working on the issue: https://issues.apache.org/jira/browse/SOLR-16588 .我们正在处理这个问题: https://issues.apache.org/jira/browse/SOLR-16588 A solution is coming soon!解决方案即将推出!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决solr中的org.apache.solr.common.SolrException? - How to solve the org.apache.solr.common.SolrException in solr? Solr:org.apache.solr.common.SolrException:无效的日期字符串: - Solr: org.apache.solr.common.SolrException: Invalid Date String: org.apache.solr.common.SolrException:未定义的字段名称 - org.apache.solr.common.SolrException: undefined field name org.apache.solr.common.SolrException:超时后无响应:60000 - org.apache.solr.common.SolrException: No response after timeout: 60000 org.apache.solr.common.SolrException:无法创建核心 - org.apache.solr.common.SolrException: Unable to create core org.apache.solr.common.SolrException Stream Body已禁用 - org.apache.solr.common.SolrException Stream Body is disabled 引起:org.apache.solr.common.SolrException:Not Found - Caused by: org.apache.solr.common.SolrException: Not Found org.apache.solr.common.SolrException:缺少内容流 - org.apache.solr.common.SolrException: missing content stream org.apache.solr.common.SolrException:加载类'org.apache.solr.handler.dataimport.DataImportHandler时出错 - org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler collection1:org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:在字段Report_Name上指定了未知字段类型'text' - collection1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Unknown fieldtype 'text' specified on field Report_Name
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM