Closed Astro-Otter-Space closed 7 years ago
Update : I've seen some documents are created and some not. I've compared documents and noted documents with field "body" not empty are the error while documents with field "body" empty are created in Kuzzle.
Is word "body" reserved in Kuzzle ?
Hi. Hmm, I wonder if it's not the same issue as #10 , that has just been fixed Can you try again with latest release ?
The bug comes from the way we use the payload of the request. If the request is sent with a field body
it will in fact try to use the body
as the content of the document. Other fields at the root of the payload would be completely ignore for the request. as a result, the document has not the same format as the one initially indexed (and mapped).
Solved with the recent Request refactor
Hi,
I have a problem to create a document with PHP-SDK. The exception message is :
I have compared data's type with the collection mapping : it's correct. I tried to create my document directly in BO : OK. I tried with a REST request (with POSTMAN) and the document have been created. It's the first time I can't create a document with PHP SDK. Our JSON
In PHP :
And method create (in a class who override Kuzzle.php from Symfony-bridge) :
And parent::createDocument() is the method in Symfony-Kuzzle-Bridge.
Thank you