lib/services/search.rb in Active-0.0.1 vs lib/services/search.rb in Active-0.0.2

- old
+ new

@@ -101,13 +101,14 @@ meta_data += "+AND+" unless meta_data == "" if options[:start_date].class == Date options[:start_date] = URI.escape(options[:start_date].strftime("%m/%d/%Y")).gsub(/\//,"%2F") end + if options[:end_date].class == Date options[:end_date] = URI.escape(options[:end_date].strftime("%m/%d/%Y")).gsub(/\//,"%2F") end - meta_data += "daterange:#{options[:start_date]}..#{options[:end_date]}" + meta_data += "meta:startDate:daterange:#{options[:start_date]}..#{options[:end_date]}" # # if @asset_type_id!=nil # @meta = @meta + "+AND+" if @meta!="" # @meta = @meta + "inmeta:assetTypeId=#{@asset_type_id}" \ No newline at end of file