Fixing unknown OID: geography errors with PostGis and Rails 4.0

Recently, when migrating a large Rails application to Rails 4.0 that used PostGis, I kept getting warnings like: unknown OID: geography(1838124) Thanks to I just added a file config/initializers/postgres_oids.rb with content: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.tap do |klass| # Use identity which does no casting klass::OID.register_type(‘geography’, end

Solr Sorting Tidbit

The basic requirement was a fuzzy search on a series of business names and locations using a Levenshtein fuzzy string to handle typos, with results being returned with those whose name started with the query term displayed first followed by others that may have matched.  For our purposes, let’s say I had the following data… Read more Solr Sorting Tidbit