[英]How to solve the org.apache.solr.common.SolrException in solr?
[英]org.apache.solr.common.SolrException: null KNN algorithm is not supported
在我按照下面的文檔使用 Vector 創建文檔后,我從 Solr 日志中得到以下錯誤:
org.apache.solr.common.SolrException: null KNN algorithm is not supported
h
這是我正在測試的 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));
這是我嘗試的文檔: https://solr.apache.org/guide/solr/latest/query-guide/dense-vector-search.html
我們正在處理這個問題: https://issues.apache.org/jira/browse/SOLR-16588 。 解決方案即將推出!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.