[英]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
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.