# File lib/amazon/search.rb, line 238
      def asin_search(term, heavy=HEAVY)

        url = "/onca/xml3?t=%s&AsinSearch=%s&f=xml&type=%s&dev-t=%s"
        type = heavy ? 'heavy' : 'lite'

        term.gsub!(/ /, ',') if term.is_a? String

        term = url_encode(term)
        if term.count(',') >= (heavy ? MAX_HEAVY_ASINS : MAX_LITE_ASINS)
          raise TermError, "too many ASINs"
        end

        search(url % [@id, term, type, @token])
      end