lib/makasi/asari_client.rb in makasi-0.1.3 vs lib/makasi/asari_client.rb in makasi-0.1.4

- old
+ new

@@ -7,10 +7,11 @@ def remove_item(id) asari.remove_item(hash(id)) end def search(query, params={}) - asari.search(query, params) + default_params = { return_fields: Makasi::Config.asari_return_fields } + asari.search(query, default_params.merge(params)) end def search_resource_ids(query, resource_type) results = search(query, filter: {and: {resource_type: resource_type}}) results.map{ |id, r| r["resource_id"]}