We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 650ca11 + 4b3f18f commit cebcee2Copy full SHA for cebcee2
Model/Item.php
@@ -675,6 +675,10 @@ public static function getPathByField(string $field)
675
return $field;
676
}
677
678
+ if ('uuid' === $field) {
679
+ return '_id';
680
+ }
681
+
682
if ('_id' === $field) {
683
684
Tests/Model/ItemTest.php
@@ -539,6 +539,7 @@ public function testMap()
539
public function testPathByField()
540
{
541
$this->assertEquals('_id', Item::getPathByField('_id'));
542
+ $this->assertEquals('_id', Item::getPathByField('uuid'));
543
$this->assertEquals('uuid.id', Item::getPathByField('id'));
544
$this->assertEquals('uuid.type', Item::getPathByField('type'));
545
$this->assertEquals('indexed_metadata.another_id', Item::getPathByField('another_id'));
0 commit comments