correct tag link. Kind of work, still need some work to debug accent on solr... V00.01
authorymh <ymh.work@gmail.com>
Mon, 03 May 2010 16:16:52 +0200
changeset 115 79a65c633bef
parent 114 a8e80a8a239d
child 116 4a55e2fafdd5
correct tag link. Kind of work, still need some work to debug accent on solr...
web/thdProject/apps/frontend/modules/tag/actions/viewTagListAction.class.php
--- a/web/thdProject/apps/frontend/modules/tag/actions/viewTagListAction.class.php	Mon May 03 11:47:39 2010 +0200
+++ b/web/thdProject/apps/frontend/modules/tag/actions/viewTagListAction.class.php	Mon May 03 16:16:52 2010 +0200
@@ -6,7 +6,7 @@
   	
   	// Parse request parameters
     $format = $request->getRequestFormat();
-    $this->tag = (string) utf8_encode($request->getParameter('tag'));   
+    $this->tag = (string) $request->getParameter('tag');
     $pageNb = (int) $this->getRequestParameter('page_nb', 1);
     $this->pageIndex = $pageNb -1;
     $this->pageNbItems = 10;
@@ -14,7 +14,7 @@
 
     
     $solr = uvmcSolrServicesManager::getInstance()->getService();
-    $response = $solr->search("tags_exact:".$this->tag, $this->pageIndex * $this->pageNbItems, $this->pageNbItems);
+    $response = $solr->search("tags:".$this->tag, $this->pageIndex * $this->pageNbItems, $this->pageNbItems);
 
     $results = unserialize($response->getRawResponse());