recoResultName() public method

public recoResultName ( ) : string
return string The column identifier of the row result representing the recommended item (node)
 public function getRecommendationsFromResult(NodeInterface $input, ResultCollection $resultCollection, DiscoveryEngine $engine, Recommendations $recommendations)
 {
     $result = $resultCollection->get($engine->name());
     foreach ($result->records() as $record) {
         $recommendations->add($record->value('reco'), new Score($engine->buildScore($input, $record->value($engine->recoResultName()), $record)));
     }
 }