You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2023/08/16 12:37:05 UTC

[solr] branch jira/solr16939 created (now c6644a1212b)

This is an automated email from the ASF dual-hosted git repository.

noble pushed a change to branch jira/solr16939
in repository https://gitbox.apache.org/repos/asf/solr.git


      at c6644a1212b support for nested documents added

This branch includes the following new commits:

     new c6644a1212b support for nested documents added

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[solr] 01/01: support for nested documents added

Posted by no...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

noble pushed a commit to branch jira/solr16939
in repository https://gitbox.apache.org/repos/asf/solr.git

commit c6644a1212b127b5348aa4a49fdcf93209d62be7
Author: noblepaul <no...@gmail.com>
AuthorDate: Wed Aug 16 22:36:36 2023 +1000

    support for nested documents added
---
 solr/core/src/java/org/apache/solr/handler/loader/CborLoader.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/solr/core/src/java/org/apache/solr/handler/loader/CborLoader.java b/solr/core/src/java/org/apache/solr/handler/loader/CborLoader.java
index ab6dfaf8fa0..81392561e78 100644
--- a/solr/core/src/java/org/apache/solr/handler/loader/CborLoader.java
+++ b/solr/core/src/java/org/apache/solr/handler/loader/CborLoader.java
@@ -123,6 +123,11 @@ public class CborLoader {
     if (t == JsonToken.VALUE_NUMBER_INT || t == JsonToken.VALUE_NUMBER_FLOAT) {
       return p.getNumberValue();
     }
+    if ( t == JsonToken.START_OBJECT) {
+      Object[] returnVal = new Object[1];
+      new CborLoader(cborFactory, d -> returnVal[0] = d).handleDoc(p);
+      return returnVal[0];
+    }
     throw new RuntimeException("Unknown type :" + t);
   }