Exception: ThinkingSphinx::Search::StaleIdsException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/thinking_sphinx/search/stale_ids_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ids, context) ⇒ StaleIdsException

Returns a new instance of StaleIdsException.



6
7
8
9
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 6

def initialize(ids, context)
  @ids = ids
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



4
5
6
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 4

def context
  @context
end

#idsObject (readonly)

Returns the value of attribute ids.



4
5
6
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 4

def ids
  @ids
end

Instance Method Details

#messageObject



11
12
13
14
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 11

def message
  "Record IDs found by Sphinx but not by ActiveRecord : #{ids.join(', ')}\n" \
  "https://freelancing-gods.com/thinking-sphinx/v5/common_issues.html#record-ids"
end