You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: journal_builder.rb
    path of file: ./repos/chewy/lib/chewy/index/import
    
    the code of the file until where you have to start completion: module Chewy
  class Index
    module Import
      class JournalBuilder
        def initialize(index, to_index: [], delete: [])
          @index = index
          @to_index
    
        def bulk_body
          Chewy::Index::Import::BulkBuilder.new(
            Chewy::Stash::Journal,
            to_index: [
              entries(:index, @to_index),
              entries(:delete, @delete)
            ].compact
          ).bulk_body.each do |item|
            item.values.first.merge!(
              _index: Chewy::Stash::Journal.index_name
            )
          end
        end