fields['fieldOne'] = new ezcSearchDefinitionDocumentField( 'fieldOne' ); $q = new ezcSearchQuerySolr( $h, $d ); ezcSearchQueryBuilder::buildSearchQuery( $q, 'word', array( 'fieldOne' ) ); self::assertSame( array( "fieldOne_t:word" ), $q->whereClauses ); echo $q->getQuery(); } } class TestHandler extends ezcSearchSolrHandler { public function __construct( $host = 'localhost', $port = 8983, $location = '/solr' ) { } } class BuildQueryQuery extends ezcSearchQueryBuilder { public static function tokenize( $string ) { return parent::tokenize( $string ); } } ?>