[
https://issues.apache.org/jira/browse/SOLR-15810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17451366#comment-17451366
]
Gus Heck commented on SOLR-15810:
---------------------------------
No code change was made. I suggested some documentation that might be relevant
and that you clarify the problem. With no response I presumed you found what
you needed in the documentation.
Generally questions should be handled on the mailing list. We should only be
continuing in this Jira if:
# You can find something stated in the documentation that is behaving
differently in solr,
# You have an error message resulting in a 500 server error, or obviously
wrong stack trace like NullPointerException.
# You have a fix or code you wish to contribute as a patch/pr.
# You wish to propose a change to the documentation to better reflect how solr
behaves.
It appears you may not have read the bit about uniqueness of ID's for child
documents not being enforced by solr (see above link), also perhaps you didn't
recall the difference between set and add for atomic updates? (see
[https://solr.apache.org/guide/8_10/updating-parts-of-documents.html#atomic-updates]
)
I would expect add to add a document (as you show) and set to replace the list
of documents with a new list. So everything is working as documented (assuming
I have understood what you wrote).
If you have questions, the user mailing list is a good place to continue.
> 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]