Author: sevein
Date: Thu May 3 13:37:52 2012
New Revision: 11610
Log:
Add entity type field to QubitActor ES index
Modified:
branches/2.0/plugins/qtElasticSearchPlugin/lib/model/QubitActorMapping.class.php
Modified:
branches/2.0/plugins/qtElasticSearchPlugin/lib/model/QubitActorMapping.class.php
==============================================================================
---
branches/2.0/plugins/qtElasticSearchPlugin/lib/model/QubitActorMapping.class.php
Thu May 3 13:37:16 2012 (r11609)
+++
branches/2.0/plugins/qtElasticSearchPlugin/lib/model/QubitActorMapping.class.php
Thu May 3 13:37:52 2012 (r11610)
@@ -32,14 +32,22 @@
return array(
'slug' => array(
'type' => 'string',
- 'index' => 'not_analyzed'))
+ 'index' => 'not_analyzed'),
+ 'entityTypeId' => array(
+ 'type' => 'integer',
+ 'index' => 'not_analyzed',
+ 'include_in_all' => false))
+ self::getI18nProperties();
}
static function serialize($object)
{
$serialized = array();
+
$serialized['slug'] = $object->slug;
+ $serialized['entityTypeId'] = $object->entityTypeId;
+
+
/*
// TODO: Add other forms of name
foreach ($object->otherNames as $otherName)
--
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.