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;useeZ\Publish\API\Repository\Values\Content\Query\Criterion;useeZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator;useeZ\Publish\API\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;useeZ\Publish\API\Repository\Values\Content\Query\Criterion;useEzSystems\EzPlatformSolrSearchEngine\Query\CriterionVisitor;finalclassCameraManufacturerVisitorextendsCriterionVisitor{publicfunctioncanVisit(Criterion$criterion){return$criterioninstanceofCameraManufacturer;}publicfunctionvisit(Criterion$criterion,CriterionVisitor$subVisitor=null){$expressions=array_map(staticfunction($value):string{return'exif_camera_manufacturer_id:"'.$this->escapeQuote($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::