File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -671,6 +671,10 @@ public static function createFromArray(array $array): self
671
671
*/
672
672
public static function getPathByField (string $ field )
673
673
{
674
+ if (0 === strpos ($ field , 'indexed_metadata. ' )) {
675
+ return $ field ;
676
+ }
677
+
674
678
if ('_id ' === $ field ) {
675
679
return $ field ;
676
680
}
Original file line number Diff line number Diff line change @@ -543,5 +543,6 @@ public function testPathByField()
543
543
$ this ->assertEquals ('uuid.type ' , Item::getPathByField ('type ' ));
544
544
$ this ->assertEquals ('indexed_metadata.another_id ' , Item::getPathByField ('another_id ' ));
545
545
$ this ->assertEquals ('indexed_metadata._field ' , Item::getPathByField ('_field ' ));
546
+ $ this ->assertEquals ('indexed_metadata._field ' , Item::getPathByField ('indexed_metadata._field ' ));
546
547
}
547
548
}
You can’t perform that action at this time.
0 commit comments