Exception: Picky::Query::Indexes::DifferentBackendsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/picky/query/indexes/check.rb

Overview

Currently it isn’t possible using Memory and Redis etc. indexes in the same query index group.

Instance Method Summary collapse

Constructor Details

#initialize(backends) ⇒ DifferentBackendsError

Returns a new instance of DifferentBackendsError.



41
42
43
# File 'lib/picky/query/indexes/check.rb', line 41

def initialize backends
  @backends = backends
end

Instance Method Details

#to_sObject



44
45
46
# File 'lib/picky/query/indexes/check.rb', line 44

def to_s
  "Currently it isn't possible to mix Indexes with backends #{@backends.join(" and ")} in the same Search instance."
end