```ruby
def find_by_index(query)
  raise NotFound.new if query.blank?
  bucket.get_index *query.to_a
rescue Riak::FailedRequest => e
  raise NotFound.new if e.not_found?
end