Changeset 1325


Ignore:
Timestamp:
Sep 5, 2010, 4:32:01 PM (10 years ago)
Author:
teymour
Message:

Oups j'avais oublié les tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/solr/SolrConnector.class.php

    r1316 r1325  
    6666     if (isset($obj->date))
    6767       $document->addField('date', $obj->date->content, $obj->date->weight);
     68     if (isset($obj->tags)) {
     69        foreach($obj->tags->content as $tag) if ($tag)  {
     70          $document->setMultiValue('tag', $tag, $obj->tags->weight);
     71        }
     72     }
    6873     $this->solr->addDocument($document);
    6974     $this->solr->commit();
Note: See TracChangeset for help on using the changeset viewer.