You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
I am using this library for persisting Doctrine entities in Elasticsearch using Doctrine life cycle events. I have two types: images and photographers. Photographers are set as parent of images. Here are their mappings:
On image postPersist/postUpdate this exception is thrown:
Elastica\Exception\ResponseException
File:
/var/www/search/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php:146
Message:
RoutingMissingException[routing is required for [my_search]/[images]/[86]]
I use the same annotations like the entities in the demo folder of the library. The demo works fine, but my code doesn't.
Can someone give me a hint what could be the problem? Any help will be appreciated!
Thanks in advance.
The text was updated successfully, but these errors were encountered:
It works now, it seems that the field, which contains the parent id in the Images entity must have exactly the name $_parent. it was $photographer before and it didn't work.
OK there is a way you can use the annotation attribute as @MAP\Parameter(name="_parent") if you want and then you should be able to use any member name.
Hello,
I am using this library for persisting Doctrine entities in Elasticsearch using Doctrine life cycle events. I have two types: images and photographers. Photographers are set as parent of images. Here are their mappings:
On image postPersist/postUpdate this exception is thrown:
I use the same annotations like the entities in the demo folder of the library. The demo works fine, but my code doesn't.
Can someone give me a hint what could be the problem? Any help will be appreciated!
Thanks in advance.
The text was updated successfully, but these errors were encountered: