Solr嵌套文档_childDocuments_uu和_root_uu字段 让我考虑使用以下文件(第一章)添加2个子文档(1-1)和(1-2)到我的SOLR索引: curl http://localhost:8983/solr/update/json?softCommit=true -H 'Content-type:application/json' -d ' [ { "id": "chapter1", "title" : "Indexing Child Documents in JSON", "content_type": "chapter", "_childDocuments_": [ { "id": "1-1", "content_type": "page", "text": "ho hum... this is page 1 of chapter 1" }, { "id": "1-2", "content_type": "page", "text": "more text... this is page 2 of chapter 1" } ] } ] '

Solr嵌套文档_childDocuments_uu和_root_uu字段 让我考虑使用以下文件(第一章)添加2个子文档(1-1)和(1-2)到我的SOLR索引: curl http://localhost:8983/solr/update/json?softCommit=true -H 'Content-type:application/json' -d ' [ { "id": "chapter1", "title" : "Indexing Child Documents in JSON", "content_type": "chapter", "_childDocuments_": [ { "id": "1-1", "content_type": "page", "text": "ho hum... this is page 1 of chapter 1" }, { "id": "1-2", "content_type": "page", "text": "more text... this is page 2 of chapter 1" } ] } ] ',solr,nested,Solr,Nested,(来源:) 有没有一种简单的方法可以在SolrWebUI中显示第1章的子文档? 我知道我使用{!child of=contenttype_s:chapter}id:chapter1获取第1章的子级 如果我查询q=id:chapter1,我会得到字段:“id”、“title”和“content\u type”,但“childDocuments”不可见。它甚至不在solr web ui“模式浏览器”中 我有一个名为“\u root\u”的字段。对于子文档1-1和1-2,“u root”等于chapt

(来源:)

有没有一种简单的方法可以在SolrWebUI中显示第1章的子文档? 我知道我使用
{!child of=contenttype_s:chapter}id:chapter1
获取第1章的子级

如果我查询
q=id:chapter1
,我会得到字段:“id”、“title”和“content\u type”,但“childDocuments”不可见。它甚至不在solr web ui“模式浏览器”中

我有一个名为“\u root\u”的字段。对于子文档
1-1
1-2
,“u root”等于
chapter1
。看起来不错。但我惊讶地看到,文档
chapter1
在“\u root\u”字段中也是值
chapter1
。这正常吗

我试图将_childDocuments_u的内容复制到另一个字段中,但出现以下错误:“_childDocuments_u”不是全局变量,与任何显式字段或动态字段都不匹配。此字段是否存在于某个位置,还是仅用于为_root_uu字段创建数据