Casecommons / pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

Home Page:http://www.casebook.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search for dates

nik736 opened this issue · comments

Hello,

I would like to search for dates.

  include PgSearch::Model
  pg_search_scope :search_by_date,
                  :against => [:pickup_date, :return_date],
                  :using => {
                    :tsearch => {:prefix => true}
                  }

The current format that is searchable is: YYYY-MM-DD. Is it possible to change this to DD.MM.YYYY?

Any help is appreciated. Thanks! :)