ryanb/xapit

Dates and times in conditions hash

ryanb opened this issue · 1 comments

One should be able to mark a date as the field.

xapit do |index|
  index.field :released_on
end

And then perform a search on it through the conditions hash.

Xapit.search(:conditions => { :released_on => Date.today })

Similarly, it would be nice if times were supported, and that searching by a date would include all times in that date.

converting dates and times to integer values before indexing and searching so they are easier to work with - closed by 1907fd7