in version 5 it appears that a document ID must be specified to create a document. If one is not specified the following error appears:
TypeError: create() missing 1 required positional argument: 'id'
This is nonsensical. If I do not specify an ID elasticsearch should create one for me.
create API is nonsensical without the ID, if you don't have an ID you don't need the create API as you can just call index API.
create API exists only to force creation (and fail if document already exists).
Duplicate of #474
Fair enough. Thanks
so use index instead?
BTW create can assign a customized id :)
Most helpful comment
createAPI is nonsensical without the ID, if you don't have an ID you don't need thecreateAPI as you can just callindexAPI.createAPI exists only to force creation (and fail if document already exists).Duplicate of #474