module ElasticRecord::Relation::Hits
Public Instance Methods
search_hits()
click to toggle source
# File lib/elastic_record/relation/hits.rb, line 10 def search_hits SearchHits.from_response(search_results) end
search_results()
click to toggle source
# File lib/elastic_record/relation/hits.rb, line 14 def search_results @search_results ||= begin options = { typed_keys: true } options[:search_type] = search_type_value if search_type_value options[:_source] = klass.elastic_index.load_from_source klass.elastic_index.search(as_elastic, options) end end
to_ids()
click to toggle source
# File lib/elastic_record/relation/hits.rb, line 6 def to_ids search_hits.to_ids end