add support for updates if the document contains the key "id"; filter the index names to a-zA-Z0-9_-