Author: jablko
Date: Thu Sep 17 19:46:25 2009
New Revision: 3401

Log:
Fix field name so objects are actually deleted from search index

Modified:
   trunk/apps/qubit/lib/SearchIndex.class.php

Modified: trunk/apps/qubit/lib/SearchIndex.class.php
==============================================================================
--- trunk/apps/qubit/lib/SearchIndex.class.php  Thu Sep 17 19:36:25 2009        
(r3400)
+++ trunk/apps/qubit/lib/SearchIndex.class.php  Thu Sep 17 19:46:25 2009        
(r3401)
@@ -146,7 +146,7 @@
     $search = new QubitSearch;
 
     $query = new Zend_Search_Lucene_Search_Query_MultiTerm;
-    $query->addTerm(new Zend_Search_Lucene_Index_Term($object->id, 
'objectId'), true);
+    $query->addTerm(new Zend_Search_Lucene_Index_Term($object->id, 'id'), 
true);
     $query->addTerm(new Zend_Search_Lucene_Index_Term($language, 'culture'), 
true);
     foreach ($search->getEngine()->getIndex()->find($query) as $hit)
     {

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to