Open apneadiving opened 10 years ago
Mmm, their was an issue on qbox side + it seems POST
isn't legit in this case, tire should do a PUT
.
I will dig this.
So ES doc states:
parents & children A child document can be indexed by specifying it’s parent when indexing. For example:
$ curl -XPUT localhost:9200/blogs/blog_tag/1122?parent=1111 -d '{ "tag" : "something" }'
so its a put
not a post
.
Should I send a pull request?
Ok so I did this and it now works like a charm:
https://github.com/apneadiving/retire/commit/a8a06e90014649f81a7cd846df0b7b68be28f6e8
Should I do a PR?
Anyone?
Seems like something useful for parent handling, too bad it's not shared
+1
Hi and thanks for your gem!
I'm running across an issue using parent/children and multiple shards.
The error I get is:
The logged query is:
It works fine locally but I haven't several shards on my dev environment.
Here is my code:
In my initializer:
The child, timeline_post:
The parent, user:
What should I do to solve the routing issue? would it affect my search?
Thanks in advance,
Ben