Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15810

Solr文档可以添加相同ID的嵌套文档

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 8.9, 8.11
    • None
    • Admin UI, clients - java
    • None

    Description

      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)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            zkq5168 zhengkangqiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment