Skip to content

Commit

Permalink
Add ruby3 support to ShardedIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgeorgeson committed Dec 12, 2023
1 parent 0ff80cb commit d9f835e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/elastic_search_framework/sharded_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,21 +176,21 @@ def get_item(id:, type: 'default', routing_key: nil)
options = { index: self, id: id, type: type }
options[:routing_key] = routing_key if routing_enabled? && routing_key

repository.get(options)
repository.get(**options)
end

def put_item(type: 'default', item:, op_type: 'index', routing_key: nil)
options = { entity: item, index: self, type: type, op_type: op_type }
options[:routing_key] = routing_key if routing_enabled? && routing_key

repository.set(options)
repository.set(**options)
end

def delete_item(id:, type: 'default', routing_key: nil)
options = { index: self, id: id, type: type }
options[:routing_key] = routing_key if routing_enabled? && routing_key

repository.drop(options)
repository.drop(**options)
end

def query
Expand Down

0 comments on commit d9f835e

Please sign in to comment.