Author: david
Date: Mon Feb 20 11:35:37 2012
New Revision: 10944
Log:
Drop primary keys and change 'collectionRootTite' label to 'partOf' like r10933
Modified:
trunk/lib/QubitSearch.class.php
Modified: trunk/lib/QubitSearch.class.php
==============================================================================
--- trunk/lib/QubitSearch.class.php Mon Feb 20 11:33:24 2012 (r10943)
+++ trunk/lib/QubitSearch.class.php Mon Feb 20 11:35:37 2012 (r10944)
@@ -491,7 +491,6 @@
$doc = new Zend_Search_Lucene_Document;
// Reference elements
- $doc->addField(Zend_Search_Lucene_Field::Keyword('id',
$informationObject->id));
$doc->addField(Zend_Search_Lucene_Field::Keyword('slug',
$informationObject->slug));
$doc->addField(Zend_Search_Lucene_Field::Keyword('culture', $language));
$doc->addField(Zend_Search_Lucene_Field::Keyword('className',
'QubitInformationObject'));
@@ -500,9 +499,8 @@
$doc->addField(Zend_Search_Lucene_Field::Keyword('parent',
$informationObject->parent->slug));
$collectionRoot = $informationObject->getCollectionRoot();
- $doc->addField(Zend_Search_Lucene_Field::UnIndexed('collectionRootId',
$collectionRoot->id));
$doc->addField(Zend_Search_Lucene_Field::Keyword('collectionRootSlug',
$collectionRoot->slug));
- $doc->addField(Zend_Search_Lucene_Field::UnIndexed('collectionRootTitle',
$collectionRoot->getTitle()));
+ $doc->addField(Zend_Search_Lucene_Field::UnIndexed('partOf',
$collectionRoot->getTitle()));
// Digital object information
if ($digitalObject = $informationObject->getDigitalObject())
--
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.