Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Indexing 创建嵌套索引结构SOLR_Indexing_Solr_Lucene_Nested_Document - Fatal编程技术网

Indexing 创建嵌套索引结构SOLR

Indexing 创建嵌套索引结构SOLR,indexing,solr,lucene,nested,document,Indexing,Solr,Lucene,Nested,Document,我想用SOLR导入处理程序创建嵌套索引结构。我使用的是Solr-7.2,我已经创建了data config.xml () }}`导入的文档(即索引文档中的实际文档)是什么样子的?@MatsLindh添加了导入的文档结构。请查收。 <document> <entity name="PARENT" query="select * from parent"> <field column="id" /> <

我想用SOLR导入处理程序创建嵌套索引结构。我使用的是Solr-7.2,我已经创建了data config.xml
()


}}`

导入的文档(即索引文档中的实际文档)是什么样子的?@MatsLindh添加了导入的文档结构。请查收。
<document>
        <entity name="PARENT" query="select * from parent">
          <field column="id" />
          <field column="title" />
          <field column="type_s" />
          <entity child="true" name="CHILD" query="select * from child where 
           parent_id='${PARENT.id}'">
                <field column="id" />
                <field column="post" />
                    <field column="parent_id" />
          </entity>
    </entity>   
 </document>
` "response":{"numFound":6,"start":0,"docs":[
  {
    "post":"dev1",
    "parent_id":"1",
    "id":"1",
    "_version_":1608402260456374272},
  {
    "post":"dev3",
    "parent_id":"1",
    "id":"3",
    "_version_":1608402260456374272},
  {
    "id":"1",
    "title":"test1",
    "_version_":1608402260456374272},
  {
    "post":"dev2",
    "parent_id":"2",
    "id":"2",
    "_version_":1608402260460568576},
  {
    "post":"dev4",
    "parent_id":"4",
    "id":"4",
    "_version_":1608402260460568576},
  {
    "id":"2",
    "title":"test2",
    "_version_":1608402260460568576}]