mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Merge metadata & native key expressions
Do not delegates query building to Key instance anymore.
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Alchemy\Phrasea\SearchEngine\Elastic\AST\KeyValue;
|
||||
use Alchemy\Phrasea\SearchEngine\Elastic\Search\QueryContext;
|
||||
use Assert\Assertion;
|
||||
|
||||
class MetadataKey
|
||||
class MetadataKey implements Key
|
||||
{
|
||||
private $name;
|
||||
|
||||
@@ -15,8 +15,13 @@ class MetadataKey
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getIndexField()
|
||||
{
|
||||
return sprintf('exif.%s', $this->name);
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->name;
|
||||
return sprintf('metadata.%s', $this->name);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user