Module: Elastify::ActiveRecordExtensions::LocalMethods::ClassMethods

Defined in:
lib/elastify/active_record_extensions.rb

Instance Method Summary collapse

Instance Method Details

#elastify_scroll(scroll_id: nil, scroll_timer: "1m") ⇒ Object



105
106
107
# File 'lib/elastify/active_record_extensions.rb', line 105

def elastify_scroll(scroll_id: nil, scroll_timer: "1m")
    return ElasticSearchHelper::Document.new(self.elastify_options).scroll(scroll_id, scroll_timer)
end

#elastify_search(dsl: nil, scroll_timer: "1m") ⇒ Object



101
102
103
# File 'lib/elastify/active_record_extensions.rb', line 101

def elastify_search(dsl: nil, scroll_timer: "1m")
    return ElasticSearchHelper::Document.new(self.elastify_options).search(dsl, scroll_timer)
end