Ejemplo n.º 1
0
 public static function getSearchData(BaseObject $object)
 {
     if (class_exists('ContentDistributionSphinxPlugin')) {
         if ($object instanceof entry) {
             return array(ContentDistributionSphinxPlugin::getSphinxFieldName(self::SPHINX_EXPANDER_FIELD_DATA) => kContentDistributionManager::getEntrySearchValues($object));
         }
     }
     return null;
 }
 public function applyCondition(IKalturaDbQuery $query)
 {
     if ($query instanceof IKalturaIndexQuery) {
         $condition = $this->getCondition();
         KalturaLog::debug("condition [" . print_r($condition, true) . "]");
         $key = '@' . ContentDistributionSphinxPlugin::getSphinxFieldName(ContentDistributionPlugin::SPHINX_EXPANDER_FIELD_DATA);
         $query->addMatch("({$key} {$condition})");
     }
 }