File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,7 @@ public function search(array $data = [])
394
394
$ sum = null ;
395
395
$ filter = [];
396
396
$ in = [];
397
+ $ json = [];
397
398
$ span = [];
398
399
$ range = 50 ;
399
400
$ start = 0 ;
@@ -408,6 +409,10 @@ public function search(array $data = [])
408
409
$ in = $ data ['in_filter ' ];
409
410
}
410
411
412
+ if (isset ($ data ['json_filter ' ]) && is_array ($ data ['json_filter ' ])) {
413
+ $ json = $ data ['json_filter ' ];
414
+ }
415
+
411
416
if (isset ($ data ['span ' ]) && is_array ($ data ['span ' ])) {
412
417
$ span = $ data ['span ' ];
413
418
}
@@ -567,7 +572,7 @@ public function search(array $data = [])
567
572
$ search ->addFilter ($ column . ' IN (" ' . implode ('", " ' , $ values ) . '") ' );
568
573
}
569
574
}
570
-
575
+
571
576
// add json filters
572
577
foreach ($ json as $ column => $ values ) {
573
578
$ or = [];
You can’t perform that action at this time.
0 commit comments