Skip to content
CAI
Software that uses CAICheck a score

ankane/searchkick

63.3

Adequate · 14 November 2026

4.6k

lines of production code

Ruby

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added hybrid and semantic search examples

New example scripts demonstrate how to perform semantic and hybrid search using the Informers library with Searchkick. The semantic search example shows how to generate embeddings for product data and query them using a specific embedding model (Snowflake/snowflake-arctic-embed-m-v1.5) with a required query prefix. The hybrid search example extends this by combining keyword and semantic search results, illustrating two methods for result combination: Reciprocal Rank Fusion (RRF) and reranking via a dedicated reranking model (mixedbread-ai/mxbai-rerank-xsmall-v1).

examples · high confidence

Added new benchmark scripts for indexing, search queries, and relation allocations

The benchmark directory now includes three new scripts: \index.rb\ measures the time required to reindex products into the search engine, \search.rb\ uses Benchmark::IPS to profile the performance of executing search queries with specific filters, and \relation.rb\ tracks object allocations during complex Active Record search chains. These tools allow users to locally measure and optimize search performance and memory usage.

benchmark · high confidence

Added searchkick rake tasks for reindexing models

A new rake task file (lib/tasks/searchkick.rake) has been added, introducing \searchkick:reindex\ to reindex a specific model via the \CLASS\ environment variable and \searchkick:reindex:all\ to reindex all registered models. The \all\ task includes logic to handle Rails 6+ Zeitwerk autoloading by eagerly loading models before iteration, ensuring all models are properly registered in \Searchkick.models\.

lib/tasks · high confidence

Behavioural changes

Major version upgrade to Elasticsearch 8+ and OpenSearch 2+ support

Searchkick has been upgraded to require Elasticsearch 8+ or OpenSearch 2+, dropping support for all previous versions. The library has removed its legacy dependency on the \tire\ gem and now uses the official \elasticsearch\ or \opensearch-ruby\ gems directly. This change introduces a new client selection mechanism that automatically detects the installed client gem, raises an error if multiple clients are found, and requires users to set \Searchkick.client\_type\ explicitly in ambiguous environments. Configuration has shifted to use \Searchkick.client\_options\ for deep merging client settings, and the library now includes specific error classes like \UnsupportedVersionError\ to enforce these minimum version requirements.

lib · high confidence

Searchkick 7.0 introduces major architectural changes and new search capabilities

This release restructures the library's internals, introducing new classes like BulkReindexJob, HashWrapper, IndexCache, and Indexer to handle background jobs, result wrapping, caching, and bulk operations more cleanly. It adds support for OpenSearch 4 and Elasticsearch 9 beta, including KNN search with Euclidean and inner product distances, and introduces new relation methods such as opaque\_id, boost\_where, boost\_by\_recency, boost\_by\_distance, and rrf. The search timeout is now configurable via a Faraday middleware, and logging is enhanced with a dedicated LogSubscriber and ControllerRuntime for better Rails integration. Deprecated options like 'conversions' are replaced by 'conversions\_v2', and the library drops support for Elasticsearch 6, 7, and OpenSearch 1.

lib/searchkick · high confidence

Test coverage

Added comprehensive test coverage for search features; Added test model fixtures for Searchkick features; Centralized test support infrastructure for ActiveRecord, Mongoid, and Redis.

Dependencies

Expanded CI support for Rails 8, Mongoid 9, and OpenSearch 4

The gemfiles directory now includes new configuration files to test the library against newer versions of its dependencies. Specifically, it adds support for Active Record 8.0 and 8.1, Mongoid 8 and 9, and OpenSearch Ruby client versions 2, 3, and 4 (including the 4.0.0.pre.beta.5 release). These changes enable continuous integration testing against these updated frameworks and search clients, ensuring compatibility with the latest releases.

gemfiles · high confidence

Updated dependencies and dropped support for older Ruby and Rails versions

This release updates the gem's dependencies and runtime requirements. The minimum supported Ruby version is now 3.3, and Active Model 8+ is required. The gem now depends on elasticsearch \~\> 9, redis-client, connection\_pool, and kaminari, while removing the legacy tire dependency. Development dependencies have been updated to test against Rails 8.1.0 (activerecord, actionpack, activejob) and include sqlite3, minitest, and parallel\_tests. Benchmark and example Gemfiles have also been added to support performance testing and usage examples.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 64 → 63 (-0.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 66 → 63 (-2.8)
  • Architecture 99 → 99 (-0.3)
  • Maturity 61 → 61 (+0.0)
  • Readiness 54 → 54 (+0.0)
  • Security 99 → 98 (-0.7)
  • Domain Modelling 100 → 100 (+0.0)
  • Performance 90 → 90 (+0.0)

New (2)

  • Edited copies of one member (3 members, 3+ corresponding lines) (lib/searchkick.rb)
  • Edited copy of a member (1 corresponding lines) (lib/searchkick/query.rb)

Changes since last survey

  • 4 commits — 4 feature/other, 0 fixes

By area

  • (root) — 4 commits

Notable commits

  • change: Updated changelog [skip ci]
  • change: Updated gemfiles [skip ci]
  • change: Updated readme [skip ci]
  • change: Version bump to 6.2.0 [skip ci]

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

ankane/searchkick was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 5d98e4867b3cf5fa5fe876454fb25496e4ef9719 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-36d4cd83012f.