public function processDocument($row) { $stems = $row->map(function ($column, $name) { return $this->stemText($column); }); $this->saveToIndex($stems, $row->get($this->getPrimaryKey())); }