ankane/searchkick · error · Searchkick::Error

Searchkick.redis not set

Error message

Searchkick.redis not set

What it means

Error "Searchkick.redis not set" thrown in ankane/searchkick.

Source

Thrown at lib/searchkick/reindex_queue.rb:8

module Searchkick
  class ReindexQueue
    attr_reader :name

    def initialize(name)
      @name = name

      raise Error, "Searchkick.redis not set" unless Searchkick.redis
    end

    # supports single and multiple ids
    def push(record_ids)
      Searchkick.with_redis { |r| r.call("LPUSH", redis_key, record_ids) }
    end

    def push_records(records)
      record_ids =
        records.map do |record|
          # always pass routing in case record is deleted
          # before the queue job runs
          if record.respond_to?(:search_routing)
            routing = record.search_routing
          end

          # escape pipe with double pipe
          value = escape(record.id.to_s)

View on GitHub (pinned to 93e901a75b)

When it happens

Trigger: Thrown at lib/searchkick/reindex_queue.rb:8 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ankane/searchkick@93e901a75b (2026-08-21). Data as JSON: /api/errors/5bbabbe33d34542c. Report an issue: GitHub.