module Elos::Index::Locatable

Public Instance Methods

find(arg) click to toggle source
# File lib/elos/index/locatable.rb, line 9
def find(arg)
  if arg.is_a?(Array)
    where(id: arg).to_a!
  else
    where(id: [arg]).first!
  end
end
where(params = {}) click to toggle source
# File lib/elos/index/locatable.rb, line 5
def where(params = {})
  search(query_builder_class: Elos::QueryBuilder::Builtin::WhereQueryBuilder, **params)
end