# HG changeset patch # User ymh # Date 1272535040 -7200 # Node ID ea5e48bf2a7a306743517f674815728b02470fcb # Parent b182726db235b0b6926878081ec02c01c4efbc4e Intermediary commit diff -r b182726db235 -r ea5e48bf2a7a web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php --- a/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Thu Apr 29 03:08:10 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Thu Apr 29 11:57:20 2010 +0200 @@ -1,4 +1,12 @@ -
+ +
') no-repeat;" href="">
getTitle(); ?> De getDirectorsArray(), 'name'); ?>
diff -r b182726db235 -r ea5e48bf2a7a web/thdProject/lib/core/ThdUtil.php --- a/web/thdProject/lib/core/ThdUtil.php Thu Apr 29 03:08:10 2010 +0200 +++ b/web/thdProject/lib/core/ThdUtil.php Thu Apr 29 11:57:20 2010 +0200 @@ -88,6 +88,15 @@ ->orderBy("count(T.id) DESC") ->limit($limit); + + //facet=true&facet.limit=-1&facet.field=tags + //$parameters = Array('facet'=>'true', 'facet.limit'=>"$limit", 'facet.field'=>'tags' ); + + //$solr = uvmcSolrServicesManager::getInstance()->getService(); + //$response = $solr->search("hello", 0, 10); + //$result = unserialize($response->getRawResponse()); + //sfContext::getInstance()->getLogger()->info("SOLR FACET QUERY " . print_r($result,true)); + foreach ($query->execute() as $item) { $tags[] = Array('tag' => $item->getTag(), 'count' => (int) $item->count); } diff -r b182726db235 -r ea5e48bf2a7a web/thdProject/lib/model/doctrine/ThdTagTable.class.php --- a/web/thdProject/lib/model/doctrine/ThdTagTable.class.php Thu Apr 29 03:08:10 2010 +0200 +++ b/web/thdProject/lib/model/doctrine/ThdTagTable.class.php Thu Apr 29 11:57:20 2010 +0200 @@ -4,5 +4,4 @@ */ class ThdTagTable extends Doctrine_Table { -//http://localhost:8080/solr/select?q=*%3A*&rows=0&facet=true&facet.limit=-1&facet.field=tags } \ No newline at end of file