Update plus With Script in Bulk

scripted_upsert means the script runs whether the document already exists or not. If you want to use docItem as the initial document for the script to act on, maybe try passing it in as a param to the script.