Skip to content

Instantly share code, notes, and snippets.

@ripplecburton
Created April 24, 2013 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ripplecburton/5450840 to your computer and use it in GitHub Desktop.
Save ripplecburton/5450840 to your computer and use it in GitHub Desktop.
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;
return $oSearchService->findContent($oQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment