Author: sevein
Date: Sun Apr 29 22:32:51 2012
New Revision: 11559

Log:
Filter by repository when realm parameter is sent in the form

Modified:
   branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php

Modified: branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php
==============================================================================
--- branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php        
Sun Apr 29 22:32:20 2012        (r11558)
+++ branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php        
Sun Apr 29 22:32:51 2012        (r11559)
@@ -69,6 +69,11 @@
       $query->setFrom(($this->request->page - 1) * $this->request->limit);
     }
 
+    if (isset($this->request->realm))
+    {
+      $query->setQuery(new Elastica_Query_Term(array('repository._id' => 
$this->request->realm)));
+    }
+
     try
     {
       $resultSet = 
QubitSearch::getInstance()->index->getType('QubitInformationObject')->search($query);

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to