[ 
https://issues.apache.org/jira/browse/SOLR-15810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhengkangqiu updated SOLR-15810:
--------------------------------
    Description: 
1、索引文档包含子文档(index parent document include nested document)

{
        "unid":"1556afc04a964c70a4ed2f72c534cd31",
        "price_i":666,
        "color_s":"GREY",
        "wx":
       

{           "unid":"2d7460365c7044df8c6cb19925565c45",           "price_i":3333 
        }

}

!image-2021-11-19-17-54-03-535.png!

2、添加子文档(add a child document to parent document)

{
        "unid":"1556afc04a964c70a4ed2f72c534cd31",
        "wx":
        {
          "add":

{             "unid":"2d7460365c7044df8c6cb19925565c45",             
"price_i":3333           }

        }
}

3、查询文档变化(look for result)

!image-2021-11-19-17-57-59-827.png!

  was:
1、索引文档包含子文档(index parent document include nested document)

{
        "unid":"1556afc04a964c70a4ed2f72c534cd31",
        "price_i":666,
        "color_s":"GREY",
        "wx":
       

{           "unid":"2d7460365c7044df8c6cb19925565c45",           "price_i":3333 
        }

}

2、添加子文档(add a child document to parent document)

{
        "unid":"1556afc04a964c70a4ed2f72c534cd31",
        "wx":
        {
          "add":

{             "unid":"2d7460365c7044df8c6cb19925565c45",             
"price_i":3333           }

        }
}

3、查询文档变化(look for result)

!image-2021-11-19-17-57-59-827.png!


> Solr文档可以添加相同ID的嵌套文档
> -------------------
>
>                 Key: SOLR-15810
>                 URL: https://issues.apache.org/jira/browse/SOLR-15810
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Admin UI, clients - java
>    Affects Versions: 8.9, 8.11
>            Reporter: zhengkangqiu
>            Priority: Major
>         Attachments: image-2021-11-19-17-54-03-535.png, 
> image-2021-11-19-17-57-59-827.png
>
>
> 1、索引文档包含子文档(index parent document include nested document)
> {
>         "unid":"1556afc04a964c70a4ed2f72c534cd31",
>         "price_i":666,
>         "color_s":"GREY",
>         "wx":
>        
> {           "unid":"2d7460365c7044df8c6cb19925565c45",           
> "price_i":3333         }
> }
> !image-2021-11-19-17-54-03-535.png!
> 2、添加子文档(add a child document to parent document)
> {
>         "unid":"1556afc04a964c70a4ed2f72c534cd31",
>         "wx":
>         {
>           "add":
> {             "unid":"2d7460365c7044df8c6cb19925565c45",             
> "price_i":3333           }
>         }
> }
> 3、查询文档变化(look for result)
> !image-2021-11-19-17-57-59-827.png!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to