docs_bulk_index function

Use the bulk API to index documents