Method: Chewy::Search::Request#offset

Defined in:
lib/chewy/search/request.rb

#offset(value) ⇒ Chewy::Search::Request

Replaces the value of the from request part.

Examples:

PlacesIndex.offset(10)
<PlacesIndex::Query {..., :body=>{:from=>10}}>

Parameters:

  • value (String, Integer)

Returns:

See Also:



534
535
536
537
538
# File 'lib/chewy/search/request.rb', line 534

i[request_cache search_type preference timeout limit offset terminate_after min_score ignore_unavailable collapse knn].each do |name|
  define_method name do |value|
    modify(name) { replace!(value) }
  end
end