@@ -391,6 +391,7 @@ def test_sync(self, sync, nodes, data):
391
391
"_index" : "testdb" ,
392
392
"_source" : {
393
393
"_meta" : {
394
+ "book" : {"isbn" : ["abc" ]},
394
395
"author" : {"id" : [1 , 4 ]},
395
396
"book_author" : {"id" : [1 , 4 ]},
396
397
"book_language" : {"id" : [1 , 4 , 7 , 9 ]},
@@ -449,6 +450,7 @@ def test_sync(self, sync, nodes, data):
449
450
"_index" : "testdb" ,
450
451
"_source" : {
451
452
"_meta" : {
453
+ "book" : {"isbn" : ["def" ]},
452
454
"author" : {"id" : [1 , 2 ]},
453
455
"book_author" : {"id" : [2 , 5 ]},
454
456
"book_language" : {"id" : [2 , 5 , 8 ]},
@@ -506,6 +508,7 @@ def test_sync(self, sync, nodes, data):
506
508
"_index" : "testdb" ,
507
509
"_source" : {
508
510
"_meta" : {
511
+ "book" : {"isbn" : ["ghi" ]},
509
512
"author" : {"id" : [2 , 3 ]},
510
513
"book_author" : {"id" : [3 , 6 ]},
511
514
"book_language" : {"id" : [3 , 6 ]},
@@ -708,6 +711,7 @@ def test_insert_root(
708
711
"_index" : "testdb" ,
709
712
"_source" : {
710
713
"_meta" : {
714
+ "book" : {"isbn" : ["jkl" ]},
711
715
"author" : {"id" : [5 ]},
712
716
"book_author" : {"id" : [7 ]},
713
717
"book_language" : {"id" : [10 , 11 ]},
@@ -753,6 +757,7 @@ def test_insert_root(
753
757
"_index" : "testdb" ,
754
758
"_source" : {
755
759
"_meta" : {
760
+ "book" : {"isbn" : ["mno" ]},
756
761
"author" : {"id" : [5 ]},
757
762
"book_author" : {"id" : [8 ]},
758
763
"book_language" : {"id" : [12 , 13 ]},
@@ -834,6 +839,7 @@ def test_update_root(self, data, nodes, book_cls):
834
839
"_index" : "testdb" ,
835
840
"_source" : {
836
841
"_meta" : {
842
+ "book" : {"isbn" : ["abc" ]},
837
843
"author" : {"id" : [1 , 4 ]},
838
844
"book_author" : {"id" : [1 , 4 ]},
839
845
"book_language" : {"id" : [1 , 4 , 7 , 9 ]},
@@ -1001,6 +1007,7 @@ def poll_db():
1001
1007
expected = [
1002
1008
{
1003
1009
"_meta" : {
1010
+ "book" : {"isbn" : ["def" ]},
1004
1011
"author" : {"id" : [1 , 2 ]},
1005
1012
"book_author" : {"id" : [2 , 5 ]},
1006
1013
"book_language" : {"id" : [2 , 5 , 8 ]},
@@ -1054,6 +1061,7 @@ def poll_db():
1054
1061
},
1055
1062
{
1056
1063
"_meta" : {
1064
+ "book" : {"isbn" : ["ghi" ]},
1057
1065
"author" : {"id" : [2 , 3 ]},
1058
1066
"book_author" : {"id" : [3 , 6 ]},
1059
1067
"book_language" : {"id" : [3 , 6 ]},
@@ -1174,7 +1182,7 @@ def test_insert_through_child_op2(
1174
1182
"isbn" : "abc" ,
1175
1183
"group" : None ,
1176
1184
"title" : "The Tiger Club" ,
1177
- "_meta" : {},
1185
+ "_meta" : {"book" : { "isbn" : [ "abc" ]} },
1178
1186
},
1179
1187
},
1180
1188
{
@@ -1184,7 +1192,7 @@ def test_insert_through_child_op2(
1184
1192
"isbn" : "def" ,
1185
1193
"group" : None ,
1186
1194
"title" : "The Lion Club" ,
1187
- "_meta" : {},
1195
+ "_meta" : {"book" : { "isbn" : [ "def" ]} },
1188
1196
},
1189
1197
},
1190
1198
{
@@ -1194,7 +1202,7 @@ def test_insert_through_child_op2(
1194
1202
"isbn" : "ghi" ,
1195
1203
"group" : None ,
1196
1204
"title" : "The Rabbit Club" ,
1197
- "_meta" : {},
1205
+ "_meta" : {"book" : { "isbn" : [ "ghi" ]} },
1198
1206
},
1199
1207
},
1200
1208
]
@@ -1249,6 +1257,7 @@ def poll_db():
1249
1257
],
1250
1258
"title" : "The Tiger Club" ,
1251
1259
"_meta" : {
1260
+ "book" : {"isbn" : ["abc" ]},
1252
1261
"group" : {"id" : [1 , 2 ]},
1253
1262
"book_group" : {"id" : [1 , 2 ]},
1254
1263
},
@@ -1261,7 +1270,7 @@ def poll_db():
1261
1270
"isbn" : "def" ,
1262
1271
"group" : None ,
1263
1272
"title" : "The Lion Club" ,
1264
- "_meta" : {},
1273
+ "_meta" : {"book" : { "isbn" : [ "def" ]} },
1265
1274
},
1266
1275
},
1267
1276
{
@@ -1271,7 +1280,7 @@ def poll_db():
1271
1280
"isbn" : "ghi" ,
1272
1281
"group" : None ,
1273
1282
"title" : "The Rabbit Club" ,
1274
- "_meta" : {},
1283
+ "_meta" : {"book" : { "isbn" : [ "ghi" ]} },
1275
1284
},
1276
1285
},
1277
1286
]
@@ -1346,6 +1355,7 @@ def test_insert_through_child_op(
1346
1355
expected = [
1347
1356
{
1348
1357
"_meta" : {
1358
+ "book" : {"isbn" : ["abc" ]},
1349
1359
"author" : {"id" : [1 , 4 , 5 ]},
1350
1360
"book_author" : {"id" : [1 , 4 , 7 ]},
1351
1361
"book_language" : {"id" : [1 , 4 , 7 , 9 ]},
@@ -1413,6 +1423,7 @@ def test_insert_through_child_op(
1413
1423
},
1414
1424
{
1415
1425
"_meta" : {
1426
+ "book" : {"isbn" : ["def" ]},
1416
1427
"author" : {"id" : [1 , 2 ]},
1417
1428
"book_author" : {"id" : [2 , 5 ]},
1418
1429
"book_language" : {"id" : [2 , 5 , 8 ]},
@@ -1466,6 +1477,7 @@ def test_insert_through_child_op(
1466
1477
},
1467
1478
{
1468
1479
"_meta" : {
1480
+ "book" : {"isbn" : ["ghi" ]},
1469
1481
"author" : {"id" : [2 , 3 ]},
1470
1482
"book_author" : {"id" : [3 , 6 ]},
1471
1483
"book_language" : {"id" : [3 , 6 ]},
@@ -1602,6 +1614,7 @@ def test_update_through_child_op(
1602
1614
expected = [
1603
1615
{
1604
1616
"_meta" : {
1617
+ "book" : {"isbn" : ["abc" ]},
1605
1618
"author" : {"id" : [4 , 5 ]},
1606
1619
"book_author" : {"id" : [1 , 4 ]},
1607
1620
"book_language" : {"id" : [1 , 4 , 7 , 9 ]},
@@ -1656,6 +1669,7 @@ def test_update_through_child_op(
1656
1669
},
1657
1670
{
1658
1671
"_meta" : {
1672
+ "book" : {"isbn" : ["def" ]},
1659
1673
"author" : {"id" : [1 , 2 ]},
1660
1674
"book_author" : {"id" : [2 , 5 ]},
1661
1675
"book_language" : {"id" : [2 , 5 , 8 ]},
@@ -1709,6 +1723,7 @@ def test_update_through_child_op(
1709
1723
},
1710
1724
{
1711
1725
"_meta" : {
1726
+ "book" : {"isbn" : ["ghi" ]},
1712
1727
"author" : {"id" : [2 , 3 ]},
1713
1728
"book_author" : {"id" : [3 , 6 ]},
1714
1729
"book_language" : {"id" : [3 , 6 ]},
@@ -1818,6 +1833,7 @@ def test_delete_through_child_op(self, sync, data, nodes, book_author_cls):
1818
1833
expected = [
1819
1834
{
1820
1835
"_meta" : {
1836
+ "book" : {"isbn" : ["abc" ]},
1821
1837
"book_language" : {"id" : [1 , 4 , 7 , 9 ]},
1822
1838
"book_subject" : {"id" : [1 , 4 , 6 ]},
1823
1839
"language" : {"id" : [1 , 2 , 3 , 4 ]},
@@ -1840,6 +1856,7 @@ def test_delete_through_child_op(self, sync, data, nodes, book_author_cls):
1840
1856
},
1841
1857
{
1842
1858
"_meta" : {
1859
+ "book" : {"isbn" : ["def" ]},
1843
1860
"author" : {"id" : [1 , 2 ]},
1844
1861
"book_author" : {"id" : [2 , 5 ]},
1845
1862
"book_language" : {"id" : [2 , 5 , 8 ]},
@@ -1893,6 +1910,7 @@ def test_delete_through_child_op(self, sync, data, nodes, book_author_cls):
1893
1910
},
1894
1911
{
1895
1912
"_meta" : {
1913
+ "book" : {"isbn" : ["ghi" ]},
1896
1914
"author" : {"id" : [2 , 3 ]},
1897
1915
"book_author" : {"id" : [3 , 6 ]},
1898
1916
"book_language" : {"id" : [3 , 6 ]},
0 commit comments