Sha256: 26707ece0dd1b40a85e6708cf6fbd5dba9e05988d85b4da50e0b138ef4bf2cf1
Contents?: true
Size: 496 Bytes
Versions: 74
Compression:
Stored size: 496 Bytes
Contents
module Sunspot module Query class DateFieldFacet < AbstractFieldFacet def to_params params = super params[:"facet.date"] = [@field.indexed_name] params[qualified_param('date.start')] = @field.to_indexed(@options[:time_range].first) params[qualified_param('date.end')] = @field.to_indexed(@options[:time_range].last) params[qualified_param('date.gap')] = "+#{@options[:time_interval] || 86400}SECONDS" params end end end end
Version data entries
74 entries across 74 versions & 13 rubygems