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 @@ -675,6 +675,10 @@ public static function getPathByField(string $field)
675
675
return $ field ;
676
676
}
677
677
678
+ if ('uuid ' === $ field ) {
679
+ return '_id ' ;
680
+ }
681
+
678
682
if ('_id ' === $ field ) {
679
683
return $ field ;
680
684
}
Original file line number Diff line number Diff line change @@ -539,6 +539,7 @@ public function testMap()
539
539
public function testPathByField ()
540
540
{
541
541
$ this ->assertEquals ('_id ' , Item::getPathByField ('_id ' ));
542
+ $ this ->assertEquals ('_id ' , Item::getPathByField ('uuid ' ));
542
543
$ this ->assertEquals ('uuid.id ' , Item::getPathByField ('id ' ));
543
544
$ this ->assertEquals ('uuid.type ' , Item::getPathByField ('type ' ));
544
545
$ this ->assertEquals ('indexed_metadata.another_id ' , Item::getPathByField ('another_id ' ));
You can’t perform that action at this time.
0 commit comments