Class: Pagy::SearchBase

Inherits:
Offset show all
Defined in:
lib/pagy/classes/offset/search.rb

Overview

Search classes do not use OFFSET for querying a DB; however, they use the same positional technique used by Offset

Direct Known Subclasses

ElasticsearchRails, Meilisearch, Searchkick

Constant Summary collapse

DEFAULT =
{ search_method: :search }.freeze

Constants inherited from Pagy

A_TAG, DEFAULT_DATA_KEYS, DEFAULT_HEADERS_MAP, LABEL_TOKEN, LIMIT_TOKEN, Method, PAGE_TOKEN, ROOT, SERIES_SLOTS, VERSION

Instance Attribute Summary

Attributes inherited from Offset

#count, #from, #in, #last, #offset, #previous, #to

Attributes inherited from Pagy

#in, #limit, #next, #options, #page

Instance Method Summary collapse

Methods inherited from Offset

#initialize, #records

Methods included from Rangeable

#in_range?

Methods inherited from Pagy

#data_hash, #headers_hash, #info_tag, #input_nav_js, #limit_tag_js, #next_tag, options, #page_url, #previous_tag, #series_nav, #series_nav_js, #urls_hash

Methods included from Configurable

#dev_tools, #sync_javascript, #translate_with_the_slower_i18n_gem!

Constructor Details

This class inherits a constructor from Pagy::Offset

Instance Method Details

#search?Boolean

Returns:

  • (Boolean)


22
# File 'lib/pagy/classes/offset/search.rb', line 22

def search? = true