ankane/searchkick · error · Searchkick::Error
Query error - use the error method to view it
Error message
Query error - use the error method to view it
What it means
Error "Query error - use the error method to view it" thrown in ankane/searchkick.
Source
Thrown at lib/searchkick/results.rb:140
def next_page
current_page < total_pages ? (current_page + 1) : nil
end
def first_page?
previous_page.nil?
end
def last_page?
next_page.nil?
end
def out_of_range?
current_page > total_pages
end
def hits
if error
raise Error, "Query error - use the error method to view it"
else
@response["hits"]["hits"]
end
end
def highlights(multiple: false)
hits.map do |hit|
hit_highlights(hit, multiple: multiple)
end
end
def with_highlights(multiple: false)
return enum_for(:with_highlights, multiple: multiple) unless block_given?
with_hit.each do |result, hit|
yield result, hit_highlights(hit, multiple: multiple)
end
endView on GitHub (pinned to 93e901a75b)
When it happens
Trigger: Thrown at lib/searchkick/results.rb:140 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/926615ddec4b2b40.
Report an issue: GitHub.