/**
  * (non-PHPdoc)
  * @see FS\SolrBundle\Doctrine\Mapper\Mapping.AbstractDocumentCommand::createDocument()
  */
 public function createDocument(MetaInformation $meta)
 {
     $fields = $meta->getFields();
     if (count($fields) == 0) {
         return null;
     }
     $document = parent::createDocument($meta);
     foreach ($fields as $field) {
         if (!$field instanceof Field) {
             continue;
         }
         $document->addField($field->getNameWithAlias(), $field->getValue(), $field->getBoost());
     }
     return $document;
 }
 /**
  * @param MetaInformation $metaInformation
  * @return string
  */
 protected function createFieldList(MetaInformation $metaInformation)
 {
     return implode(', ', $metaInformation->getFields());
 }