This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
<?phpdeclare(strict_types=1);namespaceApp\Query\Criterion\Elasticsearch;useIbexa\Contracts\Core\Repository\Values\Content\Query\Criterion;useIbexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Operator;useIbexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Operator\Specifications;finalclassCameraManufacturerCriterionextendsCriterion{/** * @param string|string[] $value One or more manufacturer names that must be matched. */publicfunction__construct($value){parent::__construct(null,null,$value);}publicfunctiongetSpecifications():array{return[newSpecifications(Operator::IN,Specifications::FORMAT_ARRAY,Specifications::TYPE_STRING),newSpecifications(Operator::EQ,Specifications::FORMAT_SINGLE,Specifications::TYPE_STRING),];}}
<?phpdeclare(strict_types=1);namespaceApp\Query\Criterion\Solr;useIbexa\Contracts\Core\Repository\Values\Content\Query\Criterion;useIbexa\Contracts\Solr\Query\CriterionVisitor;finalclassCameraManufacturerVisitorextendsCriterionVisitor{publicfunctioncanVisit(Criterion$criterion){return$criterioninstanceofCameraManufacturerCriterion;}publicfunctionvisit(Criterion$criterion,CriterionVisitor$subVisitor=null){$expressions=array_map(function($value):string{return'exif_camera_manufacturer_id:"'.$this->escapeQuote((string)$value).'"';},$criterion->value);return'('.implode(' OR ',$expressions).')';}}
Search Criteria can be valid for both Content and Location search.
To choose the search type, use either content or location in the tag when registering the visitor as a service::