Skip to content

v4.2.0

Compare
Choose a tag to compare
@pat pat released this 09 Mar 04:38
· 175 commits to develop since this release
8214633

Upgrading

No breaking or major changes.

New features

  • Allow changing the default encoding for MySQL database connections from utf8 to something else via the mysql_encoding setting in config/thinking_sphinx.yml. In the next significant release, the default will change to utf8mb4 (which is supported in MySQL 5.5.3 and newer).
  • Added Rails 6.0 and Manticore 2.8 to the test matrix.

Changes to behaviour

  • Use Arel's SQL literals for generated order clauses, to avoid warnings from Rails 6.

Bug fixes

  • Fix usage of alternative primary keys in update and deletion callbacks and attribute access.
  • Ensure respond_to? takes Sphinx scopes into account (Jonathan del Strother in #1124).
  • Add :excerpts as a known option for search requests.
  • Fix depolymorphed association join construction with Rails 6.0.0.beta2.
  • Reset ThinkingSphinx::Configuration's cached values when Rails reloads, to avoid holding onto stale references to ActiveRecord models (#1125).
  • Don't join against associations in sql_query if they're only used by query-sourced properties (Hans de Graaff in #1127).