示例#1
0
 /**
  * Count distinct values in the specified field (that would be added to the
  * Solr index)
  *
  * @param string $sourceId Source ID
  * @param string $field    Field name
  * @param bool   $mapped   Whether to count values after any mapping files are
  *                         are processed
  *
  * @return void
  */
 public function countValues($sourceId, $field, $mapped)
 {
     if (!$field) {
         echo "Field must be specified\n";
         exit;
     }
     $updater = new SolrUpdater($this->db, $this->basePath, $this->log, $this->verbose, $this->cursorTimeout);
     $updater->countValues($sourceId, $field, $mapped);
 }