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