Skip to content

Instantly share code, notes, and snippets.

View ripplecburton's full-sized avatar

ripplecburton

View GitHub Profile
@ripplecburton
ripplecburton / gist:5450840
Created April 24, 2013 09:15
eZpublish Search Service Problems
<?php
$oSearchService = $this->getRepository()->getSearchService();
$aCriteria = array();
$aCriteria[] = new Criterion\ContentTypeIdentifier('item_class');
$aCriteria[] = new Criterion\Field( 'description', '=', 'Value of description field' );
$oQuery = new Query();
$oQuery->criterion = new Criterion\LogicalAnd($aCriteria);
$oQuery->limit = 20;