Author: david
Date: Thu Feb 16 13:17:35 2012
New Revision: 10920

Log:
Add basic i18n fields to actor search index

Modified:
   trunk/lib/QubitSearch.class.php

Modified: trunk/lib/QubitSearch.class.php
==============================================================================
--- trunk/lib/QubitSearch.class.php     Thu Feb 16 12:08:05 2012        (r10919)
+++ trunk/lib/QubitSearch.class.php     Thu Feb 16 13:17:35 2012        (r10920)
@@ -374,10 +374,16 @@
       $doc->addField(Zend_Search_Lucene_Field::Keyword('className', 
$actor->className));
       $doc->addField(Zend_Search_Lucene_Field::Keyword('culture', 
$actorI18n->culture));
 
-      if (isset($actorI18n->authorizedFormOfName))
-      {
-        
$doc->addField(Zend_Search_Lucene_Field::UnStored('authorizedFormOfName', 
$actorI18n->authorizedFormOfName));
-      }
+      $doc->addField(Zend_Search_Lucene_Field::Keyword('identifier', 
$actor->descriptionIdentifier));
+
+      
$doc->addField(Zend_Search_Lucene_Field::UnStored('authorizedFormOfName', 
$actorI18n->authorizedFormOfName));
+      $doc->addField(Zend_Search_Lucene_Field::UnStored('datesOfExistence', 
$actorI18n->datesOfExistence));
+      $doc->addField(Zend_Search_Lucene_Field::UnStored('history', 
$actorI18n->history));
+      $doc->addField(Zend_Search_Lucene_Field::UnStored('places', 
$actorI18n->places));
+      $doc->addField(Zend_Search_Lucene_Field::UnStored('legalStatus', 
$actorI18n->legalStatus));
+      $doc->addField(Zend_Search_Lucene_Field::UnStored('mandates', 
$actorI18n->mandates));
+      $doc->addField(Zend_Search_Lucene_Field::UnStored('internalStructures', 
$actorI18n->internalStructures));
+      $doc->addField(Zend_Search_Lucene_Field::UnStored('general_context', 
$actorI18n->generalContext));
 
       // Add other forms of name for this culture
       $criteria = new Criteria;

-- 
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