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

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

    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

        1. image-2021-11-19-17-57-59-827.png
          63 kB
          zhengkangqiu
        2. image-2021-11-19-17-54-03-535.png
          59 kB
          zhengkangqiu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: