Apache Solr-加载Solr版本6.5的类Solr.NestPathField时出错
尝试在solr 6.5中的托管架构中嵌套子文档,作为-Apache Solr-加载Solr版本6.5的类Solr.NestPathField时出错,solr,lucene,solrnet,solr6,Solr,Lucene,Solrnet,Solr6,尝试在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_"> &
<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"/>
但是似乎solr 6.5不支持\u nest\u path\u字段,并且在加载类solr.NestPathField
时出错
有没有不使用nest\u path
存储子文档的替代方法,或者我在这里做的事情有什么不对
这个模式在Solr 8.4中运行得非常好,子文档可以在不使用嵌套文档功能的情况下进行处理,而且更加自动化 -因此,尝试在Solr 6中使用该功能不会如您所发现的那样起作用 据我所知,在早期版本中,您必须使用引用的相关字段手动进行更新,然后使用这些值显式地进行更新
如果可以的话,升级到Solr 8(在最新的dotrelease中),因为它的功能与您预期的一样,而不是增加自己处理它的复杂性,以克服早期版本中的限制。感谢您的更新。我已经找到了用于检索结果的块连接解析器和子文档转换器,但是我需要在托管模式中为嵌套结构定义什么?发布嵌套json不起作用,因为嵌套字段没有架构。能否在旧版本中共享托管架构的示例?由于某些依赖性,升级是不会被优先考虑的事情。通常,子文档包含在
\u childDocuments\u
元素中。对于嵌套结构,您不需要在托管模式中有任何特定的内容-实际上,实际上并不存在结构,而是在查询过程中或多或少地对其进行处理以模拟嵌套结构(每个文档中只包含一种类型的子文档)。