Sha256: 867f20b07c27ecbb564d42e7f58976883fc383764b630abe883d0a012df32a0c

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

require "transformator/transformation/step"
require_relative "../doc_transformation"

class Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::
  SetMetadata < Transformator::Transformation::Step

  def call
    target.id = source.attr("ID")
    target.index = source.attr("SEARCH_ENGINE")
    target.score = source.attr("RANK")
    target.type = "record"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skala-1.1.0 lib/skala/primo_adapter/search/result_transformation/doc_transformation/set_metadata.rb