Sha256: c0fc053fd563ba71991b429b80eddbb645f985276e472f69a84bca42518ba29b

Contents?: true

Size: 754 Bytes

Versions: 3

Compression:

Stored size: 754 Bytes

Contents

require "celsius/transformation/step"
require "ox"

class Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchRequestTransformation::
  ProcessMatchQueries < Celsius::Transformation::Step

  def call
    if match_queries = Celsius::Hash.deep_find_key(source, :match)
      binding.pry
      raise "unimplemented!"
    end
  end

=begin
  process "//match" do |match|
    index_field = index_field_mapping(match.nodes.first.value)

    find(@search_request, "PrimoSearchRequest/QueryTerms") << element_from_xml(
      <<-xml
        <QueryTerm>
          <IndexField>#{index_field}</IndexField>
          <PrecisionOperator>exact</PrecisionOperator>
          <Value>#{match.nodes.first.text}</Value>
        </QueryTerm>
      xml
    )
  end
=end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
celsius-primo-0.1.2 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/process_match_queries.rb
celsius-primo-0.1.1 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/process_match_queries.rb
celsius-primo-0.1.0 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/process_match_queries.rb