# HG changeset patch # User ymh # Date 1272844116 -7200 # Node ID df7bf46a43230d428b60bf3f01559c815d4e8272 # Parent e367a313ba1b1458fa124a2ffcbfb1a6870abd43 correct tag cloud diff -r e367a313ba1b -r df7bf46a4323 engine/solr/solr/conf/schema.xml --- a/engine/solr/solr/conf/schema.xml Sat May 01 03:20:13 2010 +0200 +++ b/engine/solr/solr/conf/schema.xml Mon May 03 01:48:36 2010 +0200 @@ -40,6 +40,7 @@ + @@ -47,17 +48,21 @@ + - + + + + @@ -95,9 +100,10 @@ + - + @@ -118,4 +124,7 @@ + + + diff -r e367a313ba1b -r df7bf46a4323 web/thdProject/apps/frontend/modules/tag/actions/viewTagListAction.class.php --- a/web/thdProject/apps/frontend/modules/tag/actions/viewTagListAction.class.php Sat May 01 03:20:13 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/tag/actions/viewTagListAction.class.php Mon May 03 01:48:36 2010 +0200 @@ -14,7 +14,7 @@ $solr = uvmcSolrServicesManager::getInstance()->getService(); - $response = $solr->search("tags:".$this->tag, $this->pageIndex * $this->pageNbItems, $this->pageNbItems); + $response = $solr->search("tags_exact:".$this->tag, $this->pageIndex * $this->pageNbItems, $this->pageNbItems); $results = unserialize($response->getRawResponse()); diff -r e367a313ba1b -r df7bf46a4323 web/thdProject/apps/frontend/modules/tag/templates/viewTagListSuccess.php --- a/web/thdProject/apps/frontend/modules/tag/templates/viewTagListSuccess.php Sat May 01 03:20:13 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/tag/templates/viewTagListSuccess.php Mon May 03 01:48:36 2010 +0200 @@ -1,6 +1,12 @@ -$film)); ?> +$film)); +}?>

Résultats pour :

-$film)); ?> +$film)); +}?> 'all', 'filmCount' => '10', 'mostTaggedFilms' => $mostTaggedFilms, 'pageIndex' => $pageIndex, 'pageNbItems' => $pageNbItems, 'tag' => $tag)); ?> diff -r e367a313ba1b -r df7bf46a4323 web/thdProject/lib/core/ThdUtil.php --- a/web/thdProject/lib/core/ThdUtil.php Sat May 01 03:20:13 2010 +0200 +++ b/web/thdProject/lib/core/ThdUtil.php Mon May 03 01:48:36 2010 +0200 @@ -81,13 +81,13 @@ //facet=true&facet.limit=-1&facet.field=tags - $parameters = Array('facet'=>'true', 'facet.limit'=>"$limit", 'facet.field'=>'tags' ); + $parameters = Array('facet'=>'true', 'facet.limit'=>"$limit", 'facet.field'=>'tags_exact' ); $solr = uvmcSolrServicesManager::getInstance()->getService(); $response = $solr->search("*:*", 0, 0, $parameters); $result = unserialize($response->getRawResponse()); - foreach ($result["facet_counts"]["facet_fields"]["tags"] as $tag_name => $count) { + foreach ($result["facet_counts"]["facet_fields"]["tags_exact"] as $tag_name => $count) { $tags[] = Array('tag' => $tag_name, 'count' => (int) $count); }