簡體   English   中英

Apache Solr - Error loading class solr.NestPathField for solr version 6.5

[英]Apache Solr - Error loading class solr.NestPathField for solr version 6.5

嘗試在 solr 6.5 中的托管架構中嵌套子文檔 -

<fieldType name="_nest_path_" class="solr.NestPathField"/> 
<field name="_root_" type="string" indexed="true" stored="false" docValues="false" />      
<field name="_childDocuments_" type="_nest_path_">
<field name="id" type="string" multiValued="false" indexed="true" required="true" stored="true"/>
<field name="firstname" type="text_general"  indexed="true" stored="true"/>
<field name="lastname" type="text_general"  indexed="true" stored="true"/>

但似乎_nest_path_字段並出現Error loading class solr.NestPathField

在不使用nest_path的情況下存儲子文檔的任何替代方法還是我在這里做錯了什么?

此模式在 Solr 8.4 中運行良好

可以在不使用嵌套文檔功能的情況下處理子文檔 - 嵌套文檔功能只是使其更容易和更自動化。

嵌套文檔是隨 Solr 8 引入的- 因此,嘗試使用 Solr 6 的功能不會像您發現的那樣工作。

據我所知,在早期版本中,您必須使用引用的相關字段手動進行這些更新,然后使用這些值顯式應用塊連接查詢解析器childdoctransformer

如果可以,請升級到 Solr 8(在最新的 dotrelease 中),因為該功能正如您所期望的那樣工作,而不是增加自己處理它以解決早期版本中的限制的復雜性。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM