多くのサンプルプロジェクトへの回答と参考に感謝します。今それは私のために働くが、ネストされたオブジェクトの構造はまだ平坦であるようだ。フレームワークはのルートフィールドIDを生成しますが、すべてのフィールドは同じ階層にあります。 1つの例:werkzeugは親オブジェクトの子です
{
"werkzeug_id":"116283s",
"id_werkzeug":"",
"werkzeug_zitiernr":"s019910",
"werkzeug_kyrissnr":"",
"werkzeug_internnr":"069.02",
"werkzeug_floerke":"",
"werkzeug_laenge":0,
"werkzeug_breite":23,
"werkzeug_form":"Herz, umrandet",
"werkzeug_stecher":"",
"werkzeug_beschriftung":"",
"werkzeug_image":"s0192202",
"werkzeug_literatur":"",
"werkzeug_freitext":"",
"werkzeug_erfname":"",
"werkzeug_erfdatum":"2004-12-10T13:11:13Z",
"werkzeug_korrname":"",
"werkzeug_publicity":"public",
"_root_":"205789s"},
{
"id":"205789s",
"all":["205789s"],
"signatur":"Inc.fol.7541",
"id_standort":58,
"sovermerk":"ok",
"erfdatum":"2004-12-10T14:33:10Z",
"korrname":"wlb",
"korrdatum":"Thu Nov 13 13:31:22 UTC 2014",
"publicity":"public",
"_version_":1573171122990481408,
"_root_":"205789s"}]}
代わりに、このようになりますか?
[
{id : book1, type_s:book, title_t : "The Way of Kings", author_s : "Brandon
Sanderson",
cat_s:fantasy, pubyear_i:2010, publisher_s:Tor,
_childDocuments_ : [
{ id: book1_c1, type_s:review, review_dt:"2015-01-03T14:30:00Z",
stars_i:5, author_s:yonik,
comment_t:"A great start to what looks like an epic series!"
}
,
{ id: book1_c2, type_s:review, review_dt:"2014-03-15T12:00:00Z",
stars_i:3, author_s:dan,
comment_t:"This book was too long."
}
]}]
何が原因か分かりませんか?